Skip to content

Share directional speed limit selection - #137

Merged
pfeiferj merged 2 commits into
pfeiferj:mainfrom
FrogAi:codex/share-directional-speed-selection
Sep 22, 2026
Merged

pfeiferj merged 2 commits into
pfeiferj:mainfrom
FrogAi:codex/share-directional-speed-selection

Conversation

@FrogAi

@FrogAi FrogAi commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Current-way and upcoming speed-limit selection duplicate the same forward/backward limit lookup and fallback. Extract that logic into maps.Way.MaxSpeedForDirection and reuse it in both callers, keeping the existing selection rules and conditional-speed handling unchanged.

Validation (Go 1.25.1, Linux/amd64):

  • go test ./...
  • go vet ./...

@pfeiferj
pfeiferj merged commit 3af8114 into pfeiferj:main Sep 22, 2026
1 check passed
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.

2 participants