I’m using GraphHopper with public transit routing.
I want to avoid routes that include a specific type of public transport, such as buses.
Is there any way to exclude a certain PT type during routing?
If possible, I would also like GraphHopper to return alternative routes that avoid that transport type.
For example:
exclude bus routes
still return subway/train-based alternatives if available
Is this currently supported?
If not, would this be relatively easy to implement in the project codebase myself?
I am not aware of this functionality! (as another user)
I’d imagine the logic here is ingest all data provided via GTFS (mode agnostic) and if it is not to be considered, it should not be within the GTFS feed provided to GraphHopper.
I would perhaps suggest filtering the GTFS feed you are using to remove Bus prior to building the Graph.
Likely of interest here is routes.txt within a GTFS dataset.
Specifically the field route_type for which a value of 3 corresponds to Bus.
Removal of these routes from your GTFS feed would achieve this.