views:

66

answers:

2

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?

+1  A: 

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

Valentin Rocher
Hello! But this is a javascript class, right?I would need a http page that would return the XML. do you have the link?
A: 

... 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).

Cannonade
Dear cannonade.yes, that's exatly what I am looking for, a http page that would return a rout xml or JSON.Anyway, if I have to link to my own http page and put the javascript code, will it generate the XML?Thanks again!