Calculate Route Multi View¶
Calculate two routes and add them in two separate views.

Use case¶
Calculate routes and display them in separate views.
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 WindowsWhen you open the sample, you’ll be viewing the scene from above. The screen will be split into two identical views. From each view a fly will be performed to a different calculated route.
How it works¶
Create two
MapViewListener
objects, oneOpenGLContext
, one Screen and twoMapView
objects.Create a
RouteList
, aLandmarkList
with twoLandmarks
in it and aRoutePreferences
object.Call the
RoutingService
usingRouteList
,LandmarkList
,RoutePreferences
and the progress listener.Perform steps 2 and 3 for the 2nd
MapView
.Once the route calculation operations complete, add the first calculated route of each collection to their correspoding view
MapViewPreferences
routes collection.Instruct both the
MapView
objects to center on the first route.