Share via

Bing API requests instability | https://dev.virtualearth.net:443/REST/v1/Routes/DistanceMatrix

Anonymous
2023-11-17T22:31:42+00:00

Hi Team,

We are experiencing instable responses from Bing API platform intermittently :

Error request:
REQUESTER GET /REST/v1/Routes/DistanceMatrix?origins=39.552855%2C-105.03702&destinations=39.89651120000001%2C-105.060559&travelMode=driving&distanceUnit=mi&key=AuFaCmsDJBjuJi0tY7ScOa_Wl9HYLqvb8oAANVSYNU0RsNHVveWtYC8--VTE6v6J&avoidFailure scenarios the below endpoint gives “400 Bad request error”, tested from POSTMAN using the curl below:

curl --location 'https://dev.virtualearth.net:443/REST/v1/Routes/DistanceMatrix?origins=39.552855%2C-105.03702&destinations=39.89651120000001%2C-105.060559&travelMode=driving&distanceUnit=mi&key=AuFaCmsDJBjuJi0tY7ScOa_Wl9HYLqvb8oAANVSYNU0RsNHVveWtYC8--VTE6v6J&avoid=null'

Response on the cause of bad responses and system instability trends if there is any is requested

Bing | Other
Bing | Other

Miscellaneous topics that do not fit into specific categories.

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-11-21T06:01:40+00:00

    Dear Paul R,

    If you look in the top right of this question you will see it is under a section called "Maps APIs & SDKs" so I would ask that you refrain from responding to these and pointing our Bing Maps Developers to a forum that is not for Bing Maps.

    Sincere thanks,

    IoTGirl

    Microsoft Maps team Member

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-11-21T05:58:51+00:00

    Hi Mohammed,

    It looks like you are not calling a matrix but rather just one origin and one destination. For this you should use the route API. If you are calling with a larger set of origins and destinations, the call can fail if one of the locations is not "routable", not near enough to a road to be driven to.

    Also, you have now published your key to a public forum so I would recommend rotating it out this key and using a new one in your solution. As you are an Enterprise Customer, I highly recommend you create a support case for questions like this rather than posting here.

    Sincerely,

    IoTGirl

    Was this answer helpful?

    0 comments No comments
  3. paulr0511 45,225 Reputation points Independent Advisor
    2023-11-18T00:16:36+00:00

    Good day Mohammed! I am glad to be able to provide assistance to you today. I would suggest to post this query to our neighbor forum from the link below as this is best suited in there. They are more oriented on with regards to this type queries/issues and there will be IT Pros and Gurus and the likes on maps API who has the same deployment or setup in this type of environment and are available that will be able to fulfill your query out there.

    https://learn.microsoft.com/en-us/answers/

    Regards,

    Paul R.

    Was this answer helpful?

    0 comments No comments