Skip to content

Improve conditional access handling - #2965

Merged
karussell merged 6 commits into
masterfrom
issue_2964
Apr 9, 2024
Merged

karussell merged 6 commits into
masterfrom
issue_2964

Conversation

@karussell

@karussell karussell commented Apr 6, 2024 •

Copy link
Copy Markdown
Member

Should fix #2964. Related to #2863.

  1. If date is not in time period of conditional restriction (!isInRange) we now return the opposite of NO or YES instead of MISSING.
  2. we parse conditional access restrictions in all xy_access parsers again to ignore restrictions if there is a conditional access value. Which makes it possible (in combination with 1.) to fix Tags vehicle=no + bicycle:conditional=yes@… should trigger warning instead of failing to route in cycle profiles #2964.
  3. It is not possible to use xy_temporal_access in xy_access due to hierarchy and so we cannot use xy_temporal_access which has the advantage that it avoids the dependency between the parsers and encoded values.
  4. renames enum once again as we pick really only the temporal conditional restrictions. And there is no longer a strong similarity to OSM tags anyway (due to 1.).

…r temporal conditional restrictions only; furthermore use MISSING only if no 'yes' or 'no' restriction exists, not if range does not match
@karussell karussell added the bug label Apr 9, 2024
@karussell karussell added this to the 9.0 milestone Apr 9, 2024
@karussell
karussell merged commit ae41168 into master Apr 9, 2024
@karussell
karussell deleted the issue_2964 branch April 9, 2024 09:56

This branch was previously deployed

1 inactive deployment
benchmarks — 33f47fdc Deployed Apr 9, 2024 by karussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tags vehicle=no + bicycle:conditional=yes@… should trigger warning instead of failing to route in cycle profiles

1 participant