Skip to content

fix(car): refactor access tag analysis#7539

Open
DennisOSRM wants to merge 4 commits intomasterfrom
refactor_access_analysis
Open

fix(car): refactor access tag analysis#7539
DennisOSRM wants to merge 4 commits intomasterfrom
refactor_access_analysis

Conversation

@DennisOSRM
Copy link
Copy Markdown
Collaborator

Closes #4300.

This makes the access handling for the car profile more precise. The implementation also aided the decision on #4300.

We will keep routing on road segments that have invalid, or more precisely, unhandled access tags. There are two main reasons:

  1. access tags can mean either thing: they can allow or disallow what is accessible.
  2. we take a stance of not knowing what we don't know.

Copilot AI review requested due to automatic review settings May 7, 2026 18:15

This comment was marked as outdated.

DennisOSRM and others added 3 commits May 7, 2026 21:08
- Trim whitespace around each semicolon-separated part in
  Access.resolve_access, so values like 'destination; forestry'
  are correctly looked up in whitelist/blacklist sets.
- Rename 'officials' → 'official' (standard OSM singular form)
  in car profile access blacklist, taginfo.json, and cucumber tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Lua for-loop variables are implicitly const; reassigning 'part'
caused a runtime error. Use a separate 'trimmed' local instead,
and store the trimmed value as 'best' for correct return.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Do not route over invalid access tags

2 participants