Telemetry
Telemetry
Contribute GPS trips that Navvo map-matches and aggregates into its traffic layers, and read back aggregated traffic data. If your app has its own location stream (delivery drivers, ride-hail, fleet), submitting it here makes traffic better for everyone — including your own ETAs.
Every upload is authenticated: an API key with the telemetry scope or a signed-in Navvo session (Bearer token). Anonymous uploads are not accepted. Trips feed aggregate traffic only and are never exposed as individual tracks. Their points are kept as trip history. A contributor using an API key can withdraw its trips.
Scope required: telemetry
{ t, lat, lon } with speed_mps in meters per second. Trip points use named { lat, lng } fields; speed is in meters per second; capturedAt is an ISO-8601 timestamp. All traffic output speeds are km/h, and output geometry is GeoJSON [lng, lat].POST /telemetry/batches
Send a trip while it happens, in short batches. This is the recommended way for an app to contribute: each batch is small, retrying one is safe, and each answer says what was measured.
Authentication: a signed-in session or an API key with the telemetry scope. Without either, the call returns 403 AUTH_REQUIRED. The contributor's identity comes from the session or the key, never from the body.
Request body
0, 1, 2, … Default 0. (trip_id, batch_seq) makes a retry safe.{ "purposes": [ … ], "granted_at": "<ISO 8601>", "granted": true }. Without it, the batch is used for every purpose under Navvo's terms. See Consent purposes.car.true on the last batch of the trip.Each points[] element:
| Field | Type | Required | Notes |
|---|---|---|---|
t | string | yes | ISO 8601 time with Z or an offset. Milliseconds since the Unix epoch are also accepted. |
lat | number | yes | Latitude. |
lon | number | yes | Longitude (lng is also accepted). |
accuracy_m | number | no | Horizontal accuracy in metres. Points with accuracy worse than 65 m are ignored. |
speed_mps | number | no | meters/second. |
heading | number | no | Degrees clockwise from north. |
{
"trip_id": "c0ffee-…",
"batch_seq": 0,
"vehicle": "car",
"final": false,
"points": [
{ "t": "2026-11-30T08:01:00Z", "lat": 31.9539, "lon": 35.9106, "accuracy_m": 6, "speed_mps": 12.4, "heading": 92 },
{ "t": "2026-11-30T08:01:05Z", "lat": 31.9541, "lon": 35.9113, "accuracy_m": 5, "speed_mps": 12.9, "heading": 90 }
]
}
- Times: points older than 7 days or in the future reject the whole batch with
400 INVALID_TIME. - Retries:
(trip_id, batch_seq)is idempotent per caller. Retrying a batch after a network failure is safe: it returns the first receipt withrepeated: trueand is not counted twice. - The end of a trip: send
final: trueon the last batch.
Consent purposes
Using Navvo includes contributing trip and traffic data, so a batch without a consent block is used for every purpose below. Send consent when your own agreement with your drivers is narrower:
consent.purposeslimits a batch to the purposes listed.consent.granted: falsemeans your driver refused: the call returns403 CONSENT_DECLINEDand nothing is stored.
The purposes:
| Purpose | Meaning |
|---|---|
route | Improve live traffic and routing. |
train | Improve Navvo's traffic estimates. |
score | Measure the accuracy of Navvo's traffic estimates. |
display | Show traffic on the public map, only ever as an aggregate of several independent trips. |
The points of every batch are kept as the trip's history.
Response (201)
{
"batch_id": "5d2a…",
"trip": { "id": "c0ffee-…", "final": false },
"points_received": 118,
"accepted_traversals": 6,
"duplicate_traversals": 0,
"not_measured": { "low_match": 1, "stop_for_service": 1 },
"withdrawn": false
}
| Field | Description |
|---|---|
points_received | Points kept from this batch (after ignoring low-accuracy points). |
accepted_traversals | Road portions measured from this batch. |
duplicate_traversals | Road portions already received, for example in the overlap with the previous batch. |
not_measured | Road portions not measured, by reason (below). |
withdrawn | true when this trip was withdrawn earlier: nothing from the batch is used. |
| Reason | Meaning |
|---|---|
low_match | The points did not follow the road closely enough. |
ambiguous_level | It was not certain whether the vehicle was on a bridge, in a tunnel or on a ramp. |
stop_for_service | A stop at the start or end of a trip is not counted as traffic. |
extent_too_short | The stretch driven on the road was too short to measure. |
no_sample_on_edge | No point fell on that road. |
too_few_points | Fewer than 2 usable points. |
Errors
| Status | When |
|---|---|
400 | INVALID_BATCH (trip_id missing, or batch_seq not a non-negative integer), INVALID_BATCH_SIZE (fewer than 2 or more than 600 points), or INVALID_TIME. |
403 | AUTH_REQUIRED (no session or key), or CONSENT_DECLINED (consent.granted was false). |
POST /telemetry/withdrawals
Withdraw contributions sent with your API key: all of them, or one trip. Withdrawal is for API-key contributors, under their own agreement with their drivers. Trips recorded while someone uses Navvo's own app or web map are part of the service: a signed-in session gets 403 NOT_WITHDRAWABLE.
Request body
{} withdraws all of the key's contributions. { "trip_id": "c0ffee-…" } withdraws one trip sent with POST /telemetry/batches.
{ "trip_id": "c0ffee-…" }
Response (201)
{
"status": "withdrawn",
"roots": 1,
"observations": 6,
"outcomes": 0,
"scorePairs": 0,
"rawPoints": 118,
"legacyAggregates": 0,
"liveRefreshed": true,
"at": "2026-11-30T09:12:00.000Z"
}
| Field | Description |
|---|---|
roots | Contributions withdrawn. With nothing to withdraw the answer is { "status": "withdrawn", "roots": 0 }. |
rawPoints | Raw points deleted. |
observations, outcomes, scorePairs, legacyAggregates | Road measurements and other records derived from those contributions that were invalidated. |
liveRefreshed | true when live traffic was refreshed without them. |
at | When the withdrawal took effect. |
The contributions stop being used immediately, their raw points are deleted, anything derived from them is invalidated, and sending the same data again cannot restore them. Calling it again is safe.
POST /telemetry/trips
Submit a whole trip at once. The trip is stored and queued for asynchronous map-matching (via the Navvo routing engine); the call returns immediately.
telemetry scope or a signed-in session (Bearer token). Anonymous calls return 403 AUTH_REQUIRED; apps that collect trips from their signed-in users should send them to POST /telemetry/batches. The trip is attributed to the key or the session: any userId in the body is ignored.Request body
metadata.consentCaptured decides whether the trip is used. It defaults to true, with an API key and with a signed-in session alike: using Navvo includes contributing trip data. Set it to false to store the trip but never use it, for example when your own driver refused.Each points[] element:
| Field | Type | Required | Notes |
|---|---|---|---|
lat | number | yes | Latitude, −90..90. |
lng | number | yes | Longitude, −180..180. |
speed | number | no | meters/second. |
heading | number | no | Degrees. |
capturedAt | string | no | ISO-8601; defaults to now. |
lat/lng must be present numbers within range, speed/heading numeric, and a trip carries at most 5000 points. Out-of-range or malformed points return 400 with a validation array.{
"metadata": { "consentCaptured": true, "device": "ios-17" },
"points": [
{ "lat": 31.9500, "lng": 35.9100, "speed": 12.1, "heading": 90, "capturedAt": "2026-05-16T12:00:00Z" },
{ "lat": 31.9512, "lng": 35.9123, "speed": 13.4, "heading": 88, "capturedAt": "2026-05-16T12:00:05Z" }
]
}
Response (201)
{ "accepted": true, "tripId": "f0a1c3d5-…", "jobId": "12" }
The trip is processed in the background: matched to the road network, then per-edge observed speeds feed the traffic speed profiles that power the Traffic endpoints. status becomes matched or failed.
Each accepted trip (tripId) is processed once. Every new request is a new trip, so if your uploads may need retrying after a network failure, send them to POST /telemetry/batches, where a retried batch is not counted twice.
POST /telemetry/errors
Report client-side crashes and errors, batched. A lightweight crash-reporting sink for your Navvo-powered apps (web, Android, iOS): send caught exceptions or fatal crashes and Navvo stores them for triage.
Authorization: Bearer <token>, the report is attributed to that verified user; otherwise it is anonymous. A client-supplied user id is never trusted. This route is throttled to 30 requests/min per IP.Request body
Each errors[] element:
| Field | Type | Required | Notes |
|---|---|---|---|
platform | string | yes | web, android, or ios. |
message | string | yes | Error message (max 2000 chars). |
stack | string | no | Stack trace (max 8000 chars). |
appVersion | string | no | Your app version. |
deviceModel | string | no | Device model. |
osVersion | string | no | OS version. |
context | object | no | Free-form structured context (screen, state, breadcrumbs). |
occurredAt | string | no | ISO-8601 timestamp; defaults to receipt time. |
{
"errors": [
{ "platform": "android", "appVersion": "3.2.1", "deviceModel": "Pixel 8",
"osVersion": "Android 15", "message": "TypeError: cannot read property 'lat' of null",
"stack": "at MapView.render (map.js:214)…", "context": { "screen": "navigation" },
"occurredAt": "2026-07-19T09:20:00Z" }
]
}
Response (201)
{ "ok": true, "accepted": 1 }
accepted is the number of stored error rows. Items missing platform/message or exceeding a length cap return 400 with a validation array. Stored reports are retained for a limited window (30 days by default) and then swept.
GET /telemetry/trips
admin/super_admin role (Bearer JWT); other callers receive 403. It was previously readable in keyless mode and exposed contributor ids and first/last GPS points.List the most recent trips (no pagination). Each item is a trip with status, consentCaptured, and a routeSummary (point/edge counts and first/last point); the raw points are not included.
GET /telemetry/health
Ingestion quality summary over the most recent 500 trips.
{
"totalTrips": 500,
"matchedTrips": 472,
"failedTrips": 18,
"consentMissingTrips": 3,
"sampleRate": 0.944,
"generatedAt": "2026-06-09T10:15:00.000Z"
}
GET /telemetry/daily
Trip counts bucketed per UTC day over the last 365 days.
[ { "day": "2026-06-09", "trips": 14 }, { "day": "2026-06-08", "trips": 31 } ]
GET /telemetry/traffic-overlay
The aggregated traffic layer as a GeoJSON FeatureCollection of road-edge speed profiles with congestion classification — the data source behind the map traffic layer.
Query parameters
current (default; last ~6h) or typical (all-time per-edge averages).west,south,east,north spatial filter.{
"type": "FeatureCollection",
"hasData": true,
"mode": "current",
"features": [
{
"type": "Feature",
"geometry": { "type": "LineString", "coordinates": [[35.911, 31.951], [35.914, 31.952]] },
"properties": { "edgeId": "e:128374", "congestion": "moderate", "averageSpeedKph": 28.4, "freeFlowSpeedKph": 55, "sampleCount": 4 }
}
],
"metadata": { "layerType": "traffic", "source": "navvo-telemetry-speed-profiles", "legend": { "light": { "color": "#188038" }, "moderate": { "color": "#D9A441" }, "heavy": { "color": "#D94B4B" }, "blocked": { "color": "#8B1A1A" } } }
}
congestion ∈ light | moderate | heavy | blocked | unknown.
Tiled access
For bounded loading the overlay is also tile-addressed:
| Endpoint | Returns |
|---|---|
GET /telemetry/traffic-overlay/tile-cover | List of tile URLs covering a bbox (mode, bbox, zoom, maxTiles). |
GET /telemetry/traffic-overlay/tiles/{z}/{x}/{y} | The overlay for one tile, as GeoJSON. |
GET /telemetry/traffic-overlay/vector/{z}/{x}/{y} | The overlay for one tile, as a binary vector tile (application/x-protobuf, layer navvo_traffic). |
.../vector/{z}/{x}/{y} route to add traffic as a native Navvo Maps vector source; use the GeoJSON tile route if you prefer to style features yourself.