Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor

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 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

Instance Method Summary collapse

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

#areasArray<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

#landmarksArray<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