this is route from poland (bydgoszcz) to mediolan spain avoid DE.
avoid_countries not working(route works, through Germany unfortunately), my graphs is ok (no error at generate).
in my logs no errors… how to debug this problem? or fix?
the rest of the parameters like avoid_features etc. work ok (tested GPX at http://gpx.studio)
Hello,
I’m facing the same problem and wanted to ask if you’ve found a solution. I can’t get avoid_countries to be taken into account when calculating the route. I use the following query to avoid Switzerland and Austria, for example:
It might be interesting to note that I couldn’t get ORS to work with the settings from the documentation:
lmsets: highways,tollways;highways;tollways;country_193;allow_all
I used the Europe map from geofabrik: europe-latest.osm.pbf
both problems are probably to do with the fact that the border storage is not activated.
The border storage, also documented in our backend docs, is necessary for both avoid_countries to work and for the lmsets-config to work.
Documentation is a bit lacking, but have a look at the test file structure - your border geometry files should have a name attribute that corresponds to a name in the ids.csv-file.
Thank you for your answer. That of course explains why I haven’t had any success so far.
Did I understand correctly that I have to prepare every country that I potentially want to avoid by hand according to these instructions? In my example, once for Switzerland and once for Austria?
Do you know if there are countries available for download on the Internet? I have found this at geofabrik: