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

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -