This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Local install not finding routes #202
Unanswered
classicclown
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
The map matching params (https://valhalla.github.io/valhalla/meili/configuration/#map-matching-parameters) have max values set in the config which you'll have to adapt to your needs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm trying to set up Valhalla locally to find the route for trips but I'm running into some issues. I've got the Valhalla docker image set up locally on a server with https://download.geofabrik.de/africa/south-africa-latest.osm.pbf South Africa osm file as my reference map.
I've got a database of trips that I'm trying to route through Valhalla but I keep running into this error:
The co-ordinates are fine, I've checked them on OpenStreetMaps and Google Maps and they are right next to roads and nothing is remote, so it must be something wrong with my config. I haven;t touched the json config file but here is my config code that I'm passing:
payload = { "shape": [ {"lat": start_lat, "lon": start_long}, {"lat": end_lat, "lon": end_long} ], "costing": "auto", "shape_match": "walk_or_snap", "search_radius":500000, "filters": { attributes": ["way_id", "length", "name", "road_class"] }}Here are sample lat and longs that I tried which all gave the same error code 172:
{ "start_location_lat": -33.9036, "start_location_lon": 18.4200, "end_location_lat": -33.9519, "end_location_lon": 18.4031},{ "start_location_lat": -33.9519, "start_location_lon": 18.4031, "end_location_lat": -33.9715, "end_location_lon": 18.6021},{ "start_location_lat": -33.9715, "start_location_lon": 18.6021, "end_location_lat": -34.1053, "end_location_lon": 18.4693},{ "start_location_lat": -34.1053, "start_location_lon": 18.4693, "end_location_lat": -33.9876, "end_location_lon": 18.4323},{ "start_location_lat": -33.9876, "start_location_lon": 18.4323, "end_location_lat": -33.9794, "end_location_lon": 18.4645},{ "start_location_lat": -33.9794, "start_location_lon": 18.4645, "end_location_lat": -33.9121, "end_location_lon": 18.3865},{ "start_location_lat": -33.9121, "start_location_lon": 18.3865, "end_location_lat": -33.8921, "end_location_lon": 18.5113},{ "start_location_lat": -33.8921, "start_location_lon": 18.5113, "end_location_lat": -33.8986, "end_location_lon": 18.6291},{ "start_location_lat": -33.8986, "start_location_lon": 18.6291, "end_location_lat": -34.0487, "end_location_lon": 18.3456}Additionally, I got this error:
Some trip coordinates do work, and I get a route output, so I'm really not sure where the process might be going wrong. Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions