Search in sources :

Example 1 with CombinedRoute

use of com.here.android.mpa.venues3d.CombinedRoute in project here-android-sdk-examples by heremaps.

the class BasicVenueActivity method onCombinedRouteCompleted.

@Override
public void onCombinedRouteCompleted(CombinedRoute route) {
    Log.v(TAG, "onCombinedRouteCompleted");
    CombinedRoute.VenueRoutingError error = route.getError();
    if (error == CombinedRoute.VenueRoutingError.NO_ERROR) {
        if (mVenueMapFragment != null) {
            VenueController selectedVenueController = mVenueMapFragment.getVenueController(mSelectedVenue);
            if (selectedVenueController != null && mRoutingController != null) {
                Log.i(TAG, "onCombinedRouteCompleted route found");
                Toast.makeText(BasicVenueActivity.this, "Route found", Toast.LENGTH_SHORT).show();
                // Use RoutingController to show route
                mRoutingController.showRoute(route);
                mRouteShown = true;
            }
        }
    } else {
        Toast.makeText(BasicVenueActivity.this, "No route found", Toast.LENGTH_SHORT).show();
    }
}
Also used : VenueController(com.here.android.mpa.venues3d.VenueController) CombinedRoute(com.here.android.mpa.venues3d.CombinedRoute)

Aggregations

CombinedRoute (com.here.android.mpa.venues3d.CombinedRoute)1 VenueController (com.here.android.mpa.venues3d.VenueController)1