class RouteUtil {

    public static Integer getIcon(final Route route) {
        final RouteOptions.TransportMode transportMode = route.getRoutePlan()
                .getRouteOptions()
                .getTransportMode();
        Integer id = 0;
        switch (transportMode) {
            case CAR:
                id = R.drawable.ic_drive;
                break;
            case TRUCK:
                id = R.drawable.ic_truck_24;
                break;
            case PEDESTRIAN:
                id = R.drawable.ic_walk_24;
                break;
            case BICYCLE:
                id = R.drawable.ic_bike_24;
                break;
            case SCOOTER:
                id = R.drawable.ic_scooter;
                break;
            default:
                break;
        }
        return id;
    }

    private  RouteUtil();

}