Hi ,
I am failing to understand a behavior with my self hosted ORS isochrone service ( local Docker container on latest image).
My ORS seems to be only able to build on (1?) specific point (or at least every other point I tried failed):
#Point where I get a 3099 error
body = {"locations":[[2.345688,48.853004]],"range":[600],"range_type":"time"}
headers = {
'Accept': 'application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8',
'Content-Type': 'application/json; charset=utf-8'
}
call = requests.post('http://localhost:7070/ors/v2/isochrones/driving-car', json=body, headers=headers)
print(call.status_code, call.reason)
print(call.text)
#Point given in the API playgroud tested on my ors
body = {"locations":[[8.681495,8.686507]],"range":[600],"range_type":"time"}
headers = {
'Accept': 'application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8',
'Content-Type': 'application/json; charset=utf-8'
}
call = requests.post('http://localhost:7070/ors/v2/isochrones/driving-car', json=body, headers=headers)
print(call.status_code, call.reason)
print(call.text)
Here are the responses i get :
500
{"error":{"code":3099,"message":"Unable to build an isochrone map."},"info":{"engine":{"build_date":"2025-01-29T12:32:30Z","graph_version":"1","version":"9.1.0"},"timestamp":1740151517515}}
200
{"type":"FeatureCollection","bbox":[8.678141,49.333596,8.697155,49.358999],"features":[{"type":"Feature","properties":{"group_index":0,"value":600.0,"center":[8.6857601,49.3336218]},"geometry":{"coordinates":[[[8.678174,49.348252],[8.678248,49.347787],[8.679379,49.342681],[8.682421,49.338721],[8.685582,49.333596],[8.685938,49.333647],[8.689449,49.336444],[8.69447,49.337864],[8.694824,49.33793],[8.695739,49.340295],[8.696888,49.343613],[8.697155,49.345504],[8.697018,49.346416],[8.69575,49.349014],[8.695577,49.34933],[8.691819,49.354547],[8.690421,49.358081],[8.689238,49.358999],[8.689215,49.358997],[8.689048,49.358806],[8.688825,49.358232],[8.681205,49.35366],[8.68099,49.353371],[8.678141,49.34861],[8.678174,49.348252]]],"type":"Polygon"}}],"metadata":{"attribution":"openrouteservice.org, OpenStreetMap contributors","service":"isochrones","timestamp":1740151517529,"query":{"profile":"driving-car","profileName":"driving-car","locations":[[8.681495,8.686507]],"range":[600.0],"range_type":"time"},"engine":{"version":"9.1.0","build_date":"2025-01-29T12:32:30Z","graph_date":"2025-02-21T11:47:59Z"}}}
I suspected there was something wrong with my point and tested it on the public API :
# "my" point on public ORS API
body = {"locations":[[2.345688,48.853004]],"range":[600],"range_type":"time"}
headers = {
'Accept': 'application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8',
'Authorization': MYKEY ,
'Content-Type': 'application/json; charset=utf-8'
}
call = requests.post('https://api.openrouteservice.org/v2/isochrones/driving-car', json=body, headers=headers)
print(call.status_code, call.reason)
print(call.text + "\n\n")
and got a successfull isochrone :
200
{"type":"FeatureCollection","bbox":[8.678141,49.333596,8.697155,49.358999],"features":[{"type":"Feature","properties":{"group_index":0,"value":600.0,"center":[8.6857601,49.3336218]},"geometry":{"coordinates":[[[8.678174,49.348252],[8.678248,49.347787],[8.679379,49.342681],[8.682421,49.338721],[8.685582,49.333596],[8.685938,49.333647],[8.689449,49.336444],[8.69447,49.337864],[8.694824,49.33793],[8.695739,49.340295],[8.696888,49.343613],[8.697155,49.345504],[8.697018,49.346416],[8.69575,49.349014],[8.695577,49.34933],[8.691819,49.354547],[8.690421,49.358081],[8.689238,49.358999],[8.689215,49.358997],[8.689048,49.358806],[8.688825,49.358232],[8.681205,49.35366],[8.68099,49.353371],[8.678141,49.34861],[8.678174,49.348252]]],"type":"Polygon"}}],"metadata":{"attribution":"openrouteservice.org, OpenStreetMap contributors","service":"isochrones","timestamp":1740152177491,"query":{"profile":"driving-car","profileName":"driving-car","locations":[[8.681495,8.686507]],"range":[600.0],"range_type":"time"},"engine":{"version":"9.1.0","build_date":"2025-01-29T12:32:30Z","graph_date":"2025-02-21T11:47:59Z"}}}
The only difference i can notice is that the latest docker image run with 9.1 and public API on 9.0 but have no clue on why I cant get any other location to build an isochrone on.
I suspected that snaping was not enabled in the default config but snap/enable is set to true in /ors/config/ors-config.yml (and maximum_snapping_radius to 400 (meters I assume).
Any pointer to help me fix this would be apreciated !
Thanks a lot !