none
Fetching Routes by Arrival or Departure time is not working while using Bing Maps Web Controls RRS feed

  • Question

  • I have tried the example given in the Bing Maps documentation https://msdn.microsoft.com/en-us/library/mt750402.aspx. In this example the routes are loaded by considering current time as departure time and not the one input by the user.If anyone has implemented the same please guide.

    I have input following data -

    directionsManager.setRequestOptions({
        routeMode: Microsoft.Maps.Directions.RouteMode.transit

        time: 2017-11-23T14:00:00.000Z

        timeType: Microsoft.Maps.Directions.TimeTypes.arrival

    });

    Following is the request made -

    https://dev.virtualearth.net/REST/v1/Routes/transit?key=<API_KEY>&o=json&jsonp=Microsoft.Maps.NetworkCallbacks.f9cb99&c=en-IN&fi=true&wp.0=19.1164970397949,72.8308258056641&wp.1=18.9696998596191,72.8193969726563&tl=6.349931606575737e-7,0.00000507994528526059,0.00004063956228208472,0.00032511649825667775,0.002600931986053422,0.020807455888427376,0.166459647107419&ig=true&ra=routepath,transitStops&du=km&dt=11/23/2017 0:58:00&tt=departure&maxSolns=3&rpo=Points

    Am I writing anything incorrectly?


    • Edited by NehaKadam Wednesday, November 22, 2017 7:36 PM
    Wednesday, November 22, 2017 7:35 PM

Answers