class RouteUtil {

    public static Spannable getDetails(final Context context, final Route route,
                                       final UnitSystem unitSystem) {
        final RouteOptions.TransportMode transportMode = route.getRoutePlan()
                .getRouteOptions()
                .getTransportMode();
        final SpannableStringBuilder builder =
                new SpannableStringBuilder(getRouteLength(context, route, unitSystem));
        if (transportMode == RouteOptions.TransportMode.PUBLIC_TRANSPORT) {
            return new SpannableStringBuilder(); // empty
        } else {
            addVia(context, route, builder);
        }
        return builder;
    }

    private  RouteUtil();

}