Search in sources :

Example 1 with FTCRRouter

use of com.here.android.mpa.ftcr.FTCRRouter 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();
}
Also used : FTCRRouter(com.here.android.mpa.ftcr.FTCRRouter) CoreRouter(com.here.android.mpa.routing.CoreRouter) GeoCoordinate(com.here.android.mpa.common.GeoCoordinate) FTCRNavigationManager(com.here.android.mpa.ftcr.FTCRNavigationManager) RouteWaypoint(com.here.android.mpa.routing.RouteWaypoint) Map(com.here.android.mpa.mapping.Map)

Aggregations

GeoCoordinate (com.here.android.mpa.common.GeoCoordinate)1 FTCRNavigationManager (com.here.android.mpa.ftcr.FTCRNavigationManager)1 FTCRRouter (com.here.android.mpa.ftcr.FTCRRouter)1 Map (com.here.android.mpa.mapping.Map)1 CoreRouter (com.here.android.mpa.routing.CoreRouter)1 RouteWaypoint (com.here.android.mpa.routing.RouteWaypoint)1