How to avoid transit routing through certain countries
Posted: Thu Jun 12, 2014 1:02 pm
Dear forum users,
I need to perform an A-B route calculation which excludes Switzerland as a transit country.
I.e. unless A or B are located in Switzerland no Swiss segments should be part of the route.
I am looking for an approach other than simply checking whether A or B are located in Switzerland and then set EXCLUDE_COUNTRIES appropriately in the request.
In case there is no such option, how about introducing a parameter AVOID_COUNTRIES which takes the following value “41=2500;49=100” (as for AVOID_NATIONALNAMEDTOLL_ROADS).
Any recommendations ?
Regards
Metin Kahraman
I need to perform an A-B route calculation which excludes Switzerland as a transit country.
I.e. unless A or B are located in Switzerland no Swiss segments should be part of the route.
I am looking for an approach other than simply checking whether A or B are located in Switzerland and then set EXCLUDE_COUNTRIES appropriately in the request.
In case there is no such option, how about introducing a parameter AVOID_COUNTRIES which takes the following value “41=2500;49=100” (as for AVOID_NATIONALNAMEDTOLL_ROADS).
Any recommendations ?
Regards
Metin Kahraman