public final class RouteUtil
extends java.lang.Object
Route attributes.| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getArrivalTime(android.content.Context context,
com.here.android.mpa.routing.Route route,
boolean isTraffic)
Gets the arrival time of the associated
Route with or without traffic. |
static android.text.Spannable |
getDetails(android.content.Context context,
com.here.android.mpa.routing.Route route,
UnitSystem unitSystem)
Gets different details of the associated
Route like via and others. |
static java.lang.Integer |
getIcon(com.here.android.mpa.routing.Route route)
Gets the
RouteOptions.TransportMode icon of the associated Route. |
static java.lang.String |
getLongestRoadSegments(com.here.android.mpa.routing.Route route)
Gets the longest road segments of the associated
Route. |
static java.lang.String |
getRouteLength(android.content.Context context,
com.here.android.mpa.routing.Route route,
UnitSystem unitSystem)
Gets the total length of the associated
Route as formatted string. |
static java.util.List<SectionModel> |
getSectionBar(android.content.Context context,
com.here.android.mpa.routing.Route route)
Gets a list of
SectionModel elements of the associated Route. |
static android.text.Spannable |
getTimeToArrive(android.content.Context context,
com.here.android.mpa.routing.Route route,
boolean isTraffic)
Gets the estimated remaining time to arrive at the destination with or without traffic.
|
static android.text.Spannable |
getTrafficDelayed(android.content.Context context,
com.here.android.mpa.routing.Route route)
Gets the traffic delay text of the associated
Route. |
public static java.lang.String getLongestRoadSegments(com.here.android.mpa.routing.Route route)
Route.route - a Route instance.RoadElement.public static android.text.Spannable getTrafficDelayed(android.content.Context context,
com.here.android.mpa.routing.Route route)
Route.context - the required Context.route - a Route instance.Spannable containing the traffic delay.public static java.lang.String getArrivalTime(android.content.Context context,
com.here.android.mpa.routing.Route route,
boolean isTraffic)
Route with or without traffic.context - the required Context.route - a Route instance.isTraffic - true if traffic situation should be included, false otherwise.public static java.lang.String getRouteLength(android.content.Context context,
com.here.android.mpa.routing.Route route,
UnitSystem unitSystem)
Route as formatted string.context - the required Context.route - a Route instance.unitSystem - unit system UnitSystem.public static android.text.Spannable getDetails(android.content.Context context,
com.here.android.mpa.routing.Route route,
UnitSystem unitSystem)
Route like via and others.context - the required Context.route - a Route instance.unitSystem - unit system UnitSystem.Spannable containing the details.public static android.text.Spannable getTimeToArrive(android.content.Context context,
com.here.android.mpa.routing.Route route,
boolean isTraffic)
context - the required Context.route - a Route instance.isTraffic - true if traffic situation should be included, false otherwise.Spannable containing the remaining time to arrive in the format:
days-hours-minutes.public static java.lang.Integer getIcon(com.here.android.mpa.routing.Route route)
RouteOptions.TransportMode icon of the associated Route.route - a Route instance.public static java.util.List<SectionModel> getSectionBar(android.content.Context context, com.here.android.mpa.routing.Route route)
SectionModel elements of the associated Route.context - the required Context.route - a Route instance.SectionModel elements.