Skip to main content

Display route instructions

Last updated: June 10, 2026 | 1 minute read

Learn how to focus the map on route instructions and show maneuver arrows during route visualization.

Center on route instructions​

Get instructions from route segments, then center on the desired instruction. A simplified example is shown below. For more details on obtaining a route's instructions see the Get the route segments and instructions section.

if let firstSegment = route.getSegments().first {
if let instruction = firstSegment.getInstructions().first {
mapViewController.center(onRouteInstruction: instruction, zoomLevel: 75, animationDuration: 700)
}
}

Remove instruction​

The route instruction arrow is automatically cleared when a new route instruction is centered on or when the route is cleared. If you want to clear the instruction manually, center on an empty instruction object, like this:

mapViewController.center(onRouteInstruction: RouteInstructionObject.init(), zoomLevel: -1, animationDuration: 0)