Skip to main content
Skip table of contents

Operation: GetDirections

With the operation GetDirections the route between a start point and a destination with any number of waypoints can be calculated.

Input

For the operation GetDirections the adapter expects an input XML structure with the following pattern that contains start, destination and any number of waypoints as decimal coordinate, address or in the GooglePoint format:

HTML/XML
<GoogleRouting xmlns:exslt="http://exslt.org/common">
 <Origin><!--Decimal coordinate, address/POI or GooglePoint--></Origin>
 <Waypoints>
    <!-- Any number of waypoints -->
    <Waypoint><!--Decimal coordinate, address/POI or GooglePoint--></Waypoint>
 </Waypoints>
 <Destination><!--Decimal coordinate, address/POI or GooglePoint--></Destination>
</GoogleRouting>

Addresses are specified in the following XML structure:

HTML/XML
<Address>
  <Street><!--Street and house number--></Street>
  <ZIP><!--ZIP code--></ZIP>
  <City><!--Place--></City>
  <Country><!--Country--></Country>
</Address>

Locations (points of interest, etc.) are specified in the following XML structure:

HTML/XML
<Address>
   <Location><!--Point of Interest--></Location>
   <City><!--Place</City>
</Address>

GooglePoints specified in the following XML element:

HTML/XML
<GooglePoint><!--GooglePoint code--></GooglePoint>

Decimal coordinates are specified in the following XML structure:

HTML/XML
<GeoDecimal>
   <Latitude><!--NN.NNNNNNN--></Latitude>
   <Longitude><!--EE.EEEEEEE--></Longitude>
</GeoDecimal>

Output

For the operation GetDirections an XML or JSON document will be output that contains a route for cars according to http://code.google.com/intl/en/apis/maps/documentation/directions/#XML. If more than one route is available, the fastest route will be output.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.