Is there a way to exclude specific public transport types from routing?

Hi,

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?

Thanks.