Encode per-class season windows in tiles and evaluate them per profile token#13
Merged
Merged
Conversation
…e token Each route now carries os_<class>/oe_<class> fields for every permitted, non-ebike class whose window is bounded (missing means yearlong). isOpen() evaluates each requested vehicle-profile token against its own window via coalesce-defaulted MapLibre expressions instead of the route-level representative window, fixing routes where classes have genuinely different season windows (e.g. passenger yearlong, motorcycle seasonal). window_text gets a "(varies by class)" suffix when permitted classes' parsed windows differ. classPermitted/dateInSeason are removed (folded into isOpen); representative season/open_start/open_end are kept for display/back-compat.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executes plans/005-per-class-season-windows.md. Advisor-reviewed: full diff read, 36 vitest + 33 pytest re-run, and the new normalize_feature validated against the real statewide data (46,662 routes; exactly the 2,885 divergent-window routes from the audit get the '(varies by class)' marker; HAY FLAT 10N14H spot-checked — passenger correctly yearlong, OHV classes os_=91/oe_=365).
🤖 Generated with Claude Code
https://claude.ai/code/session_01HNxgKNjtfeKtxYvN34KbGs