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
Post a Comment