Skip to content

feat: show recent position trail for selected vehicle#99

Merged
z4ab merged 3 commits into
mainfrom
feat/issue-92-vehicle-history
Jun 17, 2026
Merged

feat: show recent position trail for selected vehicle#99
z4ab merged 3 commits into
mainfrom
feat/issue-92-vehicle-history

Conversation

@z4ab

@z4ab z4ab commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Backend: tracks the last 60 positions per vehicle in _vehicle_history and exposes them via GET /api/vehicles/{vehicle_id}/history.

Frontend: new useVehicleHistory hook and a dashed polyline at 0.4 opacity behind the selected vehicle marker on the map, using the vehicle's route colour.

Closes #92

z4ab added 2 commits June 16, 2026 22:19
Append each vehicle's current position to an in-memory history list
during cache refresh (max 60 entries per vehicle). Expose the history
via a new GET /api/vehicles/{vehicle_id}/history endpoint.

Closes #92
Add useVehicleHistory hook that fetches position history for the
selected vehicle. Render a dashed polyline trail behind the selected
vehicle using its route color with reduced opacity.
@railway-app
railway-app Bot temporarily deployed to grt-bus-tracker / bus-tracker-pr-99 June 17, 2026 02:19 Destroyed
@railway-app

railway-app Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🚅 Deployed to the bus-tracker-pr-99 environment in grt-bus-tracker

Service Status Web Updated (UTC)
bus-tracker-frontend ✅ Success (View Logs) Web Jun 17, 2026 at 2:22 am
bus-tracker-api ⏭️ Skipped (View Logs) Web Jun 17, 2026 at 2:21 am

@railway-app
railway-app Bot temporarily deployed to grt-bus-tracker / bus-tracker-pr-99 June 17, 2026 02:21 Destroyed
@z4ab
z4ab merged commit 4516161 into main Jun 17, 2026
4 checks passed
@z4ab
z4ab deleted the feat/issue-92-vehicle-history branch June 25, 2026 18:36
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.

Show recent position trail for selected vehicle on the map

1 participant