Skip to content

Adds 'ignore_construction' flag to allow routing on construction ways#5030

Merged
kevinkreiser merged 19 commits intovalhalla:masterfrom
eikes:ignore-construction-flag
Jan 15, 2025
Merged

Adds 'ignore_construction' flag to allow routing on construction ways#5030
kevinkreiser merged 19 commits intovalhalla:masterfrom
eikes:ignore-construction-flag

Conversation

@eikes
Copy link
Contributor

@eikes eikes commented Jan 2, 2025

Issue

In the past the ability to "Include roads under construction into the graph" was added: #3455

Currently it is not possible to create routes on ways which have the construction tag though. There is an issue about that, so this PR fixes: #4148

The situation is, that you can include construction ways in the routing graph by enabling the include_construction flag in the configuration json before building the graph. You cannot use these ways for routing though as they are explicitly marked as inaccessible in both directions and there is an additional check in the dynamic costing.

This PR adds a flag which can be enabled on a request in the costing options to explicitly allow routing on construction ways.

This might not be useful when doing ad-hoc routing, but when planning routes the current construction sites aren't of interest.

Tasklist

  • Add tests
  • Add #fixes with the issue number that this PR addresses
  • Update the docs with any new request parameters or changes to behavior described
  • Update the changelog
  • If you made changes to the lua files, update the taginfo too.

Requirements / Relations

@eikes eikes force-pushed the ignore-construction-flag branch from f82ab05 to 117d2bf Compare January 2, 2025 10:17
@eikes eikes changed the title Adds 'ignore_constructions' flag to allow routing on construction ways Adds 'ignore_construction' flag to allow routing on construction ways Jan 3, 2025
@eikes eikes marked this pull request as ready for review January 6, 2025 10:47
@eikes eikes force-pushed the ignore-construction-flag branch from 4e86045 to c040a5d Compare January 14, 2025 12:13
kevinkreiser
kevinkreiser previously approved these changes Jan 15, 2025
Co-authored-by: Kevin Kreiser <kevinkreiser@gmail.com>
@kevinkreiser kevinkreiser merged commit 6bd9101 into valhalla:master Jan 15, 2025
@eikes
Copy link
Contributor Author

eikes commented Jan 15, 2025

🚧 Hooray! 🚧

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

Successfully merging this pull request may close these issues.

Enabling route finding on roads under construction

3 participants