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();
}
}
Aggregations