开发者

Does Google provide a http page to return a XML route?

开发者 https://www.devze.com 2022-12-18 09:26 出处:网络
开发者_Python百科I have been using a lot of Google Maps\'s API for getting geocoding and reverse geocoding services.
开发者_Python百科

I have been using a lot of Google Maps's API for getting geocoding and reverse geocoding services.

Do you know if there's a service (through http) that would return a route?


Yes, you have to use DirectionService from the Maps API.


... and if you are using the Version 2 API, you can use GDirection class.

I thought I should clarify that both the v3 DirectionService and v2 GDirection classes are part of the JavaScript Google Maps API.

If you are looking to access the Google Maps API Geocoding Service directly over HTTP then as far as I know you are limited to Geocoding and Reverse Geocoding requests.

It is quite possible that this service does exist and I have missed it (please let me know if this is the case).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号