API reference
Three endpoints. Start with a trip.
Base URL
https://api.tracktheride.com/v1POST
/v1/trips/{trip_id}/locationsSend a location
Send the vehicle’s latest position. Followers on the trip page see the marker move within a second. Send as often as every 2 seconds; we keep the most recent fix and the full path.
Authentication
Send your API key as a bearer token. Keys are per environment; test keys work right away.
Authorization: Bearer $TTR_KEYBody parameters
latnumberRequiredLatitude, WGS84.
lngnumberRequiredLongitude, WGS84.
headingnumberOptionalDegrees from north, 0–359. Rotates the vehicle marker.
speednumberOptionalMetres per second. Used for ETA smoothing.
recorded_atstringOptionalISO 8601 time the fix was taken. Defaults to receipt time.
Request
curl https://api.tracktheride.com/v1/trips/trk_8f2KqA/locations \-H "Authorization: Bearer $TTR_KEY" \-d lat=37.8591 \-d lng=-122.4853 \-d heading=312
Response · 202
{"trip_id": "trk_8f2KqA","status": "live","followers": 4,"eta": "2026-11-05T13:05:00Z"}