Interface WaypointOptimizationConnection.Builder

    • Method Detail

      • distance

        WaypointOptimizationConnection.Builder distance​(Long distance)

        Distance of the step.

        Parameters:
        distance - Distance of the step.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • from

        WaypointOptimizationConnection.Builder from​(String from)

        contains the ID of the starting waypoint in this connection.

        Parameters:
        from - contains the ID of the starting waypoint in this connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • restDuration

        WaypointOptimizationConnection.Builder restDuration​(Long restDuration)

        Resting time before the driver can continue driving.

        Parameters:
        restDuration - Resting time before the driver can continue driving.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • to

        WaypointOptimizationConnection.Builder to​(String to)

        Contains the ID of the ending waypoint in this connection.

        Parameters:
        to - Contains the ID of the ending waypoint in this connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • travelDuration

        WaypointOptimizationConnection.Builder travelDuration​(Long travelDuration)

        Total duration.

        Unit: seconds

        Parameters:
        travelDuration - Total duration.

        Unit: seconds

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

        WaypointOptimizationConnection.Builder waitDuration​(Long waitDuration)

        Duration of a wait step.

        Unit: seconds

        Parameters:
        waitDuration - Duration of a wait step.

        Unit: seconds

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