Interface Step.Builder

    • Method Detail

      • startPosition

        Step.Builder startPosition​(Collection<Double> startPosition)

        The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.

        Parameters:
        startPosition - The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startPosition

        Step.Builder startPosition​(Double... startPosition)

        The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.

        Parameters:
        startPosition - The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endPosition

        Step.Builder endPosition​(Collection<Double> endPosition)

        The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.

        Parameters:
        endPosition - The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endPosition

        Step.Builder endPosition​(Double... endPosition)

        The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.

        Parameters:
        endPosition - The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • distance

        Step.Builder distance​(Double distance)

        The travel distance between the step's StartPosition and EndPosition.

        Parameters:
        distance - The travel distance between the step's StartPosition and EndPosition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationSeconds

        Step.Builder durationSeconds​(Double durationSeconds)

        The estimated travel time, in seconds, from the step's StartPosition to the EndPosition. . The travel mode and departure time that you specify in the request determines the calculated time.

        Parameters:
        durationSeconds - The estimated travel time, in seconds, from the step's StartPosition to the EndPosition. . The travel mode and departure time that you specify in the request determines the calculated time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • geometryOffset

        Step.Builder geometryOffset​(Integer geometryOffset)

        Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For example, the index of the first step in a leg geometry is 0.

        Included in the response for queries that set IncludeLegGeometry to True.

        Parameters:
        geometryOffset - Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For example, the index of the first step in a leg geometry is 0.

        Included in the response for queries that set IncludeLegGeometry to True.

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