Interface RouteWaypoint.Builder

    • Method Detail

      • avoidActionsForDistance

        RouteWaypoint.Builder avoidActionsForDistance​(Long avoidActionsForDistance)

        Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination.

        Parameters:
        avoidActionsForDistance - Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • avoidUTurns

        RouteWaypoint.Builder avoidUTurns​(Boolean avoidUTurns)

        Avoid U-turns for calculation on highways and motorways.

        Parameters:
        avoidUTurns - Avoid U-turns for calculation on highways and motorways.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • heading

        RouteWaypoint.Builder heading​(Double heading)

        GPS Heading at the position.

        Parameters:
        heading - GPS Heading at the position.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • matching

        RouteWaypoint.Builder matching​(RouteMatchingOptions matching)

        Options to configure matching the provided position to the road network.

        Parameters:
        matching - Options to configure matching the provided position to the road network.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • passThrough

        RouteWaypoint.Builder passThrough​(Boolean passThrough)

        If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs.

        Parameters:
        passThrough - If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • position

        RouteWaypoint.Builder position​(Collection<Double> position)

        Position defined as [longitude, latitude].

        Parameters:
        position - Position defined as [longitude, latitude].
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • position

        RouteWaypoint.Builder position​(Double... position)

        Position defined as [longitude, latitude].

        Parameters:
        position - Position defined as [longitude, latitude].
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sideOfStreet

        RouteWaypoint.Builder sideOfStreet​(RouteSideOfStreetOptions sideOfStreet)

        Options to configure matching the provided position to a side of the street.

        Parameters:
        sideOfStreet - Options to configure matching the provided position to a side of the street.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stopDuration

        RouteWaypoint.Builder stopDuration​(Long stopDuration)

        Duration of the stop.

        Unit: seconds

        Parameters:
        stopDuration - Duration of the stop.

        Unit: seconds

        Returns:
        Returns a reference to this object so that method calls can be chained together.