none
How to avoid roads in Bing Maps SOAP API

    Question

  • We need to avoid or put low priority on certain road types such as Toll Roads and Ferries when sending a RouteRequest.  I found in the REST API the "avoid" parameter (http://msdn.microsoft.com/en-us/library/ff701717.aspx), but our application is using the Bing Maps SOAP API.  I did not find any options for this in the RouteReqeust or the MajorRoutesRequest objects.

    The MapPoint Web Service allows for preferred roads to be set allowing a weight to be set on Ferries, Highways, MajorRoads. MinorRoads and TollRoads (http://msdn.microsoft.com/en-us/library/cc514584.aspx).  We are currently using this functionality of the MapPoint Web Service, but I received notice that the MapPoint Web service will be retired on November 18, 2011.

    How is this handled in the Bing Maps SOAP API?  Does the Bing Maps REST API simply support features that the SOAP API does not?

    Friday, April 15, 2011 10:21 PM

Answers

  • It is true that the REST and SOAP APIs do not have all the same features. In the SOAP API you cannot choose to avoid any types of roads. This is the same in MapPoint Web Services where you can set the weight value on different types, but even that does not completely avoid those.

     

    However, is there a reason you cannot use both the REST and SOAP services in the same solution? You can use SOAP for geocoding and imagery, but use REST for routing, as an example. The only reason I can think of is that you are using the Token service, in which case now would be a good time to switch away from that.

    Friday, April 15, 2011 10:53 PM