Closed isakengstrom closed 1 year ago
Ah, interesting :smile:
Actually I implemented that ages ago and this is the first time I hear about it. It's easily fixed, but not in this project, the fix needs to happen in upstream Valhalla: https://github.com/valhalla/valhalla.
Would you mind opening the issue there? It's enough to refer to this one, which I'll close now.
Hi,
I ran into a bug with the avoid_polygons/exclude_polygons which causes the container to stop. If I send in an empty polygon array to the avoid_polygons array, it causes a segmentation fault:
Issue occurs when running the following get request:
localhost:8002/route?json={"locations":[{"lat":58.403618,"lon":15.556376},{"lat":58.406674,"lon":15.559801}],"costing":"bus","directionType":"none","avoid_polygons":[[]]}
Beautified json of the request:
Expexted behaviour To get a response similar to:
Actual behaviour Container crashes and requires a restart
Setup:
I'm using the following docker-compose YAML config to start the container: