question

SaranyaSanthakumaran-0408 avatar image
0 Votes"
SaranyaSanthakumaran-0408 asked IoTGirl edited

Bing API for Calculating routes with start time and end time

Hi All,

I'm using https://docs.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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered IoTGirl commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ,
I posted the question in the link above . But the thread has been closed without any prior notice.
Need help on this.

0 Votes 0 ·
IoTGirl avatar image IoTGirl SaranyaSanthakumaran-0408 ·

Please take a look at the documentation for the parameter "dateTime" at https://docs.microsoft.com/en-us/bingmaps/rest-services/routes/calculate-a-route and review the sample output at https://docs.microsoft.com/en-us/bingmaps/rest-services/examples/driving-route-example to see the results values:

         <StartTime>0001-01-01T00:00:00</StartTime>  
         <EndTime>0001-01-01T00:00:00</EndTime> 
0 Votes 0 ·
SaranyaSanthakumaran-0408 avatar image
0 Votes"
SaranyaSanthakumaran-0408 answered

@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> .

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IoTGirl avatar image
0 Votes"
IoTGirl answered IoTGirl edited

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.