Skip to content

Post location ping

POST {{baseUrl}}/runners/location

Reports the driver’s current GPS location while on shift. Source: util/background_geolocation.ts.

Response: 200, plain-text body Location updated successfully. Not JSON — no fields to document.

{
"location": {
"coords": { "latitude": 40.0, "longitude": -75.0, "accuracy": 5 },
"timestamp": "2026-06-22T00:00:00.000Z"
}
}
Terminal window
curl --request POST 'https://api.firstdelivery.com/api/runners/location' \
--header 'Content-Type: application/json' \
--data '{
"location": {
"coords": { "latitude": 40.0, "longitude": -75.0, "accuracy": 5 },
"timestamp": "2026-06-22T00:00:00.000Z"
}
}'
Location updated successfully