Interface RouteMatrixEntry.Builder

  • Method Details

    • distance

      RouteMatrixEntry.Builder distance(Long distance)

      The total distance of travel for the route.

      Parameters:
      distance - The total distance of travel for the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • duration

      RouteMatrixEntry.Builder duration(Long duration)

      The expected duration of travel for the route.

      Unit: seconds

      Parameters:
      duration - The expected duration of travel for the route.

      Unit: seconds

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

      Error code that occurred during calculation of the route.

      Parameters:
      error - Error code that occurred during calculation of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • error

      Error code that occurred during calculation of the route.

      Parameters:
      error - Error code that occurred during calculation of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: