Skip to content

Share directional speed limit selection - #137

Open
FrogAi wants to merge 2 commits into
pfeiferj:mainfrom
FrogAi:codex/share-directional-speed-selection
Open

FrogAi wants to merge 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 ./...

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.

1 participant