Navvo
API Reference

Traffic & Incidents

Traffic on every road (measured, typical or expected, always labelled), traffic-aware ETAs, expected traffic for any time, and crowdsourced road incidents.

Traffic & Incidents

Every road has an answer, always labelled with what it is based on: measured where recent measurements exist (from Navvo's own anonymous probe network and, on roads where an authorized data owner supplies them, that owner's own measurements; no other traffic feed is used), the road's typical traffic where its own history is strong enough, and expected traffic everywhere else. GET /traffic/tiles/{z}/{x}/{y}.mvt draws that answer on every road, POST /traffic/route applies it to a route, and GET /traffic/segments/{ref} answers one road at a time. The module also gives expected traffic for any place and time from Navvo's analysis of past traffic in the region, plus crowdsourced road incidents.

Scope required: traffic (the traffic-aware POST /traffic/route needs both routing and traffic).

Coordinates are GeoJSON [lng, lat]. The bbox parameter is west,south,east,north. GET /traffic/tiles returns binary vector tiles; the older congestion line "tiles" (/traffic/lines/tiles, /traffic/predicted/tiles) return GeoJSON. Congestion vocabulary: level ∈ free | slow | heavy | standstill; congestion ∈ light | moderate | heavy | blocked.

GET /traffic/tiles/{z}/{x}/{y}.mvt

Traffic on every road of the map, in each direction, as a vector tile. Each road carries an answer: measured where recent measurements exist, the road's typical traffic where its own history is strong enough, and expected traffic everywhere else. Every line says which of the three it is. This is the recommended way to draw a traffic layer.

curl -s --compressed "https://navvo.io/api/v1/traffic/tiles/14/9825/6655.mvt?t=2026-11-30T08:30:00Z" \
  -H "x-api-key: nvvo_YOUR_KEY" -o traffic.mvt
  • Format: a Mapbox Vector Tile (application/vnd.mapbox-vector-tile), gzip-compressed when the request accepts gzip. .pbf works in place of .mvt. The tile has one layer, traffic, of line features.
  • Zooms: request zooms 6 to 14 and let the map overzoom above 14 (source minzoom: 6, maxzoom: 14). Zooms 6–9 carry motorways and trunk roads, 10–11 add primary roads, 12 adds secondary, 13 adds tertiary, and 14 adds minor and service roads.
  • Expected traffic follows the local time of day, the day of the week, public holidays, Ramadan, the weather and the direction of commuting traffic.

Query parameters

t
string
The time to show, as ISO 8601 or epoch milliseconds, within the last day or the next 7 days. The answer is for the 5-minute slot containing it. With t the tile can be cached for 5 minutes (Cache-Control: public, max-age=300); without it the tile is for now and cached for 60 seconds.

Feature properties

PropertyValuesMeaning
levelfree | slow | heavy | standstillThe traffic level. Colours: free #2DBE60, slow #F9A825, heavy #E84B36, standstill #A01A12.
ratio0–100Speed on this piece of road as a percentage of the road's own low-traffic speed (what its colour shows).
evobserved | typical | expectedWhat the answer is based on (below).
clsmotorway | trunk | primary | secondary | tertiary | minor | serviceRoad class.
rank0–6Road class as a number, 0 = motorway. Useful for widths.
dir0, 1, -10: a one-way road, or one line for both directions. 1 and -1: the two directions of a two-way road, as two lines. The -1 line is already drawn in its own direction of travel, so a positive line-offset puts each direction on its right-hand side.
evLabelMeaning
observedMeasured recently / حركة مرصودة مؤخراMeasured on that road and direction within the last few minutes. Shown only where at least three independent contributors measured it, so no single trip can be seen.
typicalTypical / حركة معتادةThe road's own history at this kind of day and hour.
expectedExpected / حركة متوقعةNavvo's expected traffic for that road at that time.

Where the colour goes. A city's delay is not spread evenly along its streets: it stands in the queues before traffic lights and busy junctions. From zoom 13 the last stretch before such a junction is its own line, in each direction, and shows the queue there; the rest of the block shows how the street is moving. Below zoom 13 each road shows how it is moving. Route segments from POST /traffic/route and the roads breakdown of GET /traffic/summary follow the same rule, so the map, a route and the summary agree at every zoom. Travel times always count the whole delay, queues included.

Local streets. Service roads (the streets inside compounds, campuses, malls and car parks) and dead-end streets only carry traffic from real measurements, recent or the road's own history. They never carry expected traffic, and without measurements they are not in the tile.

Show the evidence with more than colour: a casing under observed lines and the label in your legend or tooltip. The response header X-Navvo-Traffic-Generation identifies the traffic snapshot behind the tile.

Draw it with MapLibre

const KEY = 'nvvo_YOUR_KEY';
// One URL per 5-minute slot: the tiles are cacheable, and a new slot brings new traffic.
const slot = () => new Date(Math.floor(Date.now() / 300000) * 300000).toISOString();
const tiles = () => [`https://navvo.io/api/v1/traffic/tiles/{z}/{x}/{y}.mvt?t=${encodeURIComponent(slot())}`];

const map = new maplibregl.Map({
  container: 'map',
  style: `https://navvo.io/api/v1/tiles/style?style=standard&api_key=${KEY}`,
  // send the key with the traffic tiles too
  transformRequest: (url) => (url.includes('/traffic/tiles/') ? { url, headers: { 'x-api-key': KEY } } : { url }),
});

const COLOR = ['match', ['get', 'level'], 'slow', '#F9A825', 'heavy', '#E84B36', 'standstill', '#A01A12', '#2DBE60'];
const WIDTH = ['interpolate', ['linear'], ['zoom'], 6, 1, 10, 2, 13, 3, 16, 5, 19, 8];
// From z15 the two directions of a two-way road sit side by side (each on its right-hand side).
const OFFSET = ['interpolate', ['linear'], ['zoom'], 14.9, 0, 15, ['*', 1.5, ['get', 'dir']], 18, ['*', 4, ['get', 'dir']]];
const MINOR = ['in', ['get', 'cls'], ['literal', ['minor', 'service']]];
const SORT = ['match', ['get', 'level'], 'standstill', 3, 'heavy', 2, 'slow', 1, 0];

map.on('load', () => {
  const before = map.getStyle().layers.find((l) => l.type === 'symbol')?.id; // keep labels on top
  map.addSource('navvo-traffic', { type: 'vector', tiles: tiles(), minzoom: 6, maxzoom: 14 });
  // Non-colour cue: a white casing under roads measured recently.
  map.addLayer({ id: 'traffic-measured-casing', type: 'line', source: 'navvo-traffic', 'source-layer': 'traffic',
    filter: ['all', ['==', ['get', 'ev'], 'observed'], ['!', MINOR]],
    layout: { 'line-cap': 'round', 'line-join': 'round' },
    paint: { 'line-color': '#FFFFFF', 'line-width': ['+', WIDTH, 3], 'line-offset': OFFSET } }, before);
  map.addLayer({ id: 'traffic-major', type: 'line', source: 'navvo-traffic', 'source-layer': 'traffic',
    filter: ['!', MINOR],
    layout: { 'line-cap': 'round', 'line-join': 'round', 'line-sort-key': SORT },
    paint: { 'line-color': COLOR, 'line-width': WIDTH, 'line-offset': OFFSET, 'line-opacity': 0.85 } }, before);
  // Minor and service roads only from z15, so a city view stays readable.
  map.addLayer({ id: 'traffic-minor', type: 'line', source: 'navvo-traffic', 'source-layer': 'traffic', minzoom: 15,
    filter: MINOR,
    layout: { 'line-cap': 'round', 'line-join': 'round', 'line-sort-key': SORT },
    paint: { 'line-color': COLOR, 'line-width': ['*', WIDTH, 0.6], 'line-offset': OFFSET, 'line-opacity': 0.85 } }, before);
  // Move to the next slot every 5 minutes.
  setInterval(() => map.getSource('navvo-traffic').setTiles(tiles()), 300000);
});

Errors

StatusWhen
400z/x/y is not a valid tile.
401 / 403Missing or invalid key, or a key without the traffic scope.

GET /traffic/cars/tiles/14/{x}/{y}

3D cars that follow the traffic. The lanes of one zoom-14 tile, ready to animate: one GeoJSON LineString per lane, in its direction of travel. Each lane comes with its speed for every ~20 m and the number of cars entering it per second. Your app places every car from those numbers with a few lines of arithmetic, every frame, with no requests in between. The cars move like the traffic colour under them: fast and spread out on green, slow and stacked on orange, very slow and bumper to bumper on red. Local streets without real traffic data stay empty. Navvo's own 3D map uses the same model.

curl -s --compressed "https://navvo.io/api/v1/traffic/cars/tiles/14/9826/6655" \
  -H "x-api-key: nvvo_YOUR_KEY"
  • Zoom: always 14. A city tile holds about 250–900 lanes, 40–70 KB compressed. Cars belong at zoom 16 and closer.
  • Lanes: each lane is already offset from the road's centre line to the side traffic drives on (right-hand everywhere except Cyprus). Lane counts come from mapped lane data. A road without mapped lanes has one lane per direction, except a divided motorway or trunk carriageway, which has at least two.
  • Tile edges: lanes are clipped exactly at the tile edge, so a car is never in two tiles.
  • Not included: tunnels, parking aisles, driveways and private roads. Service roads and dead ends appear only where there are real traffic measurements, the same rule as the traffic tiles.
  • Freshness: refetch every 60 seconds. model.generation (and the X-Navvo-Traffic-Generation header) names the traffic snapshot; if it hasn't changed, nothing has.

Query parameters

t
string
A time as ISO 8601 or epoch milliseconds, within the last day or the next 7 days. The lanes are built for its 5-minute traffic slot and cached for 5 minutes (max-age=300). Without it the lanes are for now and cached for 60 seconds.

Response

{
  "type": "FeatureCollection",
  "model": { "name": "navvo-traffic-cars", "version": 1, "drivingSide": "right", "minGapM": 7.5,
             "slot": "2026-12-03T09:10:00.000Z", "localHour": 12, "refreshSeconds": 60, "generation": "flow-5987630-29938154" },
  "tile": { "z": 14, "x": 9826, "y": 6655, "bounds": [35.9033, 31.9501, 35.9253, 31.9688] },
  "features": [
    { "type": "Feature", "id": "9826.6655.f94.33.b0",
      "geometry": { "type": "LineString", "coordinates": [[35.907553, 31.954294], [35.90758, 31.954181], [35.907591, 31.954068]] },
      "properties": { "id": "9826.6655.f94.33.b0", "cls": "minor", "dir": -1, "lane": 0, "lanes": 1, "offsetM": 1.5,
        "lengthM": 25.27, "stepM": 12.64, "speeds": [7.92, 7.92], "ratios": [95, 95], "flow": 0.04948, "carried": 0.04948,
        "phase": 0.54072, "seed": 1989126061, "evidence": "expected", "cars": 0.16 } }
  ]
}
Lane propertyMeaning
idStable lane id. The same lane keeps it across refreshes.
clsRoad class: motorway, trunk, primary, secondary, tertiary, minor or service.
dir1 means along the mapped road's direction; -1 means against it.
lane, lanesThis lane's index (0 is nearest the road centre) and the number of lanes of cars in this direction: at most 2 on main roads and 1 on minor streets, since more only crowd the view.
offsetMMetres this lane sits to the right of the road centre line (negative means left). Already applied to the geometry.
lengthM, stepMLane length, and the length of each speed step (about 20 m; all steps of a lane are equal).
speedsCar speed per step, m/s, from the lane start.
ratiosTraffic per step, 0–100 (100 = free flow), the same scale as the traffic tiles' ratio.
flowCars per second entering the lane, capped so cars stay at least model.minGapM apart in the slowest stretch.
carriedThe flow before that cap, for drawing cars larger than life (use min(carried, slowest speed / your gap)).
phase0–1. Offsets the lane's schedule so lanes don't move in lockstep.
seedInteger for colours and the car budget.
evidenceWhat most of the lane's traffic is based on: observed, typical or expected.
carsHow many cars the lane holds at once, before any budget.

How to animate the lanes, with code: Traffic & routing guide → 3D cars API.

GET /traffic/cars

The same lanes for a bbox, from the zoom-14 tiles that cover it. Only lanes that touch the bbox are returned, with the same ids as in the tiles.

bbox
string required
west,south,east,north. At most 12 zoom-14 tiles, about 6 × 6 km.
t
string
As for the tiles.

The response is a FeatureCollection of lanes, as above, with model, bbox and tiles (the zoom-14 tiles used).

GET /traffic/cars/positions

The cars themselves at one instant, as GeoJSON points. It is computed with the same arithmetic a client runs on the lanes. Use it to test your implementation (at the same t, bbox and limit your code must land on these points), or for a surface that cannot animate. Don't poll it to animate.

bbox
string required
west,south,east,north. At most 12 zoom-14 tiles.
t
string
ISO 8601 or epoch milliseconds, within the last day or the next 7 days. Defaults to now.
limit
integer
Car budget, 1–2000. Default 120.

Each point has lane, car (its id), s (metres along the lane), bearing, speedKmh, cls and color (0–7).

The budget works as in an app's view: lanes near the bbox centre keep all their cars, and farther lanes keep fewer, hidden in groups of 4 consecutive cars, so about limit cars are shown and queues still read as stacked.

Errors

StatusCodeWhen
400INVALID_TILEz is not 14, or x/y is not a zoom-14 tile.
400INVALID_BBOX, BBOX_TOO_LARGEThe bbox is malformed, or covers more than 12 zoom-14 tiles.
400INVALID_LIMIT, INVALID_TIMElimit is outside 1–2000, or t is outside the window (positions).
401 / 403—Missing or invalid key, or a key without the traffic scope.

GET /traffic/layers

Layer descriptor and legend for the live traffic layer.

{
  "layerType": "traffic",
  "name": "Live traffic",
  "source": "navvo-user-traffic",
  "tilePattern": "/api/v1/traffic/lines/tiles/{z}/{x}/{y}",
  "summary": "/api/v1/traffic/summary",
  "historicalGrid": "/api/v1/traffic/analysed/grid",
  "refreshSeconds": 60,
  "basisValues": ["current", "historical", "typical", "all-hours-fallback", "none"],
  "legend": {
    "free": { "label": "Free flow", "color": "#2dbe60" },
    "slow": { "label": "Slow", "color": "#f9a825" },
    "heavy": { "label": "Heavy", "color": "#e84b36" },
    "standstill": { "label": "Standstill", "color": "#a01a12" }
  }
}

historicalGrid is GET /traffic/analysed/grid, the usual traffic per map cell in the same legend, for roads with no live data. Only the current basis is live; every other value in basisValues is history.


GET /traffic/summary

Traffic conditions over a bbox (or the whole network if bbox is omitted): live, from Navvo's own probes, when any cover the view, and otherwise what traffic is usually like there at this hour (see below), never presented as live. Every answer has an English summary and an Arabic summaryAr, and a freshnessLabel / freshnessLabelAr pair to show beside it.

Query parameters

bbox
string
west,south,east,north. Omit to summarize all current edges (live only: without a view there is no "here" to describe).
{
  "source": "navvo-user-traffic",
  "bbox": "35.85,31.90,35.99,31.99",
  "conditions": {
    "hasData": true,
    "basis": "current",
    "sampleCount": 342,
    "sampledSegments": 128,
    "confidence": 1,
    "congestionScore": 0.42,
    "level": "slow",
    "congestion": "moderate",
    "summary": "Slow moving",
    "summaryAr": "حركة بطيئة",
    "breakdown": [
      { "level": "free", "congestion": "light", "segments": 60, "share": 46.9 },
      { "level": "slow", "congestion": "moderate", "segments": 40, "share": 31.2 }
    ]
  },
  "coverage": { "liveSegments": 128, "typicalSegments": null, "hour": 8, "hourSampleCount": null },
  "freshnessAt": "2026-06-09T08:55:00.000Z",
  "freshnessLabel": "From Navvo users",
  "freshnessLabelAr": "من مستخدمي Navvo"
}

congestionScore is a 0–1 weighted mean. sampleCount is the number of probes behind the answer and sampledSegments the road segments they cover.

Road by road: roads

With a bbox of up to about 0.6° on a side, the summary also carries roads: every road in view, each direction separately, exactly as GET /traffic/tiles draws it. It describes the view in kilometres of road rather than probe counts, so it is never empty:

"roads": {
  "basis": "per_road",
  "roadKm": 412.6,
  "level": "slow",
  "summary": "Slow moving",
  "summaryAr": "حركة بطيئة",
  "congestionScore": 0.31,
  "breakdown": [
    { "level": "free", "congestion": "light", "km": 201.4, "share": 48.8 },
    { "level": "slow", "congestion": "moderate", "km": 158.2, "share": 38.3 },
    { "level": "heavy", "congestion": "heavy", "km": 47.9, "share": 11.6 },
    { "level": "standstill", "congestion": "blocked", "km": 5.1, "share": 1.2 }
  ],
  "evidence": { "observed": 0.04, "typical": 0.02, "expected": 0.94 },
  "note": "Every road in view, each direction separately: …"
}
FieldMeaning
roads.level, summary, summaryArThe level covering the most road in view, with ready-to-show text.
roads.breakdown[]Kilometres and share of road at each level.
roads.evidenceShare of those kilometres that are measured recently, typical for the hour, or expected.
roads.congestionScore0 (all free flowing) to 1 (all standstill), weighted by road length.

roads is absent for views wider than about 0.6° (zoom in) or when it cannot be computed in time; the rest of the answer is unaffected.

No live traffic in view: the usual picture

When no live probe covers the view, the summary answers from analysed traffic at the centre of the view: what traffic is usually like there at this hour, with the day type, Ramadan, holidays, the season and the weather applied. It is labelled basis: "historical" and source: "navvo-analysed-traffic", and it is never live:

{
  "source": "navvo-analysed-traffic",
  "bbox": "28.975,41.035,28.995,41.045",
  "conditions": {
    "hasData": true,
    "basis": "historical",
    "sampleCount": 0,
    "sampledSegments": 0,
    "confidence": 1,
    "congestionScore": 0.45,
    "level": "slow",
    "congestion": "moderate",
    "summary": "Usually moderate traffic at this hour",
    "summaryAr": "ازدحام متوسط عادةً في هذه الساعة",
    "breakdown": [ … ],
    "historical": {
      "country": "TR",
      "dayType": "workday",
      "holiday": null,
      "ramadanPhase": null,
      "occasion": null,
      "expected": { "speedRatio": 0.657, "level": "moderate", "delayPct": 52 },
      "topFactors": [
        { "family": "month", "key": "10", "label": "October", "labelAr": "أكتوبر", "effectPct": -2.2 }
      ],
      "confidence": 1,
      "basis": "local"
    }
  },
  "coverage": { "liveSegments": 0, "typicalSegments": null, "hour": 15, "hourSampleCount": null },
  "freshnessAt": "2026-10-06T09:16:34.000Z",
  "freshnessLabel": "From traffic history — no live data in this view",
  "freshnessLabelAr": "من سجل حركة المرور — لا توجد بيانات حيّة في هذا العرض"
}
FieldDescription
conditions.levelOn the live palette (free, slow, heavy or standstill), so a dot or a line keeps the live colours.
conditions.summary, summaryAr"Usually … at this hour", worded from the finer analysed scale (free-flowing, light, moderate, heavy, near standstill).
conditions.hasDatatrue: the model answered. sampleCount and sampledSegments stay 0, because no probe or road segment stands behind a model answer; its evidence is in historical.
conditions.historicalexpected, as in GET /traffic/analysed; basis (the area level that answered, local … region) and confidence; dayType, holiday and ramadanPhase; occasion, a ready-to-show tag in both languages such as { "en": "Eid al-Fitr", "ar": "عيد الفطر" }, "Iftar time" or "School holidays" (null on a plain day); and topFactors, the effects a driver would notice (at least 2%), largest first.
freshnessAtWhen the model in use was fitted.

A view wider than 3° on a side, centred outside the covered region (the Middle East), or where the model has no data falls back to Navvo's per-road probe history for the current hour (source: "navvo-typical-traffic", with basis: "typical", or "all-hours-fallback" when that hour has never been observed). With nothing at all, hasData is false, level is null and freshnessLabel is "Awaiting Navvo user traffic".

Switch on conditions.basis: only current is live. historical, typical and all-hours-fallback are history: show them with their freshnessLabel (for example "From traffic history — no live data in this view"), never as "live". If you branch on source, treat navvo-analysed-traffic like navvo-typical-traffic. To colour the roads of such a view the same way, use GET /traffic/analysed/grid.

GET /traffic/lines/tiles/{z}/{x}/{y}

Live congestion lines for one tile, as a GeoJSON FeatureCollection (only edges observed in the last ~6 hours).

curl -s "https://navvo.io/api/v1/traffic/lines/tiles/14/9783/6592" -H "x-api-key: nvvo_YOUR_KEY"
{
  "type": "FeatureCollection",
  "hasData": true,
  "features": [
    {
      "type": "Feature",
      "properties": { "level": "slow", "congestion": "moderate", "color": "#f9a825", "edgeId": "edge-12345", "averageSpeedKph": 22.4, "freeFlowSpeedKph": 50 },
      "geometry": { "type": "LineString", "coordinates": [[35.9106, 31.9539], [35.9121, 31.9558]] }
    }
  ]
}

GET /traffic/lines/tile-cover

Compute the tiles covering a bbox for the live line layer, with ready-made URLs.

Query parameters

bbox
string required
west,south,east,north.
zoom
number
Tile zoom, clamped to 12–16. Defaults to 14.
maxTiles
number
Cap on returned tiles, clamped to 1–48. Defaults to 24.
{
  "layerType": "traffic", "zoom": 14, "capped": false,
  "tilePattern": "/api/v1/traffic/lines/tiles/{z}/{x}/{y}",
  "tiles": [ { "z": 14, "x": 9783, "y": 6592, "url": "/api/v1/traffic/lines/tiles/14/9783/6592" } ]
}

GET /traffic/predicted/tiles/{z}/{x}/{y}

Typical/predicted congestion for one tile (sample-weighted historical averages), as GeoJSON. Identical shape to the live tile, but each feature's properties carries "predicted": true. A companion GET /traffic/predicted/tile-cover works like the live tile-cover and additionally accepts an at ISO timestamp (folded into the returned URLs).

?at=<ISO> is now honored on the tile itself. The tile is built from the requested hour's learned per-edge profile (falling back to the all-hours typical layer when that hour has no samples), so a "traffic at 8am" preview differs from a "traffic at 6pm" preview. Omit at for the current hour.

POST /traffic/route

Compute a route and its ETA in traffic. Every road of the route is taken at the time the vehicle reaches it: measured where recent measurements exist, the road's typical traffic, otherwise expected traffic (the same answer as the traffic tiles). So traffic.hasData is true for any route in the covered region. This is the traffic-aware sibling of POST /routing/route: it returns a traffic-adjusted ETA plus the route split into colored segments, each saying what it is based on.

Scopes required: routing and traffic.

Request body

locations
array required
Array of { "lon": number, "lat": number, "name"?: string }. At least 2 required.
costing
string
auto (default), truck, bicycle, pedestrian, or motor_scooter.
departureTime
string
ISO timestamp for departure; basis for arrivalTime. Defaults to now.
language
string
Narrative language. Defaults to en-US.
shape
array
Optional geometry of a route you are already displaying, as an array of [lon, lat] pairs. When provided, congestion is sampled along this exact shape and no route is re-planned — guaranteeing the colored segments match your drawn line (a re-planned route can diverge from a user-chosen alternative). Up to 10,000 points accepted (internally resampled to ≤ 2,000).
baseSeconds
number
Accepted for compatibility and no longer needed: both durations are now computed by Navvo for the route itself (the same travel time as POST /routing/plan). It is used only if the route cannot be timed.
{
  "locations": [ { "lon": 35.91, "lat": 31.95 }, { "lon": 35.95, "lat": 31.99 } ],
  "costing": "auto",
  "departureTime": "2026-06-09T08:30:00.000Z"
}

With your own displayed geometry (recommended when you render the route yourself):

{
  "locations": [ { "lon": 35.91, "lat": 31.95 }, { "lon": 35.95, "lat": 31.99 } ],
  "shape": [ [35.91, 31.95], [35.917, 31.958], [35.93, 31.972], [35.95, 31.99] ],
  "baseSeconds": 540,
  "costing": "auto"
}

Response (201)

{
  "provider": "navvo-user-traffic-routing",
  "available": true,
  "distanceKm": 10.38,
  "baseDurationSeconds": 739,
  "baseDurationMinutes": 12,
  "durationInTrafficSeconds": 1081,
  "durationInTrafficMinutes": 18,
  "delaySeconds": 342,
  "delayMinutes": 6,
  "departureTime": "2026-11-30T07:45:00.000Z",
  "arrivalTime": "2026-11-30T08:03:01.000Z",
  "traffic": {
    "hasData": true,
    "basis": "typical",
    "evidence": "expected",
    "evidenceLabel": { "en": "Expected", "ar": "حركة متوقعة" },
    "sourceMix": { "observed": 0.04, "typical": 0.11, "expected": 0.85 },
    "level": "slow",
    "congestion": "moderate",
    "summary": "Expect slow traffic on parts of the route",
    "summaryAr": "يُتوقع ازدحام متوسط على أجزاء من الطريق",
    "trafficFactor": 1.46,
    "congestedShare": 72.3,
    "observedShare": 4
  },
  "segments": {
    "type": "FeatureCollection",
    "features": [
      { "type": "Feature", "properties": { "level": "slow", "evidence": "expected", "observed": false, "color": "#F9A825" }, "geometry": { "type": "LineString", "coordinates": [[35.9106, 31.9539], [35.9012, 31.9601]] } },
      { "type": "Feature", "properties": { "level": "free", "evidence": "typical", "observed": false, "color": "#1A73E8" }, "geometry": { "type": "LineString", "coordinates": [[35.9012, 31.9601], [35.8615, 31.9925]] } }
    ]
  },
  "message": "Expected traffic along this route at the time you reach each road."
}
FieldDescription
baseDurationSecondsThe same route with light traffic: real street speeds, the vehicle's speed and junction time, without congestion.
durationInTrafficSecondsThe expected time: each road timed at the moment you reach it, with traffic, junctions and turns. It matches trip.summary.time from POST /routing/plan for the same route and departure.
delaySecondsExtra time due to traffic.
traffic.evidenceWhat most of the route's answer is based on: observed (measured recently), typical or expected. Label the answer "Live traffic" only when it is observed.
traffic.evidenceLabelReady-to-show en and ar label for traffic.evidence.
traffic.sourceMixShare of the route's length that is observed, typical and expected. The values sum to 1.
traffic.summary, traffic.summaryArA one-line description of the route's traffic, in English and Arabic.
traffic.basiscurrent when most of the route is measured, otherwise typical.
traffic.trafficFactordurationInTrafficSeconds ÷ baseDurationSeconds.
segmentsThe route as a GeoJSON FeatureCollection, colored by level, with properties.evidence on every segment. Where traffic queues before a light or a busy junction, that last stretch is its own segment. Render it directly on a map, above the traffic layer.
messageA short note on what the answer is based on.

If the routing engine is down, available is false, durations are 0, and segments is empty.


GET /traffic/segments/{ref}

What one road is like, in one direction, at the moment a vehicle enters it, and what that answer is based on. Scope required: traffic.

Path parameters

ref
string required
A stable road reference, osm:<way>:<f|r>:<fingerprint>, one per direction of travel. You get them from other Navvo responses or from Navvo support; treat them as opaque strings and URL-encode them. Alternatively g:<graph id>, a road id from Navvo's road network, sent together with the lat and lon query parameters of a point on that road.

Query parameters

at
string
ISO 8601 instant at which the vehicle enters the road. Default: now.
vehicle
string
Vehicle class. Default car.
from_m
number
Start of a sub-extent of the road, in metres from its start in the direction of travel.
to_m
number
End of that sub-extent, in metres.
lat
number
With a g: reference: latitude of a point on the road.
lon
number
With a g: reference: longitude of a point on the road.
curl -s "https://navvo.io/api/v1/traffic/segments/osm%3A123456%3Af%3A9a8b7c6d?at=2026-11-30T12:05:00Z" \
  -H "x-api-key: $NAVVO_API_KEY"
{
  "snapshot": "jordan-20260727-1a2b3c.t202611301200",
  "target": { "edge_ref": "osm:123456:f:9a8b7c6d", "direction": "east", "vehicle": "car", "distance_m": 1200, "road_class": "primary", "market": "JO" },
  "requested_at": "2026-11-30T12:04:00Z",
  "entry_at": "2026-11-30T12:05:00Z",
  "access": "allowed",
  "running_time_s": 180,
  "junction_time_included": false,
  "evidence_class": "mixed",
  "label": { "en": "Measured recently", "ar": "حركة مرصودة مؤخرا", "pattern": "solid" },
  "uncertainty": { "status": "insufficient_independent_support" },
  "parts": [
    { "from_m": 0, "to_m": 600, "traversal_s": 120, "type": "observed", "observed_at": "2026-11-30T12:03:00Z", "valid_until": "2026-11-30T12:18:00Z", "label": { "en": "Measured recently", "ar": "حركة مرصودة مؤخرا", "pattern": "solid" } },
    { "from_m": 600, "to_m": 1200, "traversal_s": 60, "type": "typical", "label": { "en": "Typical", "ar": "حركة معتادة", "pattern": "dashed" } }
  ]
}
FieldDescription
snapshotThe traffic snapshot behind the answer: the same value as traffic.generation in a POST /routing/plan answer for the same moment.
targetThe road answered: its stable edge_ref, direction, vehicle, length (distance_m, or the sub-extent you asked for), road_class and country (market).
requested_at, entry_atWhen you asked, and the entry time the answer is for (at).
accessallowed; blocked when a verified closure or restriction applies, in which case running_time_s is null, parts is empty and restriction.ruleIds lists what applies; or review when a restriction on the road is still being verified (it is not applied, and the road is answered normally).
running_time_sSeconds to drive the road (or the sub-extent) from entry_at, at the traffic of that moment. junction_time_included: false: time spent at the junction at the end of the road is not included.
evidence_class, labelThe class when the whole road has one, otherwise mixed, with a ready-to-show label.
parts[]The road split by what each stretch is based on: from_m, to_m, traversal_s, type (an evidence class), label, and, for measured parts, observed_at (when it was measured) and valid_until. A forecast part carries issued_at.
uncertainty.statusWhether a calibrated range is available for this answer. Today it is usually insufficient_independent_support (no range is given); not_applicable on a blocked road.

Evidence classes and labels

A road can be partly measured and partly estimated. Each part keeps its own type and times, in this order of preference:

typeMeaningLabel (en / ar)pattern
observed_suppliedMeasurements supplied by an authorized data owner for that road, direction and time.Measured recently / حركة مرصودة مؤخراsolid
observedRecent measured traffic from trips.Measured recently / حركة مرصودة مؤخراsolid
forecastAn expected value for the time you reach the road.Expected / حركة متوقعةdashed
typicalWhat that road is usually like at that hour.Typical / حركة معتادةdashed
structuralAn estimate from the road type only.Limited data / بيانات محدودةdotted
unknownNo information.Limited data / بيانات محدودةnone
  • Every road has an answer. A stretch with no measurement and no history of its own is given the road's expected traffic for that time (forecast), never a bare speed-limit estimate. structural and unknown appear only where no expected value can be computed.
  • A measurement applies only to its own direction, and only until its valid_until. After that the part is evaluated again, from the next available class.
  • Measured parts are shown publicly only when enough independent trips support them. Otherwise the next class is returned for that stretch.
  • Closures and restrictions always come first. A measurement never makes a blocked road usable.

Errors

StatusWhen
400INVALID_TIME: at is not an ISO 8601 instant.
404UNKNOWN_SEGMENT: no road with that reference in the current road network. Use a stable reference, or g:<graph id> with lat and lon.

When segment answers are not enabled on the deployment, the endpoint returns 200 with:

{ "status": "disabled", "message": "…" }

Supplying your own traffic measurements

An organization that owns traffic measurements (travel times between two points on a road, vehicle counts, spot speeds, occupancy or queue lengths) can send them to Navvo. Accepted travel-time rows replace estimated time on exactly their road, direction, extent and validity window, and appear as observed_supplied in segment answers and in a route's traffic block.

Scope required: traffic, with the API key or signed-in account that owns the registered data source. Sources are registered with Navvo first: contact Navvo to register a data source.

POST /traffic/imports

Send up to 20,000 measurement rows, as CSV text or as JSON rows.

Request body

source_id
string required
Your registered data source.
idempotency_key
string required
Your unique key for this import. The same key with the same content returns the original receipt; see Idempotency and corrections.
schema
string
navvo-traffic-csv-v1 (default).
csv
string
The rows as CSV text, with the header line below. Send csv or rows.
rows
array
The rows as JSON objects with the same field names as the CSV columns.

The CSV columns:

event_id,revision,source_id,root_id,graph_version,edge_ref,direction,from_m,to_m,vehicle_class,metric,value,unit,observed_from_utc,observed_to_utc,valid_until_utc
demo-tt,1,demo-owner,root-a,,osm:123456:f:9a8b7c6d,east,0,600,car,traversal_time,120,s,2026-11-20T15:01:00Z,2026-11-20T15:03:00Z,2026-11-20T15:10:00Z
demo-count,1,demo-owner,root-station,,osm:123456:f:9a8b7c6d,east,0,0,all_motor,count,42,vehicles,2026-11-20T15:00:00Z,2026-11-20T15:05:00Z,2026-11-20T15:08:00Z
demo-bad,1,demo-owner,root-b,,osm:123456:f:9a8b7c6d,east,600,600,car,traversal_time,40,s,2026-11-20T15:01:00Z,2026-11-20T15:03:00Z,2026-11-20T15:10:00Z
ColumnDescription
event_idYour id for the measurement. Required.
revisionInteger from 1 (default 1). Raise it to correct a row.
source_idYour data source.
root_idIdentifies the original, independent measurement. Copies of one measurement (the same reading relayed twice, for example) share a root_id and count once. Required.
graph_versionOptional. Leave it empty with a stable edge_ref.
edge_refThe road, as a stable reference (`osm::<f
directionOptional direction label for the road.
from_m, to_mThe extent along the road, in metres from its start in the direction of travel (default 0).
vehicle_classFor example car (default) or all_motor.
metric, value, unitWhat was measured; see the table below. Required.
observed_from_utc, observed_to_utcWhen it was measured. Required.
valid_until_utcHow long the measurement may be applied. Required.
metricunitNotes
traversal_timesElapsed seconds over exactly the span from_m–to_m, so to_m must be greater than from_m.
countvehiclesA count for its interval. It is stored as flow and never replaces travel time.
spot_speedm/s or km/h
occupancy%
queue_lengthm or vehicles

A row without a unit, or with a unit that does not belong to its metric, is rejected. Every time must carry a zone (Z or an offset such as +03:00), and valid_until_utc cannot be earlier than observed_to_utc.

curl -s -X POST "https://navvo.io/api/v1/traffic/imports" \
  -H "x-api-key: $NAVVO_API_KEY" -H "content-type: application/json" \
  -d '{ "source_id": "demo-owner", "idempotency_key": "demo-2026-11-20T15", "schema": "navvo-traffic-csv-v1", "csv": "event_id,revision,…" }'

Response (201)

The receipt:

{
  "id": "3f0c…",
  "source_id": "demo-owner",
  "status": "done",
  "schema": "navvo-traffic-csv-v1",
  "received_at": "2026-11-20T15:12:04.000Z",
  "finished_at": "2026-11-20T15:12:04.000Z",
  "counts": { "accepted": 2, "held": 0, "duplicate": 0, "rejected": 1 },
  "reasons": { "zero_width_traversal": 1 },
  "effective_period": { "from": "2026-11-20T15:00:00.000Z", "to": "2026-11-20T15:05:00.000Z" },
  "measurement_eligibility": { "currently_valid_rows": 0, "overrides": "…" },
  "review_needed": null,
  "rows": [
    { "row": 1, "event_id": "demo-tt", "disposition": "accepted" },
    { "row": 2, "event_id": "demo-count", "disposition": "accepted" },
    { "row": 3, "event_id": "demo-bad", "disposition": "rejected", "reason": "zero_width_traversal" }
  ]
}
FieldDescription
countsRows accepted; held (the road reference is not in the current road network: graph_unresolved); duplicate (already received, identical); and rejected.
reasonsNumber of rows per reason code (below).
effective_periodThe earliest observed_from and the latest observed_to among the stored rows.
measurement_eligibilitycurrently_valid_rows: accepted rows whose valid_until has not passed yet. overrides: a plain-language statement of what the accepted rows replace.
review_neededA message when some rows are held, otherwise null.
rows[]The disposition of each row (row is 1-based), with its reason when it was not accepted. Lists up to the first 200 rows.

Reason codes:

CodeMeaning
missing_<field>A required field is empty, for example missing_unit.
unknown_metricmetric is not one of the five above.
unit_missing_or_unknownNo unit, or one that does not belong to the metric.
invalid_valueNot a number, negative, or a travel time that is not greater than 0.
invalid_extentfrom_m or to_m is not a number, or to_m is less than from_m.
zero_width_traversalA traversal_time row with to_m equal to from_m.
invalid_time_windowA time cannot be read, observed_to_utc is before observed_from_utc, or valid_until_utc is before observed_to_utc.
time_without_zoneA time without Z or an offset.
invalid_revisionrevision is not an integer of at least 1.
withdrawn_rootThe root_id was withdrawn earlier and cannot be sent again.
revision_conflictThe same event_id and revision was already received with different content.
stale_revisionA higher revision of this event_id was already received.
graph_unresolvedThe road reference is not in the current road network. The row is held, not rejected.

Idempotency and corrections

  • Retrying is safe. The same idempotency_key with the same content returns the original receipt, with repeated: true. The same key with different content returns 409 IDEMPOTENCY_KEY_REUSED.
  • To correct a row, send it again with the same event_id and a higher revision, under a new idempotency_key. The older revision is superseded. Sending an older revision again is rejected (stale_revision); the same revision with different content is rejected (revision_conflict).

Errors

StatusWhen
400MISSING_FIELDS (source_id or idempotency_key missing), EMPTY_IMPORT (no csv or rows), or IMPORT_TOO_LARGE (more than 20,000 rows: split the file).
403NOT_SOURCE_OWNER: this key or account is not authorized for that source.
404UNKNOWN_SOURCE: the source is not registered.
409IDEMPOTENCY_KEY_REUSED.

GET /traffic/imports/{id}

The same receipt as POST /traffic/imports, for an import id. Only the owner of the data source can read it; anyone else, or an unknown id, gets 404 UNKNOWN_IMPORT. measurement_eligibility.currently_valid_rows is recomputed on every call, so it falls as rows pass their valid_until.


Analysed traffic

Expected traffic for any place in the Middle East and any moment: later today, next Thursday at 17:00, the first day of Eid, a Ramadan evening or a stormy morning. It comes from Navvo's model of past traffic in the region. Every answer is labelled source: "navvo-analysed-traffic" and is never live: show it as "usually" or "expected", and use GET /traffic/summary for what is happening now. Scope required: traffic.

The model learns a typical speed for each day role and hour. Day roles are the first workday, the following workdays, the last workday and the two weekend days, so a Sunday in Amman and a Monday in Istanbul are compared like for like, whatever the local weekend. It then adjusts that speed for the month, Eid, public holidays and school holidays, the hour after iftar in Ramadan, and heavy rain, storms or dust. Those are the effects that held up when the model was fitted on earlier years and checked against a later one; the eve of a holiday, the rest of a Ramadan day, light rain, fog and snow made no reliable difference there, so they are reported in local and weather but do not change expected. Holidays, Ramadan and iftar are computed per country, so future dates need no external feed. Where a street has little history, the answer borrows from its district, its metro area, its country and finally the region; basis tells you which level answered.

speedRatio is expected speed ÷ free-flow speed (1 = an empty road). level ∈ free | light | moderate | heavy | standstill. delayPct is extra trip time versus free flow (a ratio of 0.5 gives 100). basis ∈ local | district | metro | country | region | none. none means the model has no data there yet: expected is then null, never an error. A point outside the covered region returns 400.

GET /traffic/analysed

Expected traffic at one point and moment.

Query parameters

lat
number required
Latitude.
lng
number required
Longitude.
at
string
ISO 8601 date-time. With Z or a UTC offset it is that instant. Without an offset (2026-10-09T08:00) it is local time at the point. Default: now. Up to two years ahead.
weather
string
What-if weather: clear | rain | heavy_rain | storm | fog | snow | dust. Omit it to use the forecast (next 72 hours) or, for past moments, the observed weather.
{
  "source": "navvo-analysed-traffic",
  "at": "2026-10-08T14:00:00.000Z",
  "country": "JO",
  "local": {
    "date": "2026-10-08", "time": "17:00", "weekday": "Thursday", "tz": "Asia/Amman",
    "dayType": "workday", "dayRole": "last_workday",
    "holiday": null, "eve": null, "ramadan": null,
    "schoolBreak": false, "approximate": true
  },
  "weather": { "class": "rain", "source": "forecast" },
  "expected": { "speedRatio": 0.48, "level": "heavy", "delayPct": 108 },
  "factors": [
    { "family": "weather", "key": "rain", "effectPct": -14.2, "label": "Rain", "labelAr": "مطر" },
    { "family": "month", "key": "10", "effectPct": -1.5, "label": "October", "labelAr": "أكتوبر" }
  ],
  "basis": "metro",
  "confidence": 0.58,
  "model": { "runId": 12, "trainedAt": "2026-10-06T09:12:00.000Z" }
}
FieldDescription
localLocal date, time, weekday and zone; dayType (workday, weekend, ramadan, ramadan_weekend, holiday_eve, public_holiday, eid, school_break); dayRole; the holiday or the holiday it is the eve of, in English and Arabic; during Ramadan, ramadan: { "phase": "pre_iftar", "iftar": "17:41", "minutesToIftar": 52 }; schoolBreak (estimated); and approximate, set for countries that start Hijri months by moon sighting, where dates can differ by a day.
weatherThe weather class applied and where it came from: scenario (your weather), forecast, observed or none.
expectedspeedRatio, level and delayPct; null when basis is none.
factorsWhat moved the estimate away from a normal day, largest first. effectPct is the change in speed (-12 = 12% slower). label and labelAr are ready to display.
basis, confidenceThe level of the area hierarchy the typical pattern came from, and a 0–1 confidence from the amount of history behind it.
modelThe model fit in use (runId, trainedAt), or null before the first fit.

GET /traffic/analysed/week

Seven local days × 24 hours at a point, with each day's best and worst two-hour windows between 06:00 and 23:00. This is the data behind "when should I leave?".

Query parameters

lat
number required
Latitude.
lng
number required
Longitude.
from
string
First local date, YYYY-MM-DD. Default: today at the point. Within a year of today.
{
  "source": "navvo-analysed-traffic",
  "country": "JO", "tz": "Asia/Amman", "from": "2026-10-06",
  "basis": "metro", "confidence": 0.55,
  "weather": { "source": "forecast", "note": "Forecast weather is applied to the next 72 hours only." },
  "model": { "runId": 12, "trainedAt": "2026-10-06T09:12:00.000Z" },
  "days": [
    {
      "date": "2026-10-06", "weekday": "Tuesday", "dayType": "workday", "dayRole": "workday_3",
      "holiday": null, "eve": null, "ramadan": null,
      "best":  { "from": "10:00", "to": "12:00", "startHour": 10, "speedRatio": 0.81, "level": "light", "delayPct": 23 },
      "worst": { "from": "16:00", "to": "18:00", "startHour": 16, "speedRatio": 0.47, "level": "heavy", "delayPct": 113 },
      "hours": [
        { "hour": 0, "speedRatio": 0.93, "level": "free", "delayPct": 8, "weather": "clear" }
      ]
    }
  ]
}

hours always has 24 entries (one shown here); an hour without data has null values. Forecast weather is applied to the next 72 hours only, and later hours assume normal weather. A window needs data for both of its hours. On a flat day worst is null. During Ramadan each day carries ramadan: { "iftar": "17:41" }.


GET /traffic/analysed/grid

Expected traffic for every geohash cell of a map view at one moment, for drawing the roads that have no live traffic. Each cell carries the model's level and a liveLevel: the same expected speed on the live layer's own thresholds, so the lines can use the live legend from GET /traffic/layers. Never live.

Query parameters

bbox
string required
west,south,east,north, at most 3° on a side. A larger view is a 400: zoom in.
at
string
ISO 8601 date-time, as for GET /traffic/analysed; without an offset it is local time in the view. Default: now. Rounded down to 5 minutes.
precision
number
Cell size: 6 for street cells (about 1.0 × 0.6 km in the region) or 5 for district cells (about 4.2 × 4.9 km). Default: 6 for views up to about 15 × 15 km, 5 above.
curl -s "https://navvo.io/api/v1/traffic/analysed/grid?bbox=28.975,41.035,28.995,41.045" -H "x-api-key: nvvo_YOUR_KEY"
{
  "source": "navvo-analysed-traffic",
  "at": "2026-10-06T12:45:00.000Z",
  "precision": 6,
  "extent": [28.970947, 41.033936, 29.003906, 41.050415],
  "cellSize": { "lngDeg": 0.010986328125, "latDeg": 0.0054931640625 },
  "truncated": false,
  "country": "TR",
  "countries": ["TR"],
  "local": { "date": "2026-10-06", "time": "15:45", "dayType": "workday", "holiday": null, "ramadan": null },
  "weather": { "class": "clear", "source": "forecast" },
  "cells": [
    { "g": "sxk97q", "ratio": 0.541, "level": "moderate", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk97w", "ratio": 0.637, "level": "moderate", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk97y", "ratio": 0.435, "level": "heavy", "liveLevel": "heavy", "basis": "local" },
    { "g": "sxk97r", "ratio": 0.591, "level": "moderate", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk97x", "ratio": 0.657, "level": "moderate", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk97z", "ratio": 0.503, "level": "moderate", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk9e2", "ratio": 0.72, "level": "light", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk9e8", "ratio": 0.549, "level": "moderate", "liveLevel": "slow", "basis": "local" },
    { "g": "sxk9eb", "ratio": 0.519, "level": "moderate", "liveLevel": "slow", "basis": "local" }
  ],
  "basis": "local"
}
FieldDescription
cellsOne entry per cell the model has an answer for: g (the cell's geohash), ratio (expected speed ÷ free-flow speed), level (free, light, moderate, heavy or standstill), liveLevel (free, slow, heavy or standstill, on the live layer's thresholds) and basis (local … region). Cells outside the covered region, or without any data, are left out.
precision, cellSize, extentThe geohash precision, one cell's size in degrees, and the [west, south, east, north] the cells cover: the view snapped to whole cells.
country, countries, localThe country most of the cells are in (each cell is read with its own country's clock and calendar), every country in the view, and the local date, time, dayType, holiday and Ramadan phase for the main one.
weatherThe weather applied, from the forecast at the centre of the view; source is "none" when none was available in time.
basisThe finest area level among the cells, or none. When it is country or region, every cell carries the same broad estimate: draw it faintly, or label it as a general pattern.
truncatedtrue when the view has more than 2,500 cells at this precision. A window centred on the view is answered; extent says which.

To draw it, take each road segment's midpoint, compute its geohash at precision, and colour the segment with that cell's liveLevel. A view entirely outside the covered region returns cells: [] with a note, not an error. Answers are cached per view and 5-minute slot, so refetching after every pan is cheap.


GET /traffic/analysed/outlook

A one- or two-sentence traffic outlook for a country's main city on a local date, in English or Arabic.

Query parameters

country
string
ISO 3166-1 alpha-2 code: JO, SA, AE, QA, KW, BH, OM, EG, LB, PS, IQ, SY, YE, TR or IR. Default JO.
date
string
Local date, YYYY-MM-DD. Default: today in that country.
lang
string
en (default) or ar.
{
  "source": "navvo-analysed-traffic",
  "country": "JO", "scope": "cc:JO", "date": "2026-10-08", "lang": "en",
  "text": "Amman, Thursday 8 October: a regular workday. Expect the busiest roads around 08:00 (moderate traffic) and 16:00 (heavy traffic), close to a usual Thursday.",
  "facts": {
    "city": "Amman", "date": "2026-10-08", "weekday": "Thursday", "dayType": "workday",
    "holiday": null, "eve": null, "iftar": null,
    "busiest": [
      { "time": "08:00", "hour": 8, "level": "moderate", "delayPct": 54 },
      { "time": "16:00", "hour": 16, "level": "heavy", "delayPct": 121 }
    ],
    "vsUsualPct": 0, "basis": "metro", "confidence": 0.55
  },
  "writer": "template",
  "stored": true,
  "updatedAt": "2026-10-06T23:41:07.000Z"
}

Outlooks for Amman, Riyadh, Dubai, Doha, Kuwait City, Manama, Muscat, Cairo and Istanbul are written every night for the next seven days (stored: true). writer is navvo-ai when Navvo's on-server model wrote the sentence, and template when the fixed template did. A model-written sentence is published only if every number in it appears in facts. vsUsualPct compares average trip time over 06:00–23:00 with a usual day of the same day role (positive = slower). Other countries and dates are built on request from the same facts (stored: false). When the model has no data for the country yet, text and facts are null and basis is "none".


GET /traffic/analysed/model

The model fits behind these answers: the five latest runs, the fit in use, and the size of the pattern tables.

{
  "source": "navvo-analysed-traffic",
  "model": { "runId": 12, "trainedAt": "2026-10-06T09:12:00.000Z" },
  "rows": { "patternBase": 184212, "patternFactors": 96540 },
  "runs": [
    { "id": 12, "kind": "grid", "status": "done", "stats": { "rows": 21800000, "baseRows": 184212, "factorRows": 96540 }, "startedAt": "2026-10-06T08:40:00.000Z", "finishedAt": "2026-10-06T09:12:00.000Z" },
    { "id": 11, "kind": "grid-holdout", "status": "done", "stats": { "validation": { "heldOutFrom": "2024-07-01", "maeSpeedRatio": { "model": 0.061, "hourOfDayOnly": 0.083 } } }, "startedAt": "2026-10-06T07:55:00.000Z", "finishedAt": "2026-10-06T08:31:00.000Z" }
  ]
}

A *-holdout run scores the model on months it was not trained on, without replacing the model in use. validation.maeSpeedRatio is the mean absolute error in speedRatio for the full model and for a simpler hour-of-day baseline. The figures above only illustrate the shape; read the live values from the endpoint.


Incidents

Crowdsourced road incidents — jams, closures, accidents, hazards, and more. Scope required: traffic.

Incident type ∈ jam, closure, accident, hazard, weather, breakdown, speed_check, construction, lane_closure, visibility. severity is 1–5. Only active, non-expired incidents are returned.

GET /incidents/types

The catalog of supported incident types — for building a "report incident" type picker. Each entry carries a human label, a default severity, the default lifetime (defaultTtlMinutes), and whether the type blocks routing (route-blocking types are routed around; soft types only alert the driver).

curl -s "https://navvo.io/api/v1/incidents/types" -H "x-api-key: $NAVVO_API_KEY"
{
  "provider": "navvo-incidents", "count": 10, "confirmBumpMinutes": 25, "maxTtlMinutes": 720,
  "types": [
    { "type": "jam", "label": "Traffic jam", "defaultSeverity": 2, "defaultTtlMinutes": 90, "routeBlocking": false },
    { "type": "closure", "label": "Road closure", "defaultSeverity": 4, "defaultTtlMinutes": 240, "routeBlocking": true },
    { "type": "accident", "label": "Accident", "defaultSeverity": 4, "defaultTtlMinutes": 120, "routeBlocking": true }
  ]
}

The type values are exactly what POST /incidents and POST /incidents/report accept; confirmBumpMinutes/maxTtlMinutes describe how confirmations extend an incident's life.

GET /incidents

List active incidents, severity-then-recency ordered, with layer metadata. items[] are the same whitelisted projection as POST /incidents (no reporter id; metadata is { subType?, photoUrl?, source }).

A malformed bbox (not west,south,east,north with west < east, south < north) returns 400 "bbox must be west,south,east,north" — even when zero incidents are active. An empty bbox= is treated as absent.

Query parameters

bbox
string
west,south,east,north spatial filter.
type
string
Filter by incident type.
limit
number
Max items, 1–250 (also capped by zoom).
zoom
string
Controls the default limit cap.
{
  "total": 1,
  "items": [
    {
      "id": "b1f2c3d4-…",
      "type": "accident",
      "status": "active",
      "location": "POINT(35.9106 31.9539)",
      "title": "Two-car collision",
      "severity": 4,
      "expiresAt": "2026-06-09T10:40:00.000Z",
      "confirmations": 3,
      "rejections": 0
    }
  ],
  "metadata": { "layerType": "incidents", "source": "navvo-incidents", "dataUrl": "/api/v1/incidents/geojson", "hasData": true }
}

items[].location is a WKT string; for parsed coordinates use the GeoJSON endpoint below.

GET /incidents/geojson

Active incidents as a GeoJSON FeatureCollection (coordinates [lng, lat]). Accepts the same bbox/type/limit/zoom filters (with the same up-front bbox validation as the list). Each feature's properties now include photoUrl (string | null) — photo evidence attached at report time. A GET /incidents/geojson/tiles/{z}/{x}/{y} per-tile variant and a GET /incidents/geojson/tile-cover planner are also available.

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": { "type": "Point", "coordinates": [35.9106, 31.9539] },
      "properties": { "id": "b1f2c3d4-…", "type": "accident", "title": "Two-car collision", "severity": 4, "confirmations": 3, "rejections": 0, "photoUrl": null }
    }
  ],
  "metadata": { "layerType": "incidents", "hasData": true }
}

POST /incidents

Report a new incident.

Request body

type
string required
One of the incident types listed above.
lat
number required
Latitude.
lng
number required
Longitude.
title
string
Short title.
description
string
Free text.
severity
number
1–5. Defaults to 2.
ttlMinutes
number
Lifetime in minutes, 5–1440. Defaults to 180.
photoUrl
string
Optional https:// photo evidence URL (max 500 chars). A non-https or over-long value returns 400 "photoUrl must be an https URL". Stored on the incident and surfaced as a photoUrl property on the GeoJSON feature.
Optional attribution. Send your signed-in user's Authorization: Bearer <token> and the report is credited to that verified user. The legacy body reportedByUserId is honored only for anonymous callers and is deprecated; a reporter id is never returned in the response.
{ "type": "hazard", "lat": 31.9539, "lng": 35.9106, "title": "Debris on road", "severity": 3, "ttlMinutes": 120, "photoUrl": "https://cdn.example.com/hazard.jpg" }

Returns 201 with the created incident (status: "active", expiresAt set from ttlMinutes). The response is a whitelisted projection: { id, createdAt, updatedAt, type, status, location, title, description, severity, expiresAt, confirmations, rejections, metadata }, where metadata contains only subType?, photoUrl?, and source. title/description are null (not absent) when unset.

POST /incidents/report

The community-report helper — like POST /incidents but with auto-deduplication. If an active incident of the same type already exists within ~80 m, this is treated as a confirmation (bumps that incident's confirmations and refreshes its expiry) instead of creating a duplicate pin — the right behaviour when many drivers report the same jam or accident. Otherwise a new incident is created.

Same body as POST /incidents (including the optional photoUrl and Bearer attribution), plus an optional dedupMeters (number, 10–500, default 80). The body is fully validated: a bad type, non-numeric lat/lng, out-of-range severity/ttlMinutes, or an out-of-range dedupMeters now returns 400 instead of persisting garbage. The incident in both the merged:true and merged:false responses is the same whitelisted projection as POST /incidents (no reporter id leak from a merged incident).

curl -s -X POST "https://navvo.io/api/v1/incidents/report" \
  -H "x-api-key: $NAVVO_API_KEY" -H "content-type: application/json" \
  -d '{ "type": "jam", "lat": 31.97, "lng": 35.92, "severity": 3, "title": "Heavy traffic" }'
{ "provider": "navvo-incidents", "merged": true, "distanceM": 31, "confirmations": 2, "incident": { } }
FieldTypeNotes
mergedbooleantrue if folded into a nearby same-type incident (a confirmation); false if a new one was created
distanceMnumber(when merged) distance to the matched incident
confirmationsnumber(when merged) the incident's confirmation count after this report
incidentobjectthe resulting incident

Use this from a "Report" button so repeated reports of one event converge on a single, increasingly-confirmed pin rather than cluttering the map.

POST /incidents/{id}/votes

Confirm or reject an incident (crowd validation). Returns 201 with the updated incident (the whitelisted projection — no reporter id). An incident with 5+ rejections (and rejections > 2× confirmations) is auto-marked rejected and drops out of listings. An unknown incident id returns 404 "Incident not found".

Votes are de-duplicated. With a valid Bearer token, a verified user may vote once per incident — a repeat returns the incident unchanged (no counter mutation). Anonymous voters are de-duplicated per (IP, incident) for ~6 hours. Send your user's Authorization header so their vote is attributed and counted durably.

Request body

vote
string required
confirm or reject.
userId
string
Optional voter id (ignored for dedup when a Bearer token is present — the verified subject is used).
{ "vote": "confirm" }

Road edits & closures

Road edits are authored on the Navvo platform (operations dashboard) and are the authoritative, longer-lived counterpart to crowd incidents: road closures, access restrictions, custom (drawn) roads, and attribute adjustments. Active edits appear on the map, here in the API, and — for closures/restrictions — are routed around automatically (see roadEditConstraints in the route response). Each edit can be permanent or temporary (a start/end window).

Required scope: tiles

GET /road-edits/geojson

Active road edits in a viewport as a GeoJSON FeatureCollection with mixed geometry (LineString for road segments, Polygon for area closures, Point for point edits). Only edits effective now are returned (a scheduled edit appears once its start time passes; an expired or disabled one drops out).

bbox
string
Viewport bounds west,south,east,north. Omit for everything (capped).
curl -s "https://navvo.io/api/v1/road-edits/geojson?bbox=35.8,31.9,36.0,32.0" \
  -H "x-api-key: $NAVVO_API_KEY"
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": { "type": "LineString", "coordinates": [[35.911, 31.954], [35.912, 31.955]] },
      "properties": {
        "id": "…", "layerType": "road_edits", "editType": "closure", "geometryType": "line",
        "name": "Rainbow St closed", "reason": "construction", "status": "active",
        "severity": 4, "blocksRouting": true,
        "startsAt": null, "endsAt": "2026-07-01T18:00:00.000Z", "permanent": false,
        "color": "#DC2626"
      }
    }
  ],
  "metadata": { "layerType": "road_edits", "name": "Road edits", "source": "navvo-road-edits", "hasData": true }
}
PropertyNotes
editTypeclosure · restriction · custom_road · attribute
geometryTypeline · polygon · point
blocksRoutingwhen true, routing detours around this edit
permanent / startsAt / endsAtvalidity window (permanent: true ⇒ no end)
colorsuggested render colour for the edit type
custom_road edits are map annotations — they are drawn on the map but are not routable (the routing engine drives a prebuilt graph; a new drivable road needs a graph rebuild). Closures, restrictions, and adjustments take effect immediately.
Copyright © 2026