Skip to main content

Turn-by-Turn Navigation

Request steps=true and every entry in legs[].steps[] is one maneuver plus a stretch of straight-line driving. Use them to build navigation lists, voice prompts, or per-segment highlighting.

Getting the steps

step-example.json

Step fields

Generating navigation instructions

New maneuver.type values may be added over time — treat unknown types as turn, the modifier is always valid. This is OSRM’s backward-compatibility contract.