geofabrik / OpenRailRouting

routing on railway tracks using OpenStreetMap data and the GraphHopper routing engine
Apache License 2.0
168 stars 30 forks source link

PointNotFoundException - even point is valid #20

Closed jolo2000 closed 3 months ago

jolo2000 commented 4 years ago

Hi all,

I tried to get some railroad tracks outside of Germany, e.g. from Munich to Moscow. Therefore I use the planet-xxx.osm.pbf, but I receive a PointNotFoundException error, even the location exists.

I assume it is related to the distance, e.g. Munich - Gdansk is found, Munich - Riga ( farther away) throws the PointNotFoundException. Munich - Marseille found. Munich - Madrid (farther away) not found

Is there any distance limit or threshold to configure in Grasshopper or OpenRailRouting to overcome this situation? Any hints? Johannes

ERROR [2020-07-10 13:26:23,586] com.graphhopper.resources.RouteResource: point=48.137108%2C11.575382&point=55.750446%2C37.617494&type=json&locale=en-US&vehicle=freight_diesel&weighting=fastest&elevation=false&key= 127.0.0.1 en_US Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Firefox/78.0 [48.137108,11.575382, 55.750446,37.617494], took:0.013820671, , fastest, freight_diesel, errors:[com.graphhopper.util.exceptions.PointNotFoundException: Cannot find point 1: 55.750446,37.617494] INFO [2020-07-10 13:26:23,586] com.graphhopper.http.MultiExceptionMapper: bad request: unknown reason

Nakaner commented 3 months ago

Riga and (partially) Madrid are not connected by the central European railway network at 1435 mm gauge. Therefore, this was a feature, not a bug.

OpenRailRouting has been rewritten in the past days and can be customize easily now. Therefore, I think this issue is resolved because gauge-agnostic routing is possible now.

Nakaner commented 3 months ago

See https://www.openrailwaymap.org/?style=gauge&lat=53.79091696637288&lon=21.4068603515625&zoom=7 for a map of gauges.