CalculateRouteMatrixRequest
¶
Source code in docs_src/capo_geo_routes/types/calculate_route_matrix_request.py
allow
instance-attribute
¶
allow: NotRequired[RouteMatrixAllowOptions]
Features that are allowed while calculating a route.
avoid
instance-attribute
¶
avoid: NotRequired[RouteMatrixAvoidanceOptions]
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.
depart_now
instance-attribute
¶
depart_now: NotRequired[SensitiveBoolean]
Uses the current time as the time of departure.
departure_time
instance-attribute
¶
departure_time: NotRequired[TimestampWithTimezoneOffset]
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
destinations
instance-attribute
¶
destinations: RouteMatrixDestinationList
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.Geometryset: maximum 500 destinations -
With
RoutingBoundary.Unboundedset totrue: maximum 100 destinations -
For GrabMaps customers in
ap-southeast-1andap-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-1andap-southeast-5: 122,500
exclude
instance-attribute
¶
exclude: NotRequired[RouteMatrixExclusionOptions]
Features to be strictly excluded while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
key
instance-attribute
¶
key: NotRequired[ApiKey]
Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
optimize_routing_for
instance-attribute
¶
optimize_routing_for: NotRequired[RoutingObjective]
Controls the trade-off between finding the shortest travel time (FastestRoute) and the shortest distance (ShortestRoute) when calculating reachable areas.
Default value: FastestRoute
origins
instance-attribute
¶
origins: RouteMatrixOriginList
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.Geometryset: maximum 500 origins -
With
RoutingBoundary.Unboundedset totrue: maximum 15 origins -
For GrabMaps customers in
ap-southeast-1andap-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-1andap-southeast-5: 122,500
routing_boundary
instance-attribute
¶
routing_boundary: NotRequired[RouteMatrixBoundary]
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.
traffic
instance-attribute
¶
traffic: NotRequired[RouteMatrixTrafficOptions]
Traffic related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
travel_mode
instance-attribute
¶
travel_mode: NotRequired[RouteMatrixTravelMode]
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
travel_mode_options
instance-attribute
¶
travel_mode_options: NotRequired[RouteMatrixTravelModeOptions]
Travel mode related options for the provided travel mode. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.