Road Block
- UIKit
This example demonstrates how to use GEMKit in a UIKit application to set a road block ahead of the simulated position during navigation, forcing the engine to recalculate around the blocked segment.
Check the full implementation on GitHub.

UI and Map Integration
A Road Block button is added to the left side of the navigation bar and is enabled only once a simulation is active:
Adding a Road Block During Navigation
When the button is tapped while navigation or simulation is active, a 100-metre road block is inserted starting from the current position. The engine immediately reroutes:
Navigation Panel
The NavigationViewController used in this example is a full-featured turn-by-turn panel displaying turn images, distance, lane guidance, traffic events, signpost overlays, and safety alerts. Due to its size it is not reproduced here — check the full implementation on GitHub.