none
BingMaps driver directions return wrong routeResponseCode RRS feed

  • Question

  • Before use in my soft i test this routes on http://www.bing.com/maps/ driver directions...I add 3 routes with values(DFW, TX US, TX US75252), after that i click get directions and get correct directions of this routes..

    I used in my soft javascript code: var waypoint = new Microsoft.Maps.Directions.Waypoint({ address: bingMapLocation }) where bingMapLocation = (DFW, TX US, TX US75252)...And in response i get:

    microsoftMapsNetworkCallback({"routeResults":[{"routeResponseCode":4,"routes":[],"requestedRouteMode":0,"distanceUnit":null}],"resolvedWaypoints":[[{"failed":false,"inputType":1,"latitude":32.897625,"longitude":-97.043765,"rooftopLatitude":32.865785,"rooftopLongitude":-97.039915,"address":{"formattedAddress":"Dallas-Fort Worth International Airport, TX","shortFormattedAddress":"Dallas-Fort Worth International Airport, TX"},"disambiguation":null},{"failed":false,"inputType":1,"latitude":32.830204,"longitude":-96.770149,"rooftopLatitude":32.830204,"rooftopLongitude":-96.770312,"address":{"formattedAddress":"3519 Greenville Ave, Dallas, TX 75206-5629","shortFormattedAddress":"3519 Greenville Ave, Dallas"},"disambiguation":null},{"failed":false,"inputType":1,"latitude":32.98536,"longitude":-96.80388,"rooftopLatitude":32.985054,"rooftopLongitude":-96.803253,"address":{"formattedAddress":"17218 Preston Rd, Dallas, TX 75252-4018","shortFormattedAddress":"17218 Preston Rd, Dallas"},"disambiguation":null}]]}, 'd14504');

    Where routeResponseCode is 4...Why i get this code and response if i have correct directions when test on your site???

    • Moved by Ricky_Brundritt Saturday, March 10, 2012 11:03 AM (From:Bing Maps: Map Control and Web services Development)
    Tuesday, September 20, 2011 5:12 PM

Answers