Hi all,
I am new here; hello everyone
Since a few days I am running my own instance of OpenRouteService (9.0.0) with the latest Europe map from Geofabrik (sized down to a single state for better debugging).
A lot of hgv routes (only this one profile is enabled) run smoothly but on some routes I can’t get any route between the points, e.g. for 7.5723050,51.5253400 and 8.3234420,51.8617630 (where the starting point is causing the problem).
With a get request (also tried post) of
http:// my-ors-server :8082/ors/v2/directions/driving-hgv?start=7.5723050,51.5253400&end=7.57726,51.52766
I get this error response:
{
"error": {
"code": 2009,
"message": "Route could not be found - Unable to find a route between points 1 (7.5723050 51.5253400) and 2 (7.5772600 51.5276600)."
},
"info": {
"engine": {
"build_date": "2024-12-02T11:15:16Z",
"graph_version": "1",
"version": "9.0.0"
},
"timestamp": 1734534186780
}
}
When using the playground with exact the same coordinates via
I do get a proper answer.
I have played around with really a lot of things (including several config changes and recalculations of graphs) but I don’t find the issue
My ors-config.yml right now looks like this (but I also tried with all the standards setting):
logging:
file:
name: /home/ssm-user/ors/app/logs-9.0.0/ors.log
ors:
endpoints:
routing:
enabled: true
maximum_alternative_routes: 3
matrix:
maximum_routes: 10000000
maximum_visited_nodes: 100000000
maximum_search_radius: 3000
engine:
elevation:
cache_path: /home/ssm-user/ors/app/elevation_cache-9.0.0
profile_default:
graph_path: /home/ssm-user/ors/app/graphs-9.0.0
build:
source_file: /home/ssm-user/ors/map/nordrhein-westfalen-latest.osm.pbf
preparation:
methods:
lm:
enabled: true
threads: 4
weightings: recommended
service:
maximum_distance: 9000000
maximum_waypoints: 2000
maximum_snapping_radius: 3000
profiles:
driving-car:
enabled: false
driving-hgv:
enabled: true
encoder_name: driving-hgv
build:
preparation:
min_network_size: 200
methods:
ch:
enabled: true
threads: 4
weightings: recommended
lm:
enabled: true
threads: 4
weightings: recommended
core:
enabled: true
threads: 4
weightings: recommended
landmarks: 64
service:
maximum_distance: 10000000
maximum_distance_dynamic_weights: 10000000
maximum_distance_avoid_areas: 100000
maximum_distance_alternative_routes: 10000000
maximum_distance_round_trip_routes: 10000000
maximum_way_points: 2000
maximum_snapping_radius: 20000
maximum_visited_nodes: 10000000
force_turn_costs: false
interpolate_bridges_and_tunnels: true
cycling-regular:
enabled: false
cycling-mountain:
enabled: false
cycling-road:
enabled: false
cycling-electric:
enabled: false
foot-walking:
enabled: false
foot-hiking:
enabled: false
wheelchair:
enabled: false
public-transport:
enabled: false
I thought this might be due to a snapping problem, but I can snap the point
http:// my-ors-server :8082/ors/v2/ors/v2/snap/driving-hgv
very well and get this (correct) point back:
{
"locations": [
{
"location": [
7.572784,
51.524253
],
...
"metadata": {
...
"query": {
"locations": [
[
7.572305,
51.52534
]
],
"profile": "driving-hgv",
"profileName": "driving-hgv",
"format": "json",
"radius": 350.0
...
}
So snapping seems not the be the problem. But even with this snapped coordinates the direction api does not give a valid route back. Same error as above
Any ideas on that?
Or is there a way to check against the config of the one of https://api.openrouteservice.org? It seems that a /status request is not valid.
Thanks for your help!