question

PeiiLu-5382 avatar image
0 Votes"
PeiiLu-5382 asked IoTGirl edited

BingMapsAPI: avoid passing Switzerland for calculation

Hi there,

We are using BingMaps API as our tool to calculate the distance in Europe.
We would like to avoid passing Switzerland in our calculation.
From your blog saying BingMaps can only avoid country crossing border in US and CA.
Is there any update or possible for request to avoid passing Switzerland?

Look forward to hearing from you, thanks!

Kind regards,
Peii

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.

1 Answer

IoTGirl avatar image
0 Votes"
IoTGirl answered IoTGirl edited

Hi PeiiLu,

You are using "avoid":"borderCrossing" and it is not working for you? Can you give a sample call that is failing? Calculate a route API or Calculate a truck route API?

Both APIs support avoid=borderCrossing, but there is more support for borderRestriction using Calculate a truck route API.

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.