Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Polyline
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1Polyline
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
A route polyline. Only supports an encoded polyline, which can be passed as a string and includes compression with minimal lossiness. This is the Routes API default output.
Instance Attribute Summary collapse
-
#encoded_polyline ⇒ String
An encoded polyline, as returned by the Routes API by default.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1Polyline
constructor
A new instance of GoogleMapsPlacesV1Polyline.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1Polyline
Returns a new instance of GoogleMapsPlacesV1Polyline.
2259 2260 2261 |
# File 'lib/google/apis/places_v1/classes.rb', line 2259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encoded_polyline ⇒ String
An encoded polyline, as returned by the Routes API by default. See the encoder and decoder tools.
Corresponds to the JSON property encodedPolyline
2257 2258 2259 |
# File 'lib/google/apis/places_v1/classes.rb', line 2257 def encoded_polyline @encoded_polyline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2264 2265 2266 |
# File 'lib/google/apis/places_v1/classes.rb', line 2264 def update!(**args) @encoded_polyline = args[:encoded_polyline] if args.key?(:encoded_polyline) end |