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