Skip to content

[Feature] Auto-stop tracking when destination is reached #5

Description

@mattekudacy

Description

Automatically stop tracking when the user reaches their destination and save the trip to history.

User Story

As a commuter, I want the app to automatically stop when I arrive so I don't have to manually end the session.

Proposed Behavior

  1. User arrives at destination station
  2. App detects arrival and shows notification
  3. After staying at/near the station for 30-60 seconds:
    • Tracking automatically stops
    • Trip is saved to history
    • Summary screen shown

Flow

[Destination Reached]
↓
[Wait 30-60 seconds to confirm]
↓
[Auto-stop tracking]
↓
[Save to history]
↓
[Show trip summary]

┌─────────────────────────────┐
│ 🎉 You've arrived!                                             │
│                                                                            │ 
│ Ayala → Monumento                                         │
│ Duration: 48 min                                                │
│                                                                            │
│ [Done] [Track New Trip]                                      │
└─────────────────────────────┘

Acceptance Criteria

  • Detect arrival at destination
  • Wait confirmation period (30-60 sec near station)
  • Auto-stop tracking
  • Save trip to history (connects to [Feature] Add simple travel history tab #3)
  • Show trip summary
  • Option to start new trip immediately

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions