简体   繁体   中英

Loading a gmap immediately with a string address and not in latlng

I want my Gmap will directly load from an address string and not a latlng . I know this is possible but I can't seem to figure it out. All the samples in the web load latlng as default and not address string .

if you have a complete address string then why dont you use google's Geocoder service to get lat lang then set the map co ordinates. this will ensure that your map will center the location given by string. Refer to Geocoding Service for geocoding.

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