Navvo
API Reference

Telemetry

Contribute GPS trips to improve traffic, and read aggregated traffic data.

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

Units & coordinates.Batch points use { 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

trip_id
string required
Your id for the trip, up to 80 characters. Send the same value with every batch of the trip.
batch_seq
integer
The batch's position in the trip: 0, 1, 2, … Default 0. (trip_id, batch_seq) makes a retry safe.
consent
object
Optional. { "purposes": [ … ], "granted_at": "<ISO 8601>", "granted": true }. Without it, the batch is used for every purpose under Navvo's terms. See Consent purposes.
points
array required
2 to 600 points, oldest first (see the point shape below).
vehicle
string
Vehicle class. Default car.
final
boolean
Send true on the last batch of the trip.

Each points[] element:

FieldTypeRequiredNotes
tstringyesISO 8601 time with Z or an offset. Milliseconds since the Unix epoch are also accepted.
latnumberyesLatitude.
lonnumberyesLongitude (lng is also accepted).
accuracy_mnumbernoHorizontal accuracy in metres. Points with accuracy worse than 65 m are ignored.
speed_mpsnumbernometers/second.
headingnumbernoDegrees 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 with repeated: true and is not counted twice.
  • The end of a trip: send final: true on the last batch.

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.purposes limits a batch to the purposes listed.
  • consent.granted: false means your driver refused: the call returns 403 CONSENT_DECLINED and nothing is stored.

The purposes:

PurposeMeaning
routeImprove live traffic and routing.
trainImprove Navvo's traffic estimates.
scoreMeasure the accuracy of Navvo's traffic estimates.
displayShow 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
}
FieldDescription
points_receivedPoints kept from this batch (after ignoring low-accuracy points).
accepted_traversalsRoad portions measured from this batch.
duplicate_traversalsRoad portions already received, for example in the overlap with the previous batch.
not_measuredRoad portions not measured, by reason (below).
withdrawntrue when this trip was withdrawn earlier: nothing from the batch is used.
ReasonMeaning
low_matchThe points did not follow the road closely enough.
ambiguous_levelIt was not certain whether the vehicle was on a bridge, in a tunnel or on a ramp.
stop_for_serviceA stop at the start or end of a trip is not counted as traffic.
extent_too_shortThe stretch driven on the road was too short to measure.
no_sample_on_edgeNo point fell on that road.
too_few_pointsFewer than 2 usable points.

Errors

StatusWhen
400INVALID_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.
403AUTH_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"
}
FieldDescription
rootsContributions withdrawn. With nothing to withdraw the answer is { "status": "withdrawn", "roots": 0 }.
rawPointsRaw points deleted.
observations, outcomes, scorePairs, legacyAggregatesRoad measurements and other records derived from those contributions that were invalidated.
liveRefreshedtrue when live traffic was refreshed without them.
atWhen 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.

Authentication required. Send an API key with the 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

points
array required
Ordered GPS points (see point shape below). Must be non-empty.
userId
string
Ignored for attribution: the trip is attributed to the API key or the signed-in session, never to a field in the body. If present, it must still be a valid UUID.
metadata
object
Free-form. 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:

FieldTypeRequiredNotes
latnumberyesLatitude, −90..90.
lngnumberyesLongitude, −180..180.
speednumbernometers/second.
headingnumbernoDegrees.
capturedAtstringnoISO-8601; defaults to now.
Points are validated: 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.

Privacy. Submit only data you have consent to share, and prefer anonymizing trip endpoints (trim the first/last few points). Trips power aggregate traffic only — they are not exposed as individual tracks through the API.

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.

Authentication is not required — a crash reporter must never be blocked. If you send a valid 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

errors
array required
Up to 20 error items (see shape below). Must be non-empty.

Each errors[] element:

FieldTypeRequiredNotes
platformstringyesweb, android, or ios.
messagestringyesError message (max 2000 chars).
stackstringnoStack trace (max 8000 chars).
appVersionstringnoYour app version.
deviceModelstringnoDevice model.
osVersionstringnoOS version.
contextobjectnoFree-form structured context (screen, state, breadcrumbs).
occurredAtstringnoISO-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 only. This endpoint now requires a signed-in Navvo user with the 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

mode
string
current (default; last ~6h) or typical (all-time per-edge averages).
bbox
string
west,south,east,north spatial filter.
limit
string
Max features (capped by zoom; up to 5000).
zoom
string
Drives the limit cap and line generalization.
{
  "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:

EndpointReturns
GET /telemetry/traffic-overlay/tile-coverList 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).
Use the .../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.
Copyright © 2026