Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/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) ⇒ GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
constructor
A new instance of GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute
Returns a new instance of GoogleCloudAiplatformV1beta1GroundingChunkMapsRoute.
20529 20530 20531 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20529 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
20516 20517 20518 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20516 def distance_meters @distance_meters end |
#duration ⇒ String
The total duration of the route.
Corresponds to the JSON property duration
20521 20522 20523 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20521 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
20527 20528 20529 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20527 def encoded_polyline @encoded_polyline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20534 20535 20536 20537 20538 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20534 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 |