How to use it
Step 1 Search for the trip first by
tripId using GET /api/Trips, then read DriverLat, DriverLng, and StatusCode from the response. When the driver is heading to pickup If the trip status code is
2 (Your driver is on the way), send fromLat and fromLng from DriverLat and DriverLng. Send toLat and toLng from the trip pickup coordinates fromLat and fromLng. When the trip is already in progress If the trip status code is
5 (TRUXXing Now ;)), send fromLat and fromLng from DriverLat and DriverLng. Send toLat and toLng from the trip destination coordinates toLat and toLng. Important Call this endpoint only when the search trips response already includes driver coordinates.