v1alpha.computeRouteMatrix request message
JSON representation |
---|
{ "origins": [ { object ( |
Fields | |
---|---|
origins[] |
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations:
|
destinations[] |
Required. Array of destinations, which determines the columns of the response matrix. |
travelMode |
Optional. Specifies the mode of transportation. |
routingPreference |
Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, an error is returned. In the future, we might implement a fallback mechanism to use a different option when the preferred option does not give a valid result. You can specify this option only when the |
departureTime |
Optional. The departure time. If you don't set this value, this defaults to the time that you made the request. If you set this value to a time that has already occurred, the request fails. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
RouteMatrixOrigin
A single origin for ComputeRouteMatrixRequest
JSON representation |
---|
{ "waypoint": { object ( |
Fields | |
---|---|
waypoint |
Required. Origin waypoint |
routeModifiers |
Optional. Modifiers for every route that takes this as the origin |
RouteMatrixDestination
A single destination for ComputeRouteMatrixRequest
JSON representation |
---|
{
"waypoint": {
object ( |
Fields | |
---|---|
waypoint |
Required. Destination waypoint |