Skip to content

Avoid ferries unless they're the only option #7143

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

Open
SimonBradley1993 opened this issue Apr 1, 2025 · 0 comments
Open

Avoid ferries unless they're the only option #7143

SimonBradley1993 opened this issue Apr 1, 2025 · 0 comments

Comments

@SimonBradley1993
Copy link

I'm trying to adjust the car.lua profile to result in any ferry route being ignored unless it is the only option.

I've been struggling to find a way of doing this, through setting max speeds / rate / weights or penalties for using ferries. Most of what I have tried has resulted in no change (my profile changes are definitely being picked up after regenerating the dataset) in the route created.

The only thing that has made a difference is setting the ferry speed to 0 in this block route_speeds = { ferry = 0, shuttle_train = 10 },

This results in a very odd route that doesn't end at the location specified. I've tried setting the ferry speed very low, something like 0.001 but this results in a segmentation fault during the osrm-extract command, which I assume is due to the decimal point.

Are there any docs or advice on how to configure the car.lua profile so ferry routes are only used as a last resort?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant