简体   繁体   中英

How to get latitude longitude value from an address in Google Maps?

I have a form which has a textfield called address . I want to get the latitude and longitude value when the user types in his address in the textbox and clicks a button. How can I do this? I have done this using PHP but I need to get the latitude and longitude using Javascript/Google API. Any link to some tutorial?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM