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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -