Interface LegGeometry.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LegGeometry.Builder,LegGeometry>, SdkBuilder<LegGeometry.Builder,LegGeometry>, SdkPojo
Enclosing class:
LegGeometry

public static interface LegGeometry.Builder extends SdkPojo, CopyableBuilder<LegGeometry.Builder,LegGeometry>
  • Method Details

    • lineString

      LegGeometry.Builder lineString(Collection<? extends Collection<Double>> lineString)

      An ordered list of positions used to plot a route on a map.

      The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

      • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

      Parameters:
      lineString - An ordered list of positions used to plot a route on a map.

      The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

      • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

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

      LegGeometry.Builder lineString(Collection<Double>... lineString)

      An ordered list of positions used to plot a route on a map.

      The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

      • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

      Parameters:
      lineString - An ordered list of positions used to plot a route on a map.

      The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

      • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

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