Possible to disable alternative routes in the web UI?

Hello,

We’re using a specific weighting algorithm within the GraphHopper routing engine (for heavy vehicle routing considerations).

We’ve run into some issues with the GH web UI showing a different primary route compared to what the routing engine will actually return with our specific weighting.

Is there a way to configure the UI so it doesn’t request the alternative routes to avoid this?

Thanks,
David

I don’t think this is possible using the configuration, but in the graphhopper-maps source code there is a maxAlternativeRoutes Parameter that you could set to 1.