RouteResponse
Advisory notes about the computed route. Currently emitted when
avoid_flood_zones is set but an endpoint lies inside a
flood-prone zone — that zone cannot be excluded (the route must
enter it), so it is skipped and named here instead.
["a route endpoint is inside the flood-prone zone \"Kaneshie First Light / Graphic Road\" — that zone cannot be avoided"]Total route distance in metres.
4250Raw Valhalla duration in seconds (no traffic adjustment).
780Traffic-adjusted ETA in seconds using Ghana time-of-day multipliers.
936Human-readable label for the traffic condition applied.
morning rushTrue if the route passes through any toll roads.
falseTrue if the route includes a ferry crossing (e.g. Volta Lake).
falseTrue if the route uses any motorway/highway segments.
trueRoute polyline as [lng, lat] pairs.
Possible values: >= 2, <= 2
[[-0.1867,5.604],[-0.185,5.605]]steps object[]
Standard turn instruction.
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.Landmark-enriched instruction (present when narration=landmark or both).
Turn right at Accra Mall onto Ring Road Central.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.2landmarks_passed object[]
Significant landmarks along the route (present when narration=landmark or both).
accra-mallAccra MallPossible values: [left, right]
rightStep index where this landmark is passed.
2alternatives object[]
Up to 2 alternative routes (no step details).
48009001080Possible values: >= 2, <= 2
{
"warnings": [
"a route endpoint is inside the flood-prone zone \"Kaneshie First Light / Graphic Road\" — that zone cannot be avoided"
],
"distance_m": 4250,
"duration_s": 780,
"eta_s": 936,
"traffic_note": "morning rush",
"has_toll": false,
"has_ferry": false,
"has_highway": true,
"coordinates": [
[
-0.1867,
5.604
],
[
-0.185,
5.605
]
],
"steps": [
{
"instruction": "Turn right onto Ring Road Central.",
"verbal_instruction": "In 300 metres, turn right onto Ring Road Central.",
"instruction_landmark": "Turn right at Accra Mall onto Ring Road Central.",
"name": "Ring Road Central",
"near_landmark": "Accra Mall",
"distance_m": 320.5,
"duration_s": 45.2
}
],
"landmarks_passed": [
{
"slug": "accra-mall",
"name": "Accra Mall",
"side": "right",
"at_step": 2
}
],
"alternatives": [
{
"distance_m": 4800,
"duration_s": 900,
"eta_s": 1080,
"coordinates": [
0
]
}
]
}