简体   繁体   中英

How to get distance by city + zipCode on google maps API

http://maps.googleapis.com/maps/api/distancematrix/xml?origins=PLACE,ZIPCODE&destinations=PLACE,ZIPCODE&sensor=false

I need to get distance between two places by place name and zip code. But when I pass parameters separated by "comma" it doesn't work. How to pass this two parameters?

使用+分隔地名和邮政编码:

http://maps.googleapis.com/maps/api/distancematrix/xml?origins=NEW+YORK+11535&destinations=WASHINGTON+20544&sensor=false

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