Calculate a route and simulate navigating on it.
Calculate a route between two given pairs of coordinates then simulate navigation on it.
How to use the sample¶
First, get an API key token, see the Getting Started guide.Download the Maps & Navigation SDK for C++ archive file for Linux or Windows
When you open the sample, you’ll be viewing the scene from above. When the route calculation is completed a simulation will start.
How it works¶
Landmarksin it and a
RoutePreferencesand the progress listener.
Once the route calculation operation completes, add the first calculated route to the
NavigationListener. Instruct the
NavigationServiceto start a simulation using the first route and the newly created listeners.
MapViewto start following the position.