Routing API not processing exclusion areas

Hi gang

I started a local graphhopper server feeding it the OSM data for Switzerland (switzerland-latest.osm.pbf). Using the provided demo UI (and a little tweak to the sample-config) I can use max_height restrictions to influence routes, works like a charm.

I also tried to use an area exclusion as described in the API docs (“priority”: [{“if”: “in_custom1”,“multiply_by”: “0”}],) and I can see that the custom area parameters arrive at the server side, but routing ignores it, the provided route goes straight through my “no drive polygon”. I have validated the geojson I used (a polygon crossing the street), and the frontend also seems to be happy with it. I have also tried the same request using your public demo, same result.

Any ideas?

Is there maybe a way I can debug this myself? I can change the log level of the http server in the config file, but that doesn’t help me much.

Cheers!

Well, turns out you have to put the coordinates in the right order or you land in africa instead of europe :slight_smile:

Was a PEBKAC (non-)issue, solved

2 Likes