Interface RouteTransitTravelStep.Builder

  • Method Details

    • distance

      Distance of the step.

      Unit: meters

      Parameters:
      distance - Distance of the step.

      Unit: meters

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

      Duration of the step.

      Unit: seconds

      Parameters:
      duration - Duration of the step.

      Unit: seconds

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

      RouteTransitTravelStep.Builder geometryOffset(Integer geometryOffset)

      Offset in the leg geometry corresponding to the start of this step.

      Parameters:
      geometryOffset - Offset in the leg geometry corresponding to the start of this step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instruction

      RouteTransitTravelStep.Builder instruction(String instruction)

      Brief description of the step in the requested language.

      Parameters:
      instruction - Brief description of the step in the requested language.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      Type of the step.

      Parameters:
      type - Type of the step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Type of the step.

      Parameters:
      type - Type of the step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: