Interface CalculateRouteMatrixRequest.Builder

  • Method Details

    • allow

      Features that are allowed while calculating a route.

      Parameters:
      allow - Features that are allowed while calculating a route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allow

      Features that are allowed while calculating a route.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to allow(RouteMatrixAllowOptions).

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

      Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only TollRoads, Ferries, and ControlledAccessHighways.

      Parameters:
      avoid - Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only TollRoads, Ferries, and ControlledAccessHighways.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • avoid

      Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only TollRoads, Ferries, and ControlledAccessHighways.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to avoid(RouteMatrixAvoidanceOptions).

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

      Uses the current time as the time of departure.

      Parameters:
      departNow - Uses the current time as the time of departure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • departureTime

      CalculateRouteMatrixRequest.Builder departureTime(String departureTime)

      Time of departure from the origin.

      Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

      Examples:

      2020-04-22T17:57:24Z

      2020-04-22T17:57:24+02:00

      Parameters:
      departureTime - Time of departure from the origin.

      Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

      Examples:

      2020-04-22T17:57:24Z

      2020-04-22T17:57:24+02:00

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

      List of destinations for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. If you use a large matrix of origins and destinations, your costs will increase accordingly. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of destinations depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 destinations

      • With RoutingBoundary.Unbounded set to true: maximum 100 destinations

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 destinations

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

      Parameters:
      destinations - List of destinations for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. If you use a large matrix of origins and destinations, your costs will increase accordingly. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of destinations depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 destinations

      • With RoutingBoundary.Unbounded set to true: maximum 100 destinations

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 destinations

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

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

      List of destinations for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. If you use a large matrix of origins and destinations, your costs will increase accordingly. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of destinations depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 destinations

      • With RoutingBoundary.Unbounded set to true: maximum 100 destinations

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 destinations

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

      Parameters:
      destinations - List of destinations for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. If you use a large matrix of origins and destinations, your costs will increase accordingly. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of destinations depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 destinations

      • With RoutingBoundary.Unbounded set to true: maximum 100 destinations

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 destinations

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

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

      List of destinations for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. If you use a large matrix of origins and destinations, your costs will increase accordingly. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of destinations depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 destinations

      • With RoutingBoundary.Unbounded set to true: maximum 100 destinations

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 destinations

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

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

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

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

      Features to be strictly excluded while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      exclude - Features to be strictly excluded while calculating the route. 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.
    • exclude

      Features to be strictly excluded while calculating the route. 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 RouteMatrixExclusionOptions.Builder avoiding the need to create one manually via RouteMatrixExclusionOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to exclude(RouteMatrixExclusionOptions).

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

      Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

      Parameters:
      key - Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • optimizeRoutingFor

      CalculateRouteMatrixRequest.Builder optimizeRoutingFor(String optimizeRoutingFor)

      Controls the trade-off between finding the shortest travel time (FastestRoute) and the shortest distance (ShortestRoute) when calculating reachable areas.

      Default value: FastestRoute

      Parameters:
      optimizeRoutingFor - Controls the trade-off between finding the shortest travel time (FastestRoute) and the shortest distance (ShortestRoute) when calculating reachable areas.

      Default value: FastestRoute

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

      CalculateRouteMatrixRequest.Builder optimizeRoutingFor(RoutingObjective optimizeRoutingFor)

      Controls the trade-off between finding the shortest travel time (FastestRoute) and the shortest distance (ShortestRoute) when calculating reachable areas.

      Default value: FastestRoute

      Parameters:
      optimizeRoutingFor - Controls the trade-off between finding the shortest travel time (FastestRoute) and the shortest distance (ShortestRoute) when calculating reachable areas.

      Default value: FastestRoute

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

      List of origins for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. Using a large amount of Origins in a request can lead you to incur unexpected charges. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of origins depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 origins

      • With RoutingBoundary.Unbounded set to true: maximum 15 origins

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 origins

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

      Parameters:
      origins - List of origins for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. Using a large amount of Origins in a request can lead you to incur unexpected charges. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of origins depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 origins

      • With RoutingBoundary.Unbounded set to true: maximum 15 origins

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 origins

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

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

      List of origins for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. Using a large amount of Origins in a request can lead you to incur unexpected charges. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of origins depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 origins

      • With RoutingBoundary.Unbounded set to true: maximum 15 origins

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 origins

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

      Parameters:
      origins - List of origins for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. Using a large amount of Origins in a request can lead you to incur unexpected charges. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of origins depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 origins

      • With RoutingBoundary.Unbounded set to true: maximum 15 origins

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 origins

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

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

      List of origins for the route in World Geodetic System (WGS 84) format: [longitude, latitude].

      Route calculations are billed for each origin and destination pair. Using a large amount of Origins in a request can lead you to incur unexpected charges. For more information, see Routes pricing in the Amazon Location Service Developer Guide.

      The maximum number of origins depends on the routing boundary configuration:

      • With RoutingBoundary.Geometry set: maximum 500 origins

      • With RoutingBoundary.Unbounded set to true: maximum 15 origins

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: maximum 350 origins

      The total matrix size (origins × destinations) must not exceed:

      • With RoutingBoundary.Geometry: 160,000

      • With RoutingBoundary.Unbounded: 100

      • For GrabMaps customers in ap-southeast-1 and ap-southeast-5: 122,500

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

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

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

      CalculateRouteMatrixRequest.Builder routingBoundary(RouteMatrixBoundary routingBoundary)

      Boundary within which the matrix is to be calculated. All data, origins and destinations outside the boundary are considered invalid. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Unbounded set to true.

      Default value: Unbounded set to true

      When AutoCircle is set in the request, the response routing boundary will return Circle derived from the AutoCircle settings.

      Parameters:
      routingBoundary - Boundary within which the matrix is to be calculated. All data, origins and destinations outside the boundary are considered invalid. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Unbounded set to true.

      Default value: Unbounded set to true

      When AutoCircle is set in the request, the response routing boundary will return Circle derived from the AutoCircle settings.

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

      default CalculateRouteMatrixRequest.Builder routingBoundary(Consumer<RouteMatrixBoundary.Builder> routingBoundary)

      Boundary within which the matrix is to be calculated. All data, origins and destinations outside the boundary are considered invalid. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Unbounded set to true.

      Default value: Unbounded set to true

      When AutoCircle is set in the request, the response routing boundary will return Circle derived from the AutoCircle settings.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to routingBoundary(RouteMatrixBoundary).

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

      Traffic related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      traffic - Traffic related options. 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.
    • traffic

      Traffic related options. 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 RouteMatrixTrafficOptions.Builder avoiding the need to create one manually via RouteMatrixTrafficOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to traffic(RouteMatrixTrafficOptions).

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

      Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car, Pedestrian, and Scooter.

      Default value: Car

      Parameters:
      travelMode - Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car, Pedestrian, and Scooter.

      Default value: Car

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

      Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car, Pedestrian, and Scooter.

      Default value: Car

      Parameters:
      travelMode - Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car, Pedestrian, and Scooter.

      Default value: Car

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

      Travel mode related options for the provided travel mode. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      travelModeOptions - Travel mode related options for the provided travel mode. 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.
    • travelModeOptions

      Travel mode related options for the provided travel mode. 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 RouteMatrixTravelModeOptions.Builder avoiding the need to create one manually via RouteMatrixTravelModeOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to travelModeOptions(RouteMatrixTravelModeOptions).

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

      CalculateRouteMatrixRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.