Navvo
API Reference

Routing

Directions, travel-time matrices, isochrones, map-matching, and stop optimization.

Routing

Directions and route analysis, powered by Navvo's routing engine. The API offers low-level endpoints that take a routing-engine request (/route, /matrix, /isochrone, /map-match, /optimize) and a high-level Navvo planner (/plan) that builds the request for you and adds AI labels, constraint parsing, and logistics-zone risk.

Every time Navvo returns is a travel time, on every endpoint below: real street speeds, traffic at the moment each road is reached (measured, typical or expected), the time lost at junctions and traffic lights, and the pace of the travel mode. Motor modes leave now unless you give a departure time. No-entry signs are respected by direction for motor modes, and routes that cross a national border are not offered. See Travel time, Road signs and Routes that cross a border.

Scope required: routing

Read this first — two coordinate conventions.
  • The passthrough endpoints (/route, /matrix, /isochrone, /map-match, /optimize) forward a raw routing-engine payload, so locations use the routing engine's native { "lat": …, "lon": … } objects (note lon).
  • /plan uses a Navvo body with { "lon": …, "lat": …, "name"? } location objects (keys are named, so order doesn't matter).
All routing endpoints return HTTP 201 on success. The routing engine being unreachable does not error — you get a 201 with available: false. Always check available.

The response envelope

Passthrough endpoints wrap the routing engine's reply:

{ "provider": "navvo", "available": true, "path": "route", "data": { /* raw routing-engine response */ } }

On engine failure:

{ "provider": "navvo", "available": false, "path": "route", "request": { /* your payload, echoed */ } }
Authentication: every routing/planning endpoint (POST /routing/*, and POST /traffic/route) requires an identified caller — a signed-in Navvo user's Bearer token or your developer API key (x-api-key). Anonymous requests return 401. GET /routing/profiles stays public.

POST /routing/route

Turn-by-turn directions between locations. Proxies the routing engine's /route and attaches an AI-generated labels block (a short label + tip for the route).

Request body

payload
object required
A raw routing-engine route request. Forwarded verbatim (and not field-validated by Navvo). Must be non-empty.
avoid
array
Optional. Any of tolls, highways, ferries, unpaved, compiled into the payload's costing options for its costing (highways means motorways and trunk expressways). For routes that are checked edge by edge, with a warning when avoidance is impossible, use POST /routing/plan.
alternates
integer
Optional, 0–2. Alternative routes to return; the same as payload.alternates.

Common payload fields: locations (array of {lat, lon, type?}), costing (auto, pedestrian, bicycle, truck, motor_scooter, motorcycle, bus, taxi, …), costing_options, directions_options (units: kilometers/miles, language), alternates, date_time.

date_time sets the departure: { "type": 1, "value": "2026-12-01T08:30" } leaves at that local time; { "type": 0 } or no date_time leaves now. Traffic, junction waits and time-conditional restrictions are evaluated for that departure.

Skip the AI label for a faster response. The AI labels block adds ~1–2 s. Set includeLabels: false inside payload to return route geometry and alternates immediately — labels then comes back as { "unavailable": false, "purpose": "route_labels", "content": "" }. Defaults to true.
{
  "payload": {
    "locations": [
      { "lat": 31.95, "lon": 35.91 },
      { "lat": 31.99, "lon": 35.95 }
    ],
    "costing": "auto",
    "directions_options": { "units": "kilometers", "language": "en-US" },
    "alternates": 2
  }
}

Response (201)

data.trip is the standard routing-engine trip — legs[].maneuvers[] (turn-by-turn), legs[].shape (encoded polyline, precision 1e6), and summary (time in seconds, length in the requested units, has_toll/has_highway/has_ferry). The added labels object contains a best-effort parsed: { label, tip }.

The route is planned the way POST /routing/plan plans one:

  • Times are travel times. summary.time, legs[].summary.time and maneuvers[].time include street speeds, traffic, junctions and lights (see Travel time). The routing graph's own figure stays beside each as static_time, and summary.traffic gives the same route in light traffic (free_flow_time), the seconds spent at junctions and the evidence mix.
  • Traffic picks the route. For motor modes leaving now, a traffic-aware route is considered next to the usual ones, every candidate is timed, and the fastest comes first in data.trip (the others stay in data.alternates, up to alternates).
  • Road signs. No-entry and turn-ban signs are followed by direction (Road signs); the top-level signRules reports what applied.
Added fieldMeaning
travelTime{ basis: "travel_time", candidates }: the times in data are travel times, and how many candidates were compared. Absent when the times could not be computed (the routing graph's times are then returned unchanged).
signRules{ checked, fixed, remaining, passes }, as on /routing/plan.
{
  "provider": "navvo",
  "available": true,
  "path": "route",
  "data": {
    "trip": {
      "legs": [ { "maneuvers": [ { "type": 1, "instruction": "Drive northeast.", "time": 120.5, "length": 1.23 } ], "summary": { "time": 540.2, "length": 5.6 }, "shape": "ityp_AdpjpC…" } ],
      "summary": { "has_toll": false, "has_highway": true, "time": 540.2, "length": 5.6 },
      "status": 0, "units": "kilometers", "language": "en-US"
    }
  },
  "labels": { "purpose": "route_labels", "parsed": { "label": "Fast city route", "tip": "Light traffic, mostly highways" } }
}
To colour a route by traffic, or to time a line you drew yourself, use POST /traffic/route: it returns the route's stretches with their traffic level and what each is based on.
Border crossings are not offered on this endpoint either: a route or alternate that crosses a national border is left out, and when every route crosses, the request fails with 422 BORDER_CROSSING_UNAVAILABLE. See Routes that cross a border.

GET /routing/profiles

The catalog of routing profiles (costing modes) plus the supported preferences, avoid options, and corridor constraints — for building a travel-mode picker. Each profile carries an available flag reflecting what this deployment can actually route.

curl -s "https://navvo.io/api/v1/routing/profiles" -H "x-api-key: $NAVVO_API_KEY"
{
  "provider": "navvo-routing",
  "profiles": [
    { "costing": "auto", "label": "Driving", "available": true, "description": "Car routing (default)." },
    { "costing": "bicycle", "label": "Cycling", "available": true },
    { "costing": "pedestrian", "label": "Walking", "available": true },
    { "costing": "wheelchair", "label": "Wheelchair", "available": true, "description": "Pedestrian profile with step/grade penalties." },
    { "costing": "truck", "label": "Truck", "available": false, "description": "Accepted by the API but requires truck-enabled routing tiles, not provisioned on this deployment." }
  ],
  "preferences": ["fastest", "shortest", "balanced"],
  "avoid": ["tolls", "highways", "ferries", "unpaved"],
  "constraints": ["avoidIncidents", "avoidReported", "disregard"]
}
FieldNotes
profiles[].costingthe value to pass as costing to /routing/plan
profiles[].availablewhether this deployment can route the profile (truck needs truck-enabled tiles)
preferences / avoidaccepted preference and avoid[] values
constraintscorridor flags (avoidIncidents, avoidReported, disregard)

GET /routing/maneuver-types

The canonical maneuver-code catalog — the mapping from every routing-engine maneuver type (the integer on legs[].maneuvers[].type) to a stable name, an icon key, and a human description. Load this once at startup instead of hardcoding the codes, so your turn-by-turn UI renders the correct arrow for every maneuver. Public (scope routing).

curl -s "https://navvo.io/api/v1/routing/maneuver-types" -H "x-api-key: $NAVVO_API_KEY"
{
  "provider": "navvo-routing",
  "types": [
    { "code": 0,  "name": "none",              "icon": "straight",    "description": "No maneuver." },
    { "code": 1,  "name": "start",             "icon": "depart",      "description": "Start of the route." },
    { "code": 4,  "name": "destination",       "icon": "arrive",      "description": "Arrive at the destination." },
    { "code": 10, "name": "right",             "icon": "right",       "description": "Turn right." },
    { "code": 15, "name": "left",              "icon": "left",        "description": "Turn left." },
    { "code": 26, "name": "roundabout-enter",  "icon": "roundabout",  "description": "Enter a roundabout." }
  ],
  "junctionWindowTypes": [ 10, 11, 15, 16 ],
  "decisionExcludedTypes": [ 0, 1, 4 ]
}
FieldDescription
types[]The full table — 39 entries, codes 0–38 — each { code, name, icon, description }.
types[].iconOne of depart, arrive, straight, slight-right, right, uturn, left, slight-left, merge, roundabout, ferry, transit — map it to your own maneuver-arrow asset.
junctionWindowTypesCodes that a junction-view window is relevant for.
decisionExcludedTypesCodes that are not user-facing "decision" turns (route start/end, none) — skip them when counting upcoming maneuvers.
Fetch this once and cache it. Every Navvo SDK and native navigation client should resolve maneuvers[].type through this table rather than embedding its own copy, so a future maneuver code is picked up without a client release.

POST /routing/plan

The recommended high-level endpoint. You give it stops and preferences; it builds the routing-engine request, picks route vs optimized_route automatically, and enriches the result with AI labels, optional natural-language constraint parsing, and logistics-zone risk analysis.

Request body

locations
array required
Array of { "lon": number, "lat": number, "name"?: string }. At least 2 required.
originHeading
number
Direction the vehicle is travelling at the first location, in degrees clockwise from north (0 to 360). Send it when replanning from a moving vehicle. The route then starts on the nearest road running that way, in the direction of travel, instead of whichever road happens to be closest, which on a divided road or beside a service road can be the wrong one and send the driver back. A value outside the range is ignored rather than rejected, so the -1 that iOS reports for an unknown course is safe to forward. Ignored for walking and wheelchair routes.
originTrace
array
Where the vehicle has just been, oldest first, as { "lat": number, "lon": number } points. Used with originHeading to tell two side-by-side roads apart when one GPS position cannot. Unusable points are ignored and only the latest 30 are read.
costing
string
One of auto (default), pedestrian, bicycle, motor_scooter, or truck. GET /routing/profiles reports whether each profile is available (available); truck may return 400 "Truck routing is not available yet on this deployment" when truck routing is not enabled.
preference
string
fastest, shortest, or balanced (default). Tunes the costing options.
avoid
array
Any of tolls, highways, ferries, unpaved. Any other value returns 400 with a validation array. highways means motorways and trunk expressways (in Jordan the main urban expressways, such as Airport Road, Zahran Street and Mecca Street, are trunk roads). The route and every alternate are checked edge by edge; see Avoiding highways and tolls.
alternates
integer
0–2, default 2. Alternative routes to return in alternates[]. Every alternate obeys avoid; alternates that would break it are dropped, so you can get fewer than you asked for. Trips with more than 2 locations, or with optimize, return none.
optimize
boolean
If true, reorders intermediate stops for the shortest tour (the routing engine's optimized_route). Optimization is also used automatically when you pass more than 2 locations.
departureTime
string
ISO 8601 departure time. Time-dependent turn restrictions and access windows apply for that time, and the traffic block is evaluated from it. Defaults to now.
avoidIncidents
boolean
Defaults to true. When enabled, active community road-blocking incidents (closures, accidents, construction, lane closures) within ~30 m of the planned corridor are automatically routed around. The response's incidentConstraints block reports whether any were applied. Set false to ignore live incidents.
avoidReported
boolean
Defaults to true. The close-the-loop override: blocking feedback reports (road closed / missing / illegal maneuver / hazard) that an editor has confirmed (status: ack) and that sit within ~30 m of the corridor are routed around. Unconfirmed reports never affect routing, and confirmed ones auto-expire after 60 days. The response's reportedConstraints block reports whether any were applied. Set false to ignore them.
disregard
array
Per-user sign featureKeys to ignore — those no-entry signs will not constrain this route.
(road edits)
—
Always applied (no flag): active road edits authored on the Navvo platform — closures and access restrictions (GET /road-edits/geojson) — within ~70 m of the corridor are routed around (line closures become avoided points; area closures become avoided polygons). The response's roadEditConstraints block reports whether any were applied.
constraintsText
string
Free-text delivery constraints (e.g. time windows). Parsed by AI into a structured constraints block.
includeLabels
boolean
Defaults to true. Set to false for an instant response that returns route geometry and alternates only, skipping the AI route label (which adds ~1–2s). Recommended for interactive/latency-sensitive clients.
includeLanes
boolean
Defaults to false. When true, attaches a lanes object ({ roadName, laneCount, lanes: [{ indications }] }) to each decision maneuver in the trip, so a navigation client doesn't need a separate GET /junction/lanes call per approach. Adds latency (bounded upstream lookups, capped at 40 per trip).
vehicle
object
{ "maxSpeedKph": number } for any motor vehicle: the speed it will not go above. Route choice and every time in the answer respect it. For costing: "truck" the same object also takes heightM, widthM, lengthM, weightT, axleLoadT and hazmat, which keep the route off low bridges and restricted roads.
includeAttributes
boolean
Defaults to false. When true, inlines legal speed limits along the route: a routeSpeedLimits summary at the top level (per-edge speedLimitKph + shape indices — the same feed as POST /routing/route-attributes) plus a speedLimitKph field on each maneuver that falls on a limited edge. One extra upstream call. (Where the underlying road data has no maxspeed, values are null.)
language
string
Narrative language. Defaults to en-US. When set to English, road names in the maneuver instruction and street_names are also localized to English (name:en → int_name, then a phonetic Latin transliteration of the local name as a last resort) so the on-screen and spoken guidance always read in Latin script even where the map's default names are non-Latin (e.g. Arabic). If a road's English name cannot be looked up at that moment, that response uses the transliteration and the lookup is tried again on the next route — a failed lookup is never remembered as "no English name".
{
  "locations": [
    { "lon": 35.91, "lat": 31.95, "name": "Warehouse" },
    { "lon": 35.95, "lat": 31.99, "name": "Customer A" },
    { "lon": 35.88, "lat": 31.97, "name": "Customer B" }
  ],
  "costing": "auto",
  "preference": "fastest",
  "avoid": ["tolls", "unpaved"],
  "optimize": true,
  "constraintsText": "Deliver to Customer A before 11:00, avoid downtown."
}

Response (201)

{
  "provider": "navvo-routing",
  "engine": { "provider": "navvo", "available": true, "path": "optimized_route", "data": { "trip": { } } },
  "labels": { "parsed": { "label": "…", "tip": "…" } },
  "constraints": { "purpose": "route_constraints", "content": "{\"orderedStops\":[…],\"timeWindows\":[…]}" },
  "logistics": {
    "applied": true,
    "matchedZones": [
      { "slug": "amman-restricted", "name": "Amman Restricted Access", "zoneType": "restricted_access", "riskScore": 0.8, "costMultiplier": 1.25, "routingPolicy": "Permit required 06:00-09:00" }
    ],
    "maxRiskScore": 0.8,
    "totalCostMultiplier": 1.25,
    "policySummary": "Permit required 06:00-09:00"
  },
  "routeProfile": { "costing": "auto", "preference": "fastest", "avoid": ["tolls", "unpaved"] }
}
FieldDescription
engineThe routing route envelope with the raw data.trip. path is route or optimized_route. When alternate routes exist they are returned under engine.data.alternates[] (each item has its own trip), with data.trip being the fastest.
labelsAI route label/tip. Empty when includeLabels is false.
constraintsPresent only if you sent constraintsText; otherwise null.
logisticsWhich Navvo logistics/SLA zones the route crosses, with risk and cost multipliers. applied: false when none intersect.
routeProfileEcho of the resolved costing/preference/avoid.
signConstraints{ applied, noEntryCount, source } — no-entry signs routed around.
incidentConstraints{ applied, blockingCount, source } — live road-blocking incidents routed around.
reportedConstraints{ applied, blockingCount, source } — admin-confirmed blocking feedback reports routed around (close-the-loop).
roadEditConstraints{ applied, blockingCount, source } — platform road edits (closures/restrictions). applied is true only when keeping off them changed the route — the same trip without them would have used a closed road; a closure merely near the trip leaves it false.
/plan always uses kilometers. Distances/durations live under trip.summary (also at engine.data.trip.summary).

The route, alternates and routeId

A successful plan also returns, at the top level:

FieldDescription
tripThe chosen route (the same object as engine.data.trip). trip.summary.length is in km and trip.summary.time in seconds, exactly as measured on the road: avoid options never change them, so two answers with the same geometry always report the same length.
alternates[]Up to alternates other routes, each { routeId, trip, avoidCheck }. All of them obey avoid.
routeIdID of trip. Each alternate has its own. Pass the one the driver picked to POST /navigation/sessions within 15 minutes to start navigation on exactly that route, so the starting distance matches the preview. null if it could not be stored, or for trips with more than 2 locations.
avoidCheckPresent when avoid includes highways or tolls on a motor profile: { checked, compliant, highways: { requested, motorwayKm, trunkKm, endpointKm, avoidableKm, compliant }, tolls: { requested, tollKm, compliant } }. endpointKm is highway the trip has to use because it starts or ends on that road (at most 1 km at each end). Compliance is judged on avoidableKm. A route that could not be checked has checked: false and is never compliant.
avoidAdjustmentPresent when the route had to be corrected to obey avoid: excluded_avoided_roads or promoted_alternate.
warnings[]{ code, avoid: "highways" | "tolls", scope?, message, motorwayKm?, trunkKm?, tollKm? }. code: "avoid_not_possible" with scope: "route" means no route avoids that road type; with scope: "endpoint" it means only the part next to the start or destination is used. code: "avoid_unverified" means the route could not be checked. The route is still returned.
trafficPresent when traffic is enabled on the deployment: the travel time of trip in traffic and what that traffic is based on. See Traffic on the route.
borderCheckPresent when routes that crossed a national border were left out: { routesRemoved, reason: "border_crossing_unavailable" }. See Routes that cross a border.

Avoiding highways and tolls

  • avoid: ["highways"] keeps the route off motorways and trunk expressways. The route is measured edge by edge after planning. If it still uses one, Navvo plans again with those road segments excluded, or switches to the quickest alternate that avoids them. If nothing avoids them (for example, the only road to the destination is an expressway), the route is returned with an avoid_not_possible warning saying how many kilometres of motorway and trunk it uses. When the start or the destination is on an expressway, the stretch attached to it (up to 1 km at each end) cannot be avoided. It is reported as endpointKm with a scope: "endpoint" warning, and the rest of the route is still kept off highways.
  • avoid: ["tolls"]: Jordan has no toll roads, so this changes nothing there. The geometry, length and time are identical to the same request without it.
  • An alternate that uses an avoided road type is not returned, except when the main route cannot avoid it either: alternates that use no more of it than the main route are then kept, under the same warning.
{
  "routeId": "5b0c…",
  "trip": { "summary": { "length": 10.018, "time": 783.1, "has_toll": false, "has_highway": false }, "legs": [ … ] },
  "alternates": [
    { "routeId": "9e41…", "trip": { "summary": { "length": 10.36, "time": 785.1 } }, "avoidCheck": { "checked": true, "compliant": true, "highways": { "requested": true, "motorwayKm": 0, "trunkKm": 0, "endpointKm": 0, "avoidableKm": 0, "compliant": true }, "tolls": { "requested": true, "tollKm": 0, "compliant": true } } }
  ],
  "avoidCheck": { "checked": true, "compliant": true, "highways": { "requested": true, "motorwayKm": 0, "trunkKm": 0, "endpointKm": 0, "avoidableKm": 0, "compliant": true }, "tolls": { "requested": true, "tollKm": 0, "compliant": true } }
}

Travel time

Every time in a route is the time a driver can expect, not a speed-limit estimate. Each road is timed at the moment the vehicle reaches it, from:

  • the speed traffic actually drives on that kind of street (city roads run well below their limits);
  • the vehicle's own speed (vehicle.maxSpeedKph, and lower caps for trucks and scooters);
  • traffic on that road at that time: measured recently where it is, otherwise the road's typical traffic, otherwise expected traffic;
  • the time lost at each junction for the turn made there. A left turn across a main road costs more than a right turn or going straight, U-turns and roundabouts cost time too, and junctions with traffic lights cost the usual wait for the green (short at night, long in the rush hours).

So 1 km of a straight city street takes about a minute and a half when traffic is light, and more with turns, junctions and traffic.

The route itself is chosen by this time. Every candidate is timed. When traffic makes the best route slow, Navvo also asks for a route that steers around its worst stretches. The fastest candidate comes first and the others stay as alternates.

FieldMeaning
trip.summary.time, legs[].summary.time, maneuvers[].timeThe expected time, in seconds, as described above.
trip.summary.static_time (and on each leg and maneuver)The routing graph's own time, without traffic or junction waits, kept for comparison.
trip.summary.traffic{ free_flow_time, junction_time, evidence }: the same route with light traffic, seconds spent at junctions, and the share of the distance timed from measured, typical and expected traffic.
travelTime{ chosenFor, candidates, detourTried, model }. chosenFor is time (the fastest candidate), traffic_detour (a route around heavy traffic won) or engine (the time could not be computed, so the routing graph's order was kept).
eta.recommendedbasis: "travelTime" when the time above is available.

Every mode

The same idea applies to every costing, each in its own way:

  • Car (auto): as above.
  • Truck: never above the truck's speed; slower up hills and careful on steep descents; wider, slower turns and longer starts at junctions; traffic in full.
  • Motorcycle and scooter: they pass queues, so traffic slows them less than a car, and they reach the front at traffic lights. Scooters keep to scooter speeds and slow on steep climbs.
  • Bicycle: timed from the effort a rider puts in, not from car speeds, so hills matter and traffic hardly does. Rough surfaces are slower, and cyclists still wait at lights.
  • Walking (pedestrian): a steady walking pace that slows uphill and on stairs. Traffic does not slow walking, but crossing a busy road takes longer at busy hours.
  • Wheelchair: a gentler pace, slopes weigh much more, and crossings take longer.

Hills come from Navvo's terrain data along the route, in every market Navvo covers.

Road signs

Routes follow the regulatory signs Navvo has recorded along the corridor, by direction:

  • No entry: a street is not entered from the end the sign closes. You can still leave it the other way, and a destination on such a street is reached from its open end.
  • No left turn, no right turn, no U-turn: that turn is not made at the junction the sign stands before.

Every candidate route is checked road by road. A candidate that breaks a rule gives way to one that does not; if none is clean, the search runs again around the offending roads. A sign never makes a route fail: if no clean route exists, the best route is returned and signRules.remaining says so. The disregard list still switches individual signs off for a rider.

The same no-entry rules hold for motor modes on /routing/route, and in the matrix, isochrone and optimisation endpoints. Walking and cycling are not bound by them.

FieldMeaning
signRules{ checked, fixed, remaining, passes }: the signs that applied along the route, the rule breaks steered around, any left (normally 0), and the searches made.

Routes that cross a border

Routes that cross a national border are not offered until border crossings are verified (opening hours, vehicle rules and the crossing itself).

  • An in-country route is always preferred when one exists.
  • An alternate that crosses a border is left out of alternates[]. When the best route crosses and an alternate does not, that alternate becomes trip. borderCheck.routesRemoved says how many routes were left out.
  • When every route between your locations crosses a border (for example, the start and the destination are in different countries), the request fails with 422:
{
  "error": {
    "code": "BORDER_CROSSING_UNAVAILABLE",
    "message": "Routes that cross a national border are not available yet. Plan the trip up to the border, and on from the other side.",
    "details": { "crossing": { "from": "JO", "to": "SY" } },
    "requestId": "…"
  }
}

details.crossing gives the two countries as ISO 3166-1 alpha-2 codes (null when not known). To show a cross-border journey, plan it in two parts: up to the border, and on from the other side. Navigation sessions start from these routes, so the same applies when you create a session.

Traffic on the route

When traffic is enabled on the deployment, a successful plan also carries a top-level traffic block: how long trip takes in traffic, and what that traffic is based on. The block is additive (every other field keeps its meaning) and is absent when the feature is not enabled.

"traffic": {
  "status": "ok",
  "generation": "jordan-20260727-1a2b3c.t202611301200",
  "evidenceClass": "mixed",
  "sourceMix": { "observed_supplied": 0, "observed": 0.18, "forecast": 0, "typical": 0.07, "structural": 0.75, "unknown": 0 },
  "measuredShare": 0.18,
  "travelTimeS": 812,
  "baselineTimeS": 760,
  "engineTimeS": 790,
  "routeWeight": 845.2,
  "pathChangedByTraffic": false,
  "forecastIssueId": "6c1f…",
  "labels": {
    "observed": { "en": "Measured recently", "ar": "حركة مرصودة مؤخرا", "pattern": "solid" },
    "typical": { "en": "Typical", "ar": "حركة معتادة", "pattern": "dashed" },
    "structural": { "en": "Limited data", "ar": "بيانات محدودة", "pattern": "dotted" }
  }
}
FieldDescription
statusok. unavailable when the block could not be computed in time: the route itself is unaffected. not_applicable for multi-stop routes (more than 2 locations).
travelTimeSDuration of trip in seconds, with each road evaluated at the time you are expected to reach it, counted from the departure (departureTime, or now).
baselineTimeSThe same route without traffic, in seconds.
engineTimeSThe route's own trip.summary.time, in seconds.
routeWeightThe route's cost, used to compare routes. It is not a duration and is reported separately from time: show travelTimeS as the ETA, never routeWeight.
sourceMixShare of the route's distance by evidence class (see below). The values sum to 1.
measuredShareobserved + observed_supplied: the share of the distance backed by measured traffic.
evidenceClassThe class when the whole route has one, otherwise mixed.
pathChangedByTraffictrue when measured traffic made a different route the fastest. That route is returned as trip, and the usual routes stay in alternates[].
labelsFor each class on the route, a ready-to-show en and ar label and a line pattern (solid, dashed or dotted), an accessible cue that does not rely on colour.
generationIdentifies the traffic snapshot behind the answer. GET /traffic/segments/{ref} answers for the same moment carry the same value in snapshot.
forecastIssueIdIdentifies this answer. Quote it when you contact support. Can be null.

The evidence classes in sourceMix and labels:

ClassMeaning
observed_suppliedMeasurements supplied by an authorized data owner for that road, direction and time (see Supplying your own traffic measurements).
observedRecent measured traffic from trips.
forecastAn expected value for the time you reach the road.
typicalWhat that road is usually like at that hour.
structuralAn estimate from the road type only: limited data.
unknownNo information about the road.
Traffic never makes a closed or prohibited road usable: closures, restrictions and the other constraints above always apply first. For motor modes (car, motorcycle, scooter and truck) leaving now, a route shaped by traffic (measured, typical or expected) is considered next to the usual ones, and pathChangedByTraffic is true when it is the fastest. Trips with more than two locations are ordered with traffic too. Walking and cycling routes are not shaped by traffic. Whatever the departure, every candidate is timed as described in Travel time.

When you draw the route, use the labels text and pattern in the legend (for example solid for measured traffic, dashed for typical) rather than colour alone. For the same answer road by road, see GET /traffic/segments/{ref}.


POST /routing/matrix

Travel times and distances between many origins and many destinations, for dispatch boards, nearest-driver searches and delivery planning. Every duration is a travel time on the same scale as a planned route: street speeds, traffic at the departure time, junctions and traffic lights, for the travel mode. A pair's duration therefore agrees with what POST /routing/plan would say for the same trip, to within the small differences between the fastest route and a route you plan separately.

Request body

Send the typed request (recommended):

origins
array required
{ "lat": number, "lon": number } points. sources is accepted as an alias.
destinations
array required
{ "lat": number, "lon": number } points. targets is accepted as an alias.
costing
string
A Navvo profile: auto (default), truck, motorcycle, motor_scooter, bicycle, pedestrian or wheelchair.
departureTime
string
ISO 8601. Durations are for trips leaving then. Default: now.
trafficAware
boolean
Default true: durations include traffic at the departure time. false returns light-traffic durations.
units
string
kilometers (default) or miles.
strictCoverage
boolean
Default true: a pair whose origin or destination lies outside the routable network returns no duration, only the reason. false returns the duration to the nearest routable point.
format
string
cells (one object per pair; the default up to 2,500 pairs) or grid (parallel row-major arrays; the default above).
cache
boolean
Default true. false recomputes instead of serving a cached answer.
curl -s -X POST "https://navvo.io/api/v1/routing/matrix" \
  -H "x-api-key: $NAVVO_API_KEY" -H "content-type: application/json" \
  -d '{
    "origins": [ { "lat": 31.9539, "lon": 35.9106 }, { "lat": 31.9900, "lon": 35.9500 } ],
    "destinations": [ { "lat": 31.9000, "lon": 35.9300 } ],
    "costing": "auto"
  }'

The older form, { "payload": { "sources": [...], "targets": [...], "costing": "auto" } }, is still accepted: data then carries the routing engine's own answer (for motor modes, leaving now with traffic), and the matrix block below carries the travel times.

Response (201)

{
  "provider": "navvo-routing", "available": true, "path": "sources_to_targets",
  "matrix": {
    "version": "navvo-matrix-v1", "units": "kilometers", "costing": "auto", "departureTime": null,
    "counts": { "origins": 2, "destinations": 1, "pairs": 2, "reachable": 2, "unreachable": 0, "outOfRange": 0, "outOfCoverage": 0, "engineErrors": 0, "withTrafficDuration": 2 },
    "cells": [
      { "originIndex": 0, "destinationIndex": 0, "status": "ok", "hasData": true, "distance": 7.12, "distanceKm": 7.12, "duration": 1084, "trafficDuration": 1084, "delay": 211, "confidence": "HIGH", "reason": null },
      { "originIndex": 1, "destinationIndex": 0, "status": "ok", "hasData": true, "distance": 11.4, "distanceKm": 11.4, "duration": 1502, "trafficDuration": 1502, "delay": 260, "confidence": "HIGH", "reason": null }
    ],
    "traffic": {
      "requested": true, "applied": true, "source": "navvo-traffic", "basis": "measured_typical_expected", "reason": null,
      "message": "Durations include traffic at the departure time: …",
      "network": { "updatedAt": "2026-11-30T16:20:04.000Z", "ageMinutes": 4 }
    },
    "cache": { "hit": false, "source": "origin", "ttlSeconds": 120 }
  }
}
FieldMeaning
cells[].durationTravel time in seconds, door to door, for a trip leaving at the departure time. Use this as the ETA.
cells[].trafficDurationThe same value when traffic was applied; null when it was not (trafficAware: false, walking and cycling, or traffic unavailable).
cells[].delaySeconds lost to traffic compared with the same pair in light traffic. null when traffic was not applied.
cells[].statusok, unreachable (no path), out_of_range (beyond the longest route the network answers), out_of_coverage (outside the routable network) or engine_error. reason explains a non-ok cell.
cells[].confidenceHIGH with traffic applied, MEDIUM without, UNKNOWN when there is no duration.
traffic.appliedWhether the durations include traffic. reason says why not: traffic_not_requested, mode_not_slowed_by_traffic or road_network_traffic_unavailable.
traffic.network.updatedAtWhen the road network's traffic was last refreshed (about every 15 minutes).
gridWith format: "grid": row-major arrays distance, duration, trafficDuration, delay and status (index = originIndex × destinations + destinationIndex).

A matrix answer that includes traffic is cached for at most 10 minutes, so two calls a few minutes apart can differ as traffic changes. Walking, wheelchair and cycling durations follow the mode's own pace (hills, stairs, crossings) and are not slowed by traffic.


GET /routing/matrix/limits

Every matrix limit, with the reason for each. Public — call it rather than hard-coding numbers, because they are resolved from configuration on each deploy.

{
  "provider": "navvo-routing", "version": "navvo-matrix-v1",
  "limits": {
    "maxOrigins": 1000, "maxDestinations": 1000,
    "maxSyncPairs": 2500, "maxAsyncPairs": 250000,
    "syncTimeoutMs": 15000, "maxPairDistanceKm": 400,
    "cacheTtlSeconds": 120, "resultRetentionSeconds": 3600
  }
}

maxSyncPairs is the routing engine's own ceiling on this deployment, not an arbitrary cap: a synchronous matrix inside it never needs tiling or a second engine round-trip. Anything larger belongs on a job.


POST /routing/matrix/jobs

Asynchronous matrix, for request sizes that should not be held open on a connection. Same request body as POST /routing/matrix; returns a job id immediately.

Use this above 2,500 pairs (origins × destinations). Up to 250,000 pairs is accepted.

Response (202)

{ "jobId": "9c1f…", "status": "queued", "pairs": 40000, "createdAt": "2026-08-23T09:14:02.113Z" }

Polling

EndpointPurpose
GET /routing/matrix/jobs/{id}Status and progress: queued → running → completed / failed / cancelled
GET /routing/matrix/jobs/{id}/resultThe finished matrix. Available for resultRetentionSeconds after completion
GET /routing/matrix/jobsYour recent jobs
DELETE /routing/matrix/jobs/{id}Cancel a queued or running job

Results are retained for one hour by default (resultRetentionSeconds); fetch them and store them yourself if you need them longer.


Out-of-coverage destinations

The routing graph covers the Middle East markets Navvo serves. A coordinate outside it used to be snapped silently to the nearest reachable node, and the response then described a completed journey whose shape ended tens of kilometres short of the destination. For a dispatch integration that is a driver sent to the wrong governorate. A destination inside the graph but across a national border is a different case: see Routes that cross a border.

POST /routing/plan now compares every requested location against the point the engine actually used. When originHeading moves the origin onto a road, the origin is measured from that road point rather than the coordinate you sent. If one snaps beyond tolerance the request fails:

{
  "error": {
    "code": "DESTINATION_OUT_OF_COVERAGE",
    "message": "The destination is outside the routable network.",
    "details": {
      "role": "destination",
      "requested": { "lat": 31.7683, "lon": 35.2137 },
      "snapped":   { "lat": 31.9204, "lon": 35.4790 },
      "snapDistanceMeters": 29500,
      "toleranceMeters": 250
    },
    "requestId": "…"
  }
}

Tolerance is resolved per location from the city/country routing configuration — tighter in dense urban areas, looser on rural roads — and is echoed as toleranceMeters so the decision is inspectable.

Set allowOutOfCoverage: true only if you knowingly want the partial route. It then returns normally with snapValidation.withinCoverage: false and a warning, and is never presented as an arrival.


POST /routing/isochrone

Reachability polygons: how far you can travel in N minutes. The minutes are travel minutes on the same scale as a planned route (street speeds, junctions and lights, the mode's pace), so a place inside the 15-minute area is about 15 minutes away by POST /routing/plan. Motor modes leave now with traffic unless payload.date_time sets another departure.

Request body

{ "payload": <raw routing-engine isochrone request> } — locations ({lat, lon}), costing, contours (array of { time: <minutes> } and/or { distance: <km> }, optional color), polygons (bool).

{
  "payload": {
    "locations": [ { "lat": 31.95, "lon": 35.91 } ],
    "costing": "pedestrian",
    "contours": [ { "time": 5 }, { "time": 10 } ],
    "polygons": true
  }
}

Response (201)

data is a GeoJSON FeatureCollection. Geometry coordinates are [lng, lat]; properties.contour is the contour you asked for (minutes for time, km for distance). A top-level timing block, { "basis": "travel_time", "traffic": true }, says the minutes are travel minutes and whether traffic was applied.

{
  "provider": "navvo", "available": true, "path": "isochrone",
  "data": {
    "type": "FeatureCollection",
    "features": [
      { "type": "Feature", "properties": { "contour": 5, "metric": "time", "color": "#ff0000" },
        "geometry": { "type": "Polygon", "coordinates": [ [ [35.90, 31.94], [35.92, 31.94] ] ] } }
    ]
  }
}

POST /routing/map-match

Snap a raw GPS trace to the road network. Proxies the routing engine's trace_route (the envelope path reads "trace_route").

Request body

{ "payload": <raw routing-engine trace_route request> } — either shape (array of {lat, lon, time?}) or encoded_polyline, plus costing and shape_match (map_snap, edge_walk, walk_or_snap).

{
  "payload": {
    "shape": [ { "lat": 31.9501, "lon": 35.9101 }, { "lat": 31.9520, "lon": 35.9145 } ],
    "costing": "auto",
    "shape_match": "map_snap"
  }
}

Response (201)

data.trip is a standard routing-engine trip representing the matched route (legs, maneuvers, encoded shape). Its times are the routing graph's own: to time a matched route with traffic and junctions, send its shape to POST /traffic/route.


POST /routing/route-attributes

Speed limits along the route — per-edge road attributes for a shape. Give it the route's decoded polyline (or any GPS trace) and get back, edge by edge, the legal speed limit, typical driving speed, length, road name, and road class — everything a navigation client needs to display the changing speed limit as the driver progresses.

Request body

FieldTypeNotes
shapearrayrequired — at least 2 { "lat": …, "lon": … } points (max 2000). Use the decoded trip shape from /routing/plan.
costingstringoptional — auto (default), truck, bicycle, pedestrian, motor_scooter
shapeMatchstringoptional — walk_or_snap (default), map_snap, edge_walk
curl -s -X POST "https://navvo.io/api/v1/routing/route-attributes" \
  -H "x-api-key: $NAVVO_API_KEY" -H "content-type: application/json" \
  -d '{ "shape": [ { "lat": 31.9501, "lon": 35.9101 }, { "lat": 31.9520, "lon": 35.9145 } ] }'

Response

{
  "provider": "navvo-routing", "available": true, "costing": "auto", "count": 2,
  "edges": [
    { "speedLimitKph": 60, "typicalSpeedKph": 48, "lengthKm": 0.31, "name": "شارع الملكة رانيا",
      "roadClass": "primary", "beginShapeIndex": 0, "endShapeIndex": 4 },
    { "speedLimitKph": null, "typicalSpeedKph": 35, "lengthKm": 0.12, "name": null,
      "roadClass": "residential", "beginShapeIndex": 4, "endShapeIndex": 7 }
  ]
}
FieldTypeNotes
edges[].speedLimitKphnumber | nullposted legal limit in km/h — null where none is mapped
edges[].typicalSpeedKphnumber | nullthe road's speed without traffic, from the routing graph (traffic on the road now: GET /traffic/tiles)
edges[].lengthKmnumber | nulledge length
edges[].namestring | nullprimary street name
edges[].roadClassstring | nullmotorway, primary, residential, …
edges[].beginShapeIndex / endShapeIndexnumberwhich of your input shape points the edge spans — use them to locate each limit along the route

To show "the limit here is X": track the driver's nearest shape index and pick the covering edge. When the engine is unreachable you get { "provider": "navvo-routing", "available": false }; fewer than 2 valid points returns 400.


Voice instructions & lane guidance

Route maneuvers already carry everything a spoken guidance engine needs — no extra call required. Alongside instruction, each maneuver in /routing/route and /routing/plan responses includes:

FieldSpeak it…
verbal_transition_alert_instructionearly, as the alert ("In 400 meters, turn right onto…")
verbal_pre_transition_instructionjust before the maneuver point
verbal_post_transition_instructionright after ("Continue for 2 kilometers")
verbal_succinct_transition_instructionas the short form when maneuvers come fast

These honour the request's language (and /plan's English road-name localization).

For lane guidance at the approach to an intersection, call GET /junction/lanes?lat=…&lng=… with the upcoming maneuver's coordinate (scope routing):

{ "source": "navvo-lanes", "available": true, "roadName": "شارع غازي عربيات", "laneCount": 2,
  "lanes": [ { "indications": ["left"] }, { "indications": ["through", "right"] } ] }

lanes is ordered left→right; each lane's indications lists its allowed turns (empty when only the lane count is known). available: false means there is no lane data to show — none is mapped there, or the lookup could not be completed this time — so hide the lane bar. Answers are cached server-side (an incomplete lookup only for about a minute, so the next approach asks again), so polling per-maneuver is cheap.


POST /routing/optimize

Optimal stop ordering (TSP-style), using the routing engine's optimized_route. The first and last locations are treated as fixed start/end. For motor modes the order is chosen with the road network's traffic, leaving now unless payload.date_time says otherwise, and the result is timed leg by leg like a planned route. A tour that would cross a national border is refused with 422 BORDER_CROSSING_UNAVAILABLE.

Request body

{ "payload": <raw routing-engine optimized_route request> } — locations ({lat, lon}), costing, directions_options.

{
  "payload": {
    "locations": [
      { "lat": 31.95, "lon": 35.91 },
      { "lat": 31.99, "lon": 35.95 },
      { "lat": 31.97, "lon": 35.88 },
      { "lat": 31.93, "lon": 35.90 }
    ],
    "costing": "auto"
  }
}

Response (201)

data.trip.locations[].original_index maps the optimized order back to your input order; the rest is a standard trip. summary.time, legs[].summary.time and maneuvers[].time are travel times (the routing graph's own stay as static_time), and a top-level travelTime: { "basis": "travel_time" } says so. For many vehicles, capacities and time windows, use POST /optimize/routes.


Summary

EndpointEngine opBodyCoordinatesNavvo extras
POST /routing/routeroute{ payload }{lat, lon}travel times, traffic-aware choice, road signs, border check, AI labels
POST /routing/planautoNavvo RoutePlanDto{lon, lat} objectseverything above, plus avoid checks, ETA, labels, constraints, logistics
POST /routing/matrixsources_to_targets{ origins, destinations, … } or { payload }{lat, lon}travel times with traffic, delay, coverage checks
POST /routing/isochroneisochrone{ payload }{lat, lon}travel-minute contours, traffic
POST /routing/map-matchtrace_route{ payload }{lat, lon}—
POST /routing/route-attributestrace_attributes{ shape, costing?, shapeMatch? }{lat, lon}per-edge speed limits
POST /routing/optimizeoptimized_route{ payload }{lat, lon}traffic-aware order, travel times, border check
Copyright © 2026