OptimizedRouteResponse
Total route distance in metres.
18450Estimated travel time in seconds (no traffic adjustment).
1380Traffic-adjusted ETA in seconds.
1620Human-readable traffic condition label, e.g. morning rush.
morning rushstops object[]
Stops in optimized visit order. Each entry's original_index maps back
to the corresponding entry in the request stops array.
Index of this stop in the input stops array. Use this to map the
optimized ordering back to your own stop data.
2Full route geometry as [lng, lat] pairs.
Possible values: >= 2, <= 2
steps object[]
Turn-by-turn steps (only present when narration is set in the request).
Standard turn instruction.
Turn right onto Ring Road Central.Early warning voice prompt (~500 m before the maneuver), suitable for TTS.
In 500 metres, turn right onto Ring Road Central.Pre-built voice prompt suitable for TTS, delivered before the maneuver.
In 300 metres, turn right onto Ring Road Central.Confirmation voice prompt after the maneuver, suitable for TTS.
Continue for 2 kilometres.Landmark-enriched instruction (present when narration=landmark or both).
Turn right at Accra Mall onto Ring Road Central.How well-documented the referenced landmark is — not how sure the narration match itself is. Only present alongside instruction_landmark. Don't present instruction_landmark as certain when this is low.
Possible values: >= 0 and <= 1
0.78Runner-up landmark names close enough to the chosen one to plausibly be confused with it. Empty/absent when there was no real ambiguity. Report a wrong match with POST /v2/landmarks/{slug}/report.
["TotalEnergies Station"]Street or road name for this step.
Ring Road CentralName of the nearest landmark to the maneuver point (within 150m).
Accra MallDistance of this step in metres.
320.5Estimated duration of this step in seconds.
45.2Effective traffic multiplier applied to this step's duration (learned from real trips where published, else the static Accra time-of-day table) for the active time bucket.
1.7Congestion label for UI route-line tinting.
Possible values: [free_flow, light, moderate, heavy, severe]
heavyHex color the client should tint this step's polyline.
#ef6c00Polyline of this step as [lng, lat] pairs.
Possible values: >= 2, <= 2
[[-0.1867,5.604],[-0.185,5.605]]Dominant road surface of this step ("paved" or "unpaved"); omitted when unknown.
Possible values: [paved, unpaved]
pavedHex color the client should tint this step's polyline based on surface.
#8d6e63Heading (degrees from true north) arriving into the maneuver.
35Heading (degrees from true north) leaving the maneuver.
125Signed heading change at the maneuver, in degrees within (-180, 180]; positive = right, negative = left.
-90Coarse sharpness of the maneuver.
Possible values: [straight, slight, turn, sharp, uturn]
turnlanes object[]
Lane-level guidance for this maneuver ("keep left of 3 lanes"). Only present when the road graph carries turn:lanes data at the junction; most Ghana roads don't yet, so it is usually omitted.
Movements this lane permits ("left", "straight", "right", "slight right", ...).
["left","straight"]True for the recommended lane to follow for this maneuver.
trueTrue for lanes usable at the start of the maneuver; may require a later lane change.
false{
"distance_m": 18450,
"duration_s": 1380,
"eta_s": 1620,
"traffic_note": "morning rush",
"has_toll": true,
"has_ferry": true,
"has_highway": true,
"stops": [
{
"original_index": 2
}
],
"coordinates": [
0
],
"steps": [
{
"instruction": "Turn right onto Ring Road Central.",
"verbal_alert": "In 500 metres, turn right onto Ring Road Central.",
"verbal_instruction": "In 300 metres, turn right onto Ring Road Central.",
"verbal_post": "Continue for 2 kilometres.",
"instruction_landmark": "Turn right at Accra Mall onto Ring Road Central.",
"landmark_confidence": 0.78,
"alternate_landmarks": [
"TotalEnergies Station"
],
"name": "Ring Road Central",
"near_landmark": "Accra Mall",
"distance_m": 320.5,
"duration_s": 45.2,
"traffic_factor": 1.7,
"traffic_severity": "heavy",
"traffic_color": "#ef6c00",
"coordinates": [
[
-0.1867,
5.604
],
[
-0.185,
5.605
]
],
"surface": "paved",
"surface_color": "#8d6e63",
"bearing_before": 35,
"bearing_after": 125,
"turn_angle": -90,
"turn_class": "turn",
"lanes": [
{
"indications": [
"straight"
],
"active": false,
"valid": false
},
{
"indications": [
"slight right"
],
"active": true,
"valid": false
}
]
}
]
}