@@ -68,6 +68,135 @@ def update!(**args)
6868 end
6969 end
7070
71+ # A relational description of a location. Includes a ranked set of nearby
72+ # landmarks and precise containing areas and their relationship to the target
73+ # location.
74+ class GoogleMapsPlacesV1AddressDescriptor
75+ include Google ::Apis ::Core ::Hashable
76+
77+ # A ranked list of containing or adjacent areas. The most recognizable and
78+ # precise areas are ranked first.
79+ # Corresponds to the JSON property `areas`
80+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea>]
81+ attr_accessor :areas
82+
83+ # A ranked list of nearby landmarks. The most recognizable and nearby landmarks
84+ # are ranked first.
85+ # Corresponds to the JSON property `landmarks`
86+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark>]
87+ attr_accessor :landmarks
88+
89+ def initialize ( **args )
90+ update! ( **args )
91+ end
92+
93+ # Update properties of this object
94+ def update! ( **args )
95+ @areas = args [ :areas ] if args . key? ( :areas )
96+ @landmarks = args [ :landmarks ] if args . key? ( :landmarks )
97+ end
98+ end
99+
100+ # Area information and the area's relationship with the target location. Areas
101+ # includes precise sublocality, neighborhoods, and large compounds that are
102+ # useful for describing a location.
103+ class GoogleMapsPlacesV1AddressDescriptorArea
104+ include Google ::Apis ::Core ::Hashable
105+
106+ # Defines the spatial relationship between the target location and the area.
107+ # Corresponds to the JSON property `containment`
108+ # @return [String]
109+ attr_accessor :containment
110+
111+ # Localized variant of a text in a particular language.
112+ # Corresponds to the JSON property `displayName`
113+ # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
114+ attr_accessor :display_name
115+
116+ # The area's resource name.
117+ # Corresponds to the JSON property `name`
118+ # @return [String]
119+ attr_accessor :name
120+
121+ # The area's place id.
122+ # Corresponds to the JSON property `placeId`
123+ # @return [String]
124+ attr_accessor :place_id
125+
126+ def initialize ( **args )
127+ update! ( **args )
128+ end
129+
130+ # Update properties of this object
131+ def update! ( **args )
132+ @containment = args [ :containment ] if args . key? ( :containment )
133+ @display_name = args [ :display_name ] if args . key? ( :display_name )
134+ @name = args [ :name ] if args . key? ( :name )
135+ @place_id = args [ :place_id ] if args . key? ( :place_id )
136+ end
137+ end
138+
139+ # Basic landmark information and the landmark's relationship with the target
140+ # location. Landmarks are prominent places that can be used to describe a
141+ # location.
142+ class GoogleMapsPlacesV1AddressDescriptorLandmark
143+ include Google ::Apis ::Core ::Hashable
144+
145+ # Localized variant of a text in a particular language.
146+ # Corresponds to the JSON property `displayName`
147+ # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
148+ attr_accessor :display_name
149+
150+ # The landmark's resource name.
151+ # Corresponds to the JSON property `name`
152+ # @return [String]
153+ attr_accessor :name
154+
155+ # The landmark's place id.
156+ # Corresponds to the JSON property `placeId`
157+ # @return [String]
158+ attr_accessor :place_id
159+
160+ # Defines the spatial relationship between the target location and the landmark.
161+ # Corresponds to the JSON property `spatialRelationship`
162+ # @return [String]
163+ attr_accessor :spatial_relationship
164+
165+ # The straight line distance in meters between the target location and the
166+ # landmark.
167+ # Corresponds to the JSON property `straightLineDistanceMeters`
168+ # @return [Float]
169+ attr_accessor :straight_line_distance_meters
170+
171+ # The travel distance in meters along the road network if known. This does not
172+ # take into account the mode of transportation (walking/driving).
173+ # Corresponds to the JSON property `travelDistanceMeters`
174+ # @return [Float]
175+ attr_accessor :travel_distance_meters
176+
177+ # A set of type tags for this landmark. For a complete list of possible values,
178+ # see https://developers.google.com/maps/documentation/places/web-service/place-
179+ # types.
180+ # Corresponds to the JSON property `types`
181+ # @return [Array<String>]
182+ attr_accessor :types
183+
184+ def initialize ( **args )
185+ update! ( **args )
186+ end
187+
188+ # Update properties of this object
189+ def update! ( **args )
190+ @display_name = args [ :display_name ] if args . key? ( :display_name )
191+ @name = args [ :name ] if args . key? ( :name )
192+ @place_id = args [ :place_id ] if args . key? ( :place_id )
193+ @spatial_relationship = args [ :spatial_relationship ] if args . key? ( :spatial_relationship )
194+ @straight_line_distance_meters = args [ :straight_line_distance_meters ] if args . key? ( :straight_line_distance_meters )
195+ @travel_distance_meters = args [ :travel_distance_meters ] if args . key? ( :travel_distance_meters )
196+ @types = args [ :types ] if args . key? ( :types )
197+ end
198+ end
199+
71200 # Information about the author of the UGC data. Used in Photo, and Review.
72201 class GoogleMapsPlacesV1AuthorAttribution
73202 include Google ::Apis ::Core ::Hashable
@@ -995,6 +1124,13 @@ class GoogleMapsPlacesV1Place
9951124 # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent>]
9961125 attr_accessor :address_components
9971126
1127+ # A relational description of a location. Includes a ranked set of nearby
1128+ # landmarks and precise containing areas and their relationship to the target
1129+ # location.
1130+ # Corresponds to the JSON property `addressDescriptor`
1131+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor]
1132+ attr_accessor :address_descriptor
1133+
9981134 # The place's address in adr microformat: http://microformats.org/wiki/adr.
9991135 # Corresponds to the JSON property `adrFormatAddress`
10001136 # @return [String]
@@ -1386,6 +1522,7 @@ def initialize(**args)
13861522 def update! ( **args )
13871523 @accessibility_options = args [ :accessibility_options ] if args . key? ( :accessibility_options )
13881524 @address_components = args [ :address_components ] if args . key? ( :address_components )
1525+ @address_descriptor = args [ :address_descriptor ] if args . key? ( :address_descriptor )
13891526 @adr_format_address = args [ :adr_format_address ] if args . key? ( :adr_format_address )
13901527 @allows_dogs = args [ :allows_dogs ] if args . key? ( :allows_dogs )
13911528 @area_summary = args [ :area_summary ] if args . key? ( :area_summary )
0 commit comments