Package 

Class RouteLine.Builder

  • All Implemented Interfaces:

    
    public final class RouteLine.Builder
    
                        

    Builder class for creating RouteLine instances

    • 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
      • 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.