# Geolocation "Locate Me" fills the address but does not set latitude/longitude

**URL:** <https://community.hivepress.io/t/geolocation-locate-me-fills-the-address-but-does-not-set-latitude-longitude/18064>\
**Category:** Bug Reports\
**Tags:** geolocation, confirmed\
**Created:** [November 2, 2026, 9:52am UTC](https://community.hivepress.io/t/geolocation-locate-me-fills-the-address-but-does-not-set-latitude-longitude/18064 "2026-11-02T09:52:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://community.hivepress.io/u/Nabil)\
**Post date:** [November 2, 2026, 9:52am UTC](https://community.hivepress.io/t/geolocation-locate-me-fills-the-address-but-does-not-set-latitude-longitude/18064/1 "2026-11-02T09:52:02Z")

</div>

Clicking “Locate Me” fills the Location field with the address, but never sets the hidden latitude/longitude fields, so the search is submitted without any location.

**Setup:** HivePress 1.8.1 · Geolocation 1.3.11 · ListingHive · WordPress 7.1 · Google Maps provider · Countries restricted to TN.

## Steps to reproduce

1. On the listings search form, click “Locate Me” and allow location access.
2. The Location field is filled with the reverse-geocoded address, and the autocomplete dropdown opens with that same address.
3. Check the hidden fields in the console: `[...document.querySelectorAll('input[data-coordinate]')].map(i => i.name + '=' + i.value)`

## Actual result

- All latitude/longitude inputs are empty.
- If the user clicks anywhere else, the Location field is cleared (no coordinates), and the search is submitted with `latitude=&longitude=&location=` all empty, so all listings are shown.
- Only if the user selects the suggestion from the dropdown are latitude, longitude and \_region filled, and the search works.

## Expected result

“Locate Me” should set latitude/longitude directly from the browser’s position, without requiring the user to pick the suggestion.

## Already ruled out

- Same behavior with LiteSpeed Cache deactivated.
- Same behavior with “Generate regions” enabled and disabled.
- Same behavior on two separate installs (live and staging).
- HTTPS is enabled, and the Maps JavaScript, Places and Geocoding APIs work (the address is retrieved correctly).
- No JavaScript errors in the console.

Is this a known issue, and is a fix planned?

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [November 3, 2026, 6:45pm UTC](https://community.hivepress.io/t/geolocation-locate-me-fills-the-address-but-does-not-set-latitude-longitude/18064/5 "2026-11-03T18:45:29Z")

</div>

Hi,

Thanks for reporting the issue.

We tested it and it seems to occur only if the user clicks away, since Google Maps requires the suggested location selection to fill in the region and coordinate fields. We’ll try to resolve this UX issue in the next update, so an additional click will not be needed.
