-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some routes are incorrectly calculated #58
Comments
This type of problem usually hints at a problem in the underlying OSM data (some gap which is often invisible on the rendered maps). I will investigate this.
|
I have now reproduced this, and it was a problem with the internal bounding box used for cropping the OSM data. The default padding around the box computed from the GTFS stops (2,5 km) was not enough to capture a small part of the rail tracks around Mont-Joli. I have now increased this padding to 20 km, and have also made it configurable via |
Pfaedle is a wonderful tool to generate shapes.txt. Since most of the shapes.txt delivered with feeds are useless I am re-creating them with pfaedle.
Now I have come across a problem with routing, where pfaedle generates a deviation instead of connecting two stations directly.
After processing the Canada feed the trip 1751-505 results in this route:
Here the connection from Sayabec to Mont-Joli is interrupted. This results in the fact that in the train simulation, the vehicle goes to Sayabec and then returns to Pacific Junction to then reach Mont-Joli on the route that appears to have no valid stations.
The GTFS Feed from Canada is here:
https://s3.gtfs.pro/files/uran/improved-gtfs-viarail.zip
I am using a continental OSM file for North America found at:
https://download.geofabrik.de/north-america-latest.osm.pbf
The same happens with trips from Los Angeles to Chicago sample trip id: 97370
The feed is from here:
https://content.amtrak.com/content/gtfs/GTFS.zip
Now I definitely don't know if this is a pfaedle problem or if the OSM file is faulty. Pfaedle has not issued any warnings or errors.
In any case if it is an OSM file problem then I'd rather have pfaedle draw a straight line to the next station than calculation such a lengthy deviation.
BTW I removed all shape info from these feeds before running pfaedle.
Thank you.
Georg Ragaz
https://trainspotter.ragaz.net
The text was updated successfully, but these errors were encountered: