Skip to content

Proper rerouting logic and misc improvements #5216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Dec 30, 2024
Merged

Proper rerouting logic and misc improvements #5216

merged 16 commits into from
Dec 30, 2024

Conversation

vesameskanen
Copy link
Member

New itinerary search works now as follows:

  • During transit leg, search from next stop after a decent threshold
  • During walking, search from user location if available, otherwise from the leg end
  • During waiting/before journey start, search from next leg start
  • Use actual geolocation, not 'POS' path, which seems to be slow/unreliable when geolocation is already enabled

Other fixes:

  • Alert generation and rendering code refactored
  • Alert content now updates by newer versions
  • Alerts can be closed and they won't reappear
  • Static schedule warning is not shown before 2 minutes to first departure
  • Wait leg focusing works correctly
  • Semantic fix: current leg is not set before itinerary starts

Copy link
Contributor

@partisaani partisaani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@partisaani partisaani merged commit fe48e46 into v3 Dec 30, 2024
6 checks passed
@partisaani partisaani deleted the reroute-from-stop branch December 30, 2024 10:07
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