Skip to content

VSN-2368/ feat(tracking): display real trip stops on map with driver live position

fatima senan a demandé de fusionner feature/VSN-2368 vers develop

The changes includes in this mr are as follows :

  • Fetch and display real trip stops (GPS coordinates) on the tracking map after loading the current trip
  • Center the map automatically on trip stops when no driver position is available yet
  • Show driver live position marker updated every 3s via polling
  • Fix polling: HTTP 304 (not modified) is now treated as success instead of an error
  • Add route rendering between driver position and stops using MapViewDirections (Google Directions API) with automatic fallback to a dashed Polyline if the API is unavailable (billing not enabled)
  • Display stop marker labels based on trip direction:
  • Aller: current passenger stop → "Votre prise en charge", last stop → "Destination"
  • Retour: current passenger stop → "Votre arrêt", last stop → "Établissement"
  • Other stops → "Arrêt" (no passenger name exposed)
  • Hide stop address in marker description for stops not belonging to the current passenger
  • Add totalPassengers count in the tracking card (DriverArrivalCard) and in the trip detail screen (TrajetDetailScreen)
  • Propagate direction field from API through store and types down to GoogleMapsView

Rapports de requête de fusion