Skip to content

driver trip direction is not updating correctly at start #38

@SaiHarsh24

Description

@SaiHarsh24

Priority ~ Medium
System ~ Backend
Description
When a driver clicks Start, the trip direction should automatically switch based on the driver's current location:

When the driver starts at (say) Main Gate, the direction should be set to To (say Main Gate → D Gate).
When the driver finishes the previous trip and clicks Start again at (say) D Gate, the direction should switch to Fro (say D Gate → Main Gate).
Currently, this automatic direction change is not happening.

Expected Behavior
If the driver clicks Start at (say) Main Gate → direction becomes To.
If the driver clicks Start at (say) D Gate → direction becomes Fro.
System should reliably alternate directions based on the driver's actual starting point.
Impact
Incorrect direction can confuse route tracking
Leads to inaccurate live tracking or trip history
Impacts rider-side and admin-side clarity

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions