Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Polyline

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1Polyline

Returns a new instance of GoogleMapsPlacesV1Polyline.



1959
1960
1961
# File 'lib/google/apis/places_v1/classes.rb', line 1959

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#encoded_polylineString

An encoded polyline, as returned by the Routes API by default. See the encoder and decoder tools. Corresponds to the JSON property encodedPolyline

Returns:

  • (String)


1957
1958
1959
# File 'lib/google/apis/places_v1/classes.rb', line 1957

def encoded_polyline
  @encoded_polyline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1964
1965
1966
# File 'lib/google/apis/places_v1/classes.rb', line 1964

def update!(**args)
  @encoded_polyline = args[:encoded_polyline] if args.key?(:encoded_polyline)
end