Skip to main content
Skip table of contents

Operation: GetDirections


The GetDirections operation allows you to calculate the route between a start point and a destination with any number of waypoints.

Input

For the GetDirections operation, the adapter expects an input XML document which contains start, destination, and any number of waypoints as decimal coordinate or address and having the following structure:

HTML/XML
<Routing>
	<Origin>
		<!-- Address or GeoDecimal -->
		<Address>
			<Street><!--Street and number--></Street>
			<ZIP><!--ZIP code--></ZIP>
			<City><!--Place--></City>
			<Country><!--Country--></Country>
		</Address>
	</Origin>
	<Waypoints>
		<!-- Any number of waypoints -->
		<!-- Address or GeoDecimal -->
		<Waypoint>
			<Address>
				<Location><!--Location--></Location>
				<City><!--Place--></City>
			</Address>
		</Waypoint>
	</Waypoints>
	<Destination>
		<!-- Address or GeoDecimal -->
		<GeoDecimal>
			<Latitude><!--Latitude--></Latitude>
			<Longitude><!--Longitude--></Longitude>
		</GeoDecimal>
	</Destination>
</Routing>

Output

For the GetDirections operation, an XML or JSON document will be output which contains a route for cars. 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.