ComputeRoutesResponse.
| JSON representation |
|---|
{
"routes": [
{
object ( |
| Fields | |
|---|---|
routes[] |
Contains routes between the requested origin and destination, ordered from most recommended to least recommended. Only one route is returned unless |
Route
Details about a route between locations.
| JSON representation |
|---|
{
"distanceMeters": integer,
"duration": string,
"attribution": {
object ( |
| Fields | |
|---|---|
distanceMeters |
The travel distance of the route, in meters. |
duration |
The length of time needed to navigate the route. A duration in seconds with up to nine fractional digits, ending with ' |
attribution |
Required attribution to show with the route. |
encodedPolyline |
An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm |
retrievalToken |
A token that can be used to retrieve this specific route in downstream tools, such as SearchAlongRoute. Valid for 10 minutes. |