gis-ops / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
240 stars 70 forks source link

Adding a Transit Directory #16

Closed nicoazel closed 3 years ago

nicoazel commented 3 years ago

During docker-compose up --build, after parsing a .pbf I notice the line:

[INFO] Transit directory not found. Transit will not be added.

Is there an easy way to add a 'Transit directory' with transit data (ideally GTFS) to the `custom_files' directory and have transit data added to, or integrated with, the osm data at container build time?

If not, is there a suggested workflow, or documentation for, integrating both Transit Information and OSM Street Data into the routing graph?

I first looked to the Valhalla docs and found this but personally don't know how to follow through on using --mjolnir-transit-dir and based on the above [INFO], it seems like something that may already be implemented in your image.

P.S. Thank you for making this image! I have wanted to use Valhalla for some time but the source repo has always been too intimidating. This has made Valhalla accessible out of the box and is incredibly useful.

nilsnolde commented 3 years ago

Happy it's helpful:) And yeah, I felt the same way when I first looked at it..

Transit in Valhalla is (very unfortunately) locked in with Transitland currently, which is smth I avoided up to this day. If you can wait a little, there might be help around the corner for native GTFS support: https://github.com/valhalla/valhalla/pull/2835.

nilsnolde commented 3 years ago

If you have the patience to go with transitland, you'd build the transit tiles manually (executables inside the container as well) and point valhalla to the parent directory in the valhalla.json.