-
- All Implemented Interfaces:
public final class RouteLine.BuilderBuilder class for creating RouteLine instances
-
-
Constructor Summary
Constructors Constructor Description RouteLine.Builder(Route route)
-
Method Summary
Modifier and Type Method Description final RouteLine.BuilderstyleWithTraffic(Boolean styleWithTraffic)Set whether to use traffic information to style the route accordingly. final RouteLine.BuilderunreachableEdgeIndex(RouteEdgeIndex unreachableEdgeIndex)Set the index that describes the point on the route which the destination will be unreachable. final RouteLine.BuildercurrentRouteEdgeIndex(RouteEdgeIndex routeEdgeIndex)Set the current edge index of the route. final RouteLine.BuilderdistinguishRouteLegColors(Boolean enable)Enable or disable waypoint-based route coloring. final RouteLinebuild()Build the RouteLine instance -
-
Constructor Detail
-
RouteLine.Builder
RouteLine.Builder(Route route)
-
-
Method Detail
-
styleWithTraffic
final RouteLine.Builder styleWithTraffic(Boolean styleWithTraffic)
Set whether to use traffic information to style the route accordingly.
- Parameters:
styleWithTraffic- true to style with traffic, false otherwise.
-
unreachableEdgeIndex
final RouteLine.Builder unreachableEdgeIndex(RouteEdgeIndex unreachableEdgeIndex)
Set the index that describes the point on the route which the destination will be unreachable.
- Parameters:
unreachableEdgeIndex- the edge index, or null if not applicable
-
currentRouteEdgeIndex
final RouteLine.Builder currentRouteEdgeIndex(RouteEdgeIndex routeEdgeIndex)
Set the current edge index of the route.
- Parameters:
routeEdgeIndex- the first leg, step, edge index, or null if not applicable
-
distinguishRouteLegColors
final RouteLine.Builder distinguishRouteLegColors(Boolean enable)
Enable or disable waypoint-based route coloring.
When enabled, the SDK applies two different color schemes to the route:
Color scheme A is applied to the portion of the route that lies before the next waypoint, where the “next” waypoint is determined relative to the current vehicle position as indicated by currentRouteEdgeIndex)
Color scheme B is used for the portion after the waypoint.
HMI must configure color scheme B in the atlas Resource (TSS) before enabling this feature. After the vehicle passes a waypoint, HMI must call the refresh API to update the route rendering with the correct color scheme.
- Parameters:
enable- true to enable waypoint-based route coloring; false to use the default single-color rendering.
-
-
-
-