javascript - Getting address and coordinates from google maps -


i want add google map in website , letting users pick location clicking on map in order pass address , coordinates me (to store in db).

does google provide functionality? if yes, how?

it does, it's called geocoding.

edited:

you have coordinates click first - add event listener map 'click' event call function(event). inside function, can access location event.latlng. , there, can use reverse-geocoding link above.


Comments

Popular posts from this blog

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -