Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor
- 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 relational description of a location. Includes a ranked set of nearby landmarks and precise containing areas and their relationship to the target location.
Instance Attribute Summary collapse
-
#areas ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea>
A ranked list of containing or adjacent areas.
-
#landmarks ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark>
A ranked list of nearby landmarks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1AddressDescriptor
constructor
A new instance of GoogleMapsPlacesV1AddressDescriptor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1AddressDescriptor
Returns a new instance of GoogleMapsPlacesV1AddressDescriptor.
89 90 91 |
# File 'lib/google/apis/places_v1/classes.rb', line 89 def initialize(**args) update!(**args) end |
Instance Attribute Details
#areas ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea>
A ranked list of containing or adjacent areas. The most recognizable and
precise areas are ranked first.
Corresponds to the JSON property areas
81 82 83 |
# File 'lib/google/apis/places_v1/classes.rb', line 81 def areas @areas end |
#landmarks ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark>
A ranked list of nearby landmarks. The most recognizable and nearby landmarks
are ranked first.
Corresponds to the JSON property landmarks
87 88 89 |
# File 'lib/google/apis/places_v1/classes.rb', line 87 def landmarks @landmarks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
94 95 96 97 |
# File 'lib/google/apis/places_v1/classes.rb', line 94 def update!(**args) @areas = args[:areas] if args.key?(:areas) @landmarks = args[:landmarks] if args.key?(:landmarks) end |