-
- All Implemented Interfaces:
public final class RouteLineA data structure that combines a Route with its rendering options. Use the Builder pattern to create instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRouteLine.BuilderBuilder class for creating RouteLine instances
public classRouteLine.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Routerouteprivate final BooleanstyleWithTrafficprivate final RouteEdgeIndexunreachableEdgeIndexprivate final RouteEdgeIndexfirstRouteEdgeprivate final BooleandistinguishRouteLegColors
-
Method Summary
Modifier and Type Method Description final RoutegetRoute()The route to be added to the map. final BooleangetStyleWithTraffic()Denote whether or not to use traffic information to style the route accordingly. final RouteEdgeIndexgetUnreachableEdgeIndex()Mark the index that describes the point on the route which the destination will be unreachable NOTE: Out of range meaning the vehicle is out of fuel/electricity final RouteEdgeIndexgetFirstRouteEdge()Indicates the first edge index of the route. final BooleangetDistinguishRouteLegColors()True to enable waypoint-based route coloring; false to use the default single-color rendering. -
-
Method Detail
-
getStyleWithTraffic
final Boolean getStyleWithTraffic()
Denote whether or not to use traffic information to style the route accordingly. Default is true
-
getUnreachableEdgeIndex
final RouteEdgeIndex getUnreachableEdgeIndex()
Mark the index that describes the point on the route which the destination will be unreachable NOTE: Out of range meaning the vehicle is out of fuel/electricity
-
getFirstRouteEdge
final RouteEdgeIndex getFirstRouteEdge()
Indicates the first edge index of the route. If set this value, the edge before first edge will be drawn as trace style
-
getDistinguishRouteLegColors
final Boolean getDistinguishRouteLegColors()
True to enable waypoint-based route coloring; false to use the default single-color rendering. Default is false.
-
-
-
-