use of com.here.android.mpa.ftcr.FTCRNavigationManager in project here-android-sdk-examples by heremaps.
the class NavigationController method onEgineInited.
private void onEgineInited() {
map = new Map();
mapView.setMap(map);
ftcrRouter = new FTCRRouter();
ftcrNavigationManager = new FTCRNavigationManager();
defeultCoreRouter = new CoreRouter();
defaultNavigationManager = NavigationManager.getInstance();
createRerouteListener();
createdefaultNavEventListener();
// Use STOP waypoint type in originalWaypointList.
// Stopover is waypoint that must be visited, it is used in SDK calbacks and during voice guidance.
// Via waypoint is only used in initial route calculation, during recalculation all via point will be removed.
originalWaypointList = Collections.unmodifiableList(Arrays.asList(new RouteWaypoint(new GeoCoordinate(52.516224, 13.376820), Type.STOP_WAYPOINT), new RouteWaypoint(new GeoCoordinate(52.513934, 13.382110), Type.STOP_WAYPOINT), new RouteWaypoint(new GeoCoordinate(52.512247, 13.391867), Type.STOP_WAYPOINT)));
buildRouteOptions();
calculateFTCRRoute(originalWaypointList);
showWaypointsOnMap();
}
Aggregations