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. |
travel |
Optional. Specifies the mode of transportation. |
routing |
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. You can specify this option only when the |
departure |
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 |
route |
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 |