Google Cloud Ai Platform V1 Client - Class Route (1.63.0)

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 \ Maps

Methods

__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

Returns
Type Description
string

setEncodedPolyline

Parameter
Name Description
var string
Returns
Type Description
$this