Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Route.
Route information from Google Maps.
Generated from protobuf message google.cloud.aiplatform.v1.GroundingChunk.Maps.Route
Namespace
Google \ Cloud \ AIPlatform \ V1 \ GroundingChunk \ MapsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ distance_meters |
int
The total distance of the route, in meters. |
↳ duration |
Google\Protobuf\Duration
The total duration of the route. |
↳ encoded_polyline |
string
An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm |
getDistanceMeters
The total distance of the route, in meters.
| Returns | |
|---|---|
| Type | Description |
int |
|
setDistanceMeters
The total distance of the route, in meters.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDuration
The total duration of the route.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasDuration
clearDuration
setDuration
The total duration of the route.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEncodedPolyline
An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
| Returns | |
|---|---|
| Type | Description |
string |
|
setEncodedPolyline
An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|