Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsRoute
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingChunkMapsRoute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Route information from Google Maps.
Instance Attribute Summary collapse
-
#distance_meters ⇒ Fixnum
The total distance of the route, in meters.
-
#duration ⇒ String
The total duration of the route.
-
#encoded_polyline ⇒ String
An encoded polyline of the route.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingChunkMapsRoute
constructor
A new instance of GoogleCloudAiplatformV1GroundingChunkMapsRoute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingChunkMapsRoute
Returns a new instance of GoogleCloudAiplatformV1GroundingChunkMapsRoute.
17428 17429 17430 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distance_meters ⇒ Fixnum
The total distance of the route, in meters.
Corresponds to the JSON property distanceMeters
17415 17416 17417 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17415 def distance_meters @distance_meters end |
#duration ⇒ String
The total duration of the route.
Corresponds to the JSON property duration
17420 17421 17422 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17420 def duration @duration end |
#encoded_polyline ⇒ String
An encoded polyline of the route. See https://developers.google.com/maps/
documentation/utilities/polylinealgorithm
Corresponds to the JSON property encodedPolyline
17426 17427 17428 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17426 def encoded_polyline @encoded_polyline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17433 17434 17435 17436 17437 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17433 def update!(**args) @distance_meters = args[:distance_meters] if args.key?(:distance_meters) @duration = args[:duration] if args.key?(:duration) @encoded_polyline = args[:encoded_polyline] if args.key?(:encoded_polyline) end |