Bing Maps adapter
The operation GetDirections allows to calculate the route between a start point and a destination with any number of waypoints.
Input
For the operation GetDirections 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:
<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 operation GetDirections 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.