Get a GEO Location from Google Maps

0
I want to use Google Maps for a user to click a location on the map, then return the Latitude and Longitude for writing to the database. How do I do this?   My experience of using google maps so far is to using the Postcode and City to find the Geo Location.   In my application the user is unlikely to know the postcode of a location.   Nick.
asked
1 answers
1

With the same Google Maps service. What you want is called 'reverse geolocation' .

Check out module PostalcodeHousenumber on a implementation is this functionality. 

See https://userofpostalcodeho.mxapps.io/ for an online-demo of this module.

The Geolocation widget also does what you want. 

Btw. Would love it if you would add the "using google maps so far is to using the Postcode and City to find the Geo Location" to this module. With your experience, this is probably a small task. The module is on Github. Thanks in advance.

answered