Exact geolocation coordinates?

Hello,

The items I list on my website do not all have a postal address. So, in the “Location” field, instead of indicating a nearby address recognized by Google Maps, I would like to enter the exact geolocation coordinates, such as “48.85325870266119, 2.349609824089833” or “48°51’11.7"N 2°20’58.6"E”—which Google Maps understands perfectly.

Is this possible? How can I do it?

Thank you in advance.
Laurent

Salut Laurent,

the GPS coordinates are actually stored in the database together with the name of the location, though they might not be accessible directly, even from the back-end.

With a bit of custom code, or if you feel like tampering with the database directly with SQL, you could address these issue.

A nicer workaround would be to show a map, and enable user (or admin) to move around the initial marker (pin). And this would update the GPS position accordingly. Once again some custom development involved here, but definitely doable.

Cheers !

1 Like

To enter the exact geolocation for listings or vendors, you can use Google Maps Plus Codes, which allow pinpoint accuracy without relying on traditional postal addresses.

For more details, check out this guide:
Google Maps Integration Doesn’t Work

This method should perfectly suit your requirement.

Google Plus Codes dont work with Mapbox. With Google Maps it looks like it work fine.

Yes you are right. It won’t work with MapBox.

Hi am trying to implemment your workaround. Could you tell me how I can do this? I am trying to enable the users to pinpoint their exact location on the map (which is often at the beach) when they add or edit a listing.

I am also at the beach. Sorry.
Unless you are willing to hire me. :wink:

1 Like

Haha well, thats is a nice place to be. What would be your price / rate to explain this particular problem? We try to do things alone as much as possible, as our business is not running yet haha

Okay thank you. Im afraind we cannot afford that hehe. We’ll keep on investigating

Try this :

https://www.google.com/search?q=google+maps+api+move+marker+update+lat+lon+fields

https://www.google.com/search?q=google+maps+api+get+my+location

Hi,

Please try this PHP snippet: How to latitude and longitude fields to add property form - #3

​I hope this is helpful to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.