Bing API for Calculating routes with start time and end time

Saranya Santhakumaran 1 Reputation point
2021-08-18T14:59:10.473+00:00

Hi All,

I'm using https://learn.microsoft.com/en-us/bingmaps/rest-services/routes/calculate-a-route to calculate duration and distance from postcodes.

My request parameters are postcode from and post code to and responses are duration and distance. This works fine.

But I want to send start date and time in request parameter and need end date and time in response.

Tried http://dev.virtualearth.net/REST/v1/Routes?wayPoint.1={wayPoint1}&viaWaypoint.2={viaWaypoint2}&routeAttributes={routeAttributes}&dateTime={dateTime}&maxSolutions={maxSolutions}&distanceUnit={distanceUnit}&key={BingMapsKey}.

But the result I got is something wrong . Any other suggested request parameter for using start and end time??

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
253 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. YutongTie-MSFT 47,416 Reputation points
    2021-08-19T02:40:33.9+00:00

    Hi there,

    Thanks for reaching out to us here. But this forum is not the right place for Bing Maps API question.

    Please go the Bing Maps Answers forum to get help: https://answers.microsoft.com/en-us/bing/forum/bing_maps?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1

    For more support options, please refer to: https://www.microsoft.com/en-us/maps/support

    Hope this helps.

    Regards,
    Yutong


  2. Saranya Santhakumaran 1 Reputation point
    2021-08-22T14:17:50.62+00:00

    @IoTGirl : I Tried the same ,if the timetype is arrival and datetime is past, the response is correct.

    Request :
    timeType=Arrival&dateTime=08/21/2021 13:00:00

    <StartTime>2021-08-21T12:46:08</StartTime>
    <EndTime>2021-08-21T13:00:00</EndTime>

    But if the timetype is departure and datetime is past the response is coming as
    <StartTime>0001-01-01T00:00:00</StartTime>
    <EndTime>0001-01-01T00:00:00</EndTime> .

    0 comments No comments

  3. IoTGirl 2,976 Reputation points Microsoft Employee
    2021-08-23T21:33:57.98+00:00

    Hi Saranya,

    I have passed your results to the Maps Routing team for review and I will get back to you with their answer when they get back to me.

    UPDATE: The Routing team has identified the issue and has created a work item for a fix. No time or date estimate as to when the issue will be fixed yet.

    Sincerely,
    IoTGirl

    0 comments No comments