Trips and ETAs
Live ETAs for deliveries, pickups and visits.
Start a trip to a destination geofence and every location update recalculates the ETA. MapSocket moves the trip from started to approaching to arrived on its own and sends each step to your webhooks, so customers and dispatchers see the same thing.
What you get
-
Statuses that move themselves
started → approaching → arrived, then completed or canceled. Idle trips expire after 24 hours by default.
-
ETAs from real routes
With routing switched on, ETAs come from Valhalla for car, truck, motorbike, bike or foot. Otherwise you get a straight-line estimate, labelled as one.
-
Late before it's late
Give a scheduled arrival and each trip reports its delay and whether it's over your threshold (10 minutes by default).
-
Wrong door alerts
Optionally fire an event when someone arrives at another geofence with the destination's tag, like the wrong store.
-
Your ids, one trip at a time
Use your order id as the trip's externalId. A user has one active trip; starting a new one cancels the last. Optional project and task ids allow one active trip per task.
-
Safe from the app
Publishable keys can start and update trips, so your driver app talks to MapSocket directly.
Try it
Copy this, swap in a key from your project, and run it.
curl -X POST https://api.mapsocket.com/v1/trips \
-H "Authorization: pk_live_…" -H "Content-Type: application/json" \
-d '{
"externalId": "order-1041",
"userId": "driver-118",
"mode": "car",
"destinationGeofenceTag": "store",
"destinationGeofenceExternalId": "flatiron",
"scheduledArrivalAt": "2026-11-04T16:53:20Z"
}' {
"status": "approaching",
"eta": { "duration": 4.2, "distance": 1850, "source": "routing" },
"delay": { "scheduledArrivalTimeDelay": -3.1, "delayed": false }
} Good to know
- One destination per trip: multi-stop routes need a trip per stop.
- ETAs don't include live traffic.
Read more
Also in every MapSocket project
- Live vector tiles Vector tiles from your PostGIS tables that update seconds after a row changes.
- Files and web services Tiles from GeoJSON, Shapefiles, GeoPackages, Esri services and WFS, rebuilt when the data changes.
- Geofencing API Send a location, get enter, exit and dwell events for circles, polygons and travel-time areas.
- Places, regions and fraud checks Every location named: the place, country and state, beacons, and whether to trust the fix.
- Georeferencer Put scanned maps, site plans and drone photos on the map, under your live data.
- Elevation API Ground elevation for up to 100 points per request, anywhere on Earth, in metres or feet.
- Custom tile domains Serve tiles from tiles.yourcompany.com, with certificates handled for you.
- MCP server for AI assistants Connect Claude, ChatGPT, Groq, Cursor and other assistants to your geofences, users, trips and events.