Interface CalculateRoutesResponse.Builder

  • Method Details

    • legGeometryFormat

      CalculateRoutesResponse.Builder legGeometryFormat(String legGeometryFormat)

      Specifies the format of the geometry returned for each leg of the route.

      Parameters:
      legGeometryFormat - Specifies the format of the geometry returned for each leg of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • legGeometryFormat

      CalculateRoutesResponse.Builder legGeometryFormat(GeometryFormat legGeometryFormat)

      Specifies the format of the geometry returned for each leg of the route.

      Parameters:
      legGeometryFormat - Specifies the format of the geometry returned for each leg of the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • notices

      Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      notices - Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notices

      Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      notices - Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notices

      Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      This is a convenience method that creates an instance of the RouteResponseNotice.Builder avoiding the need to create one manually via RouteResponseNotice.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to notices(List<RouteResponseNotice>).

      Parameters:
      notices - a consumer that will call methods on RouteResponseNotice.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pricingBucket

      CalculateRoutesResponse.Builder pricingBucket(String pricingBucket)

      The pricing bucket for which the query is charged at.

      Parameters:
      pricingBucket - The pricing bucket for which the query is charged at.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routes

      The path from the origin to the destination.

      Parameters:
      routes - The path from the origin to the destination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routes

      The path from the origin to the destination.

      Parameters:
      routes - The path from the origin to the destination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • routes

      The path from the origin to the destination.

      This is a convenience method that creates an instance of the Route.Builder avoiding the need to create one manually via Route.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to routes(List<Route>).

      Parameters:
      routes - a consumer that will call methods on Route.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: