google-apis-places_v1 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/places_v1/classes.rb +130 -97
- data/lib/google/apis/places_v1/gem_version.rb +2 -2
- data/lib/google/apis/places_v1/representations.rb +15 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aec94fd97df6db2a728caa78bf5105eb8897c9e491873ba2cf72a82d3ea342a
|
4
|
+
data.tar.gz: 2a060a39858d0b6a09a5af77bea7c45f0fc795ffd04e13af136d25ea5dd56034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4aeaea734b102b84b6159d7f814af3f5ee995ab88e2653ac1849cd826fde702e702748b3071bc2b4e89691bdbd8142bfa509eb12a9c79f434f7ed7718274f8
|
7
|
+
data.tar.gz: d63a63f30eb733736ae264e5c3c4ae1e63995439235382821af8147d76f58b63215ff9ecf6d3287de7f957d0e511e3cd622e7d8ef1f25d8b1df9aac344ae552a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.10.0 (2023-10-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231016
|
6
|
+
|
7
|
+
### v0.9.0 (2023-10-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230927
|
10
|
+
|
3
11
|
### v0.8.0 (2023-09-24)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230920
|
@@ -131,28 +131,43 @@ module Google
|
|
131
131
|
class GoogleMapsPlacesV1Place
|
132
132
|
include Google::Apis::Core::Hashable
|
133
133
|
|
134
|
-
#
|
134
|
+
# Information about the accessibility options a place offers.
|
135
|
+
# Corresponds to the JSON property `accessibilityOptions`
|
136
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAccessibilityOptions]
|
137
|
+
attr_accessor :accessibility_options
|
138
|
+
|
139
|
+
# Repeated components for each locality level. Note the following facts about
|
140
|
+
# the address_components[] array: - The array of address components may contain
|
141
|
+
# more components than the formatted_address. - The array does not necessarily
|
142
|
+
# include all the political entities that contain an address, apart from those
|
143
|
+
# included in the formatted_address. To retrieve all the political entities that
|
144
|
+
# contain a specific address, you should use reverse geocoding, passing the
|
145
|
+
# latitude/longitude of the address as a parameter to the request. - The format
|
146
|
+
# of the response is not guaranteed to remain the same between requests. In
|
147
|
+
# particular, the number of address_components varies based on the address
|
148
|
+
# requested and can change over time for the same address. A component can
|
149
|
+
# change position in the array. The type of the component can change. A
|
150
|
+
# particular component may be missing in a later response.
|
135
151
|
# Corresponds to the JSON property `addressComponents`
|
136
152
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent>]
|
137
153
|
attr_accessor :address_components
|
138
154
|
|
139
|
-
#
|
140
|
-
# wiki/adr.
|
155
|
+
# The place's address in adr microformat: http://microformats.org/wiki/adr.
|
141
156
|
# Corresponds to the JSON property `adrFormatAddress`
|
142
157
|
# @return [String]
|
143
158
|
attr_accessor :adr_format_address
|
144
159
|
|
145
|
-
#
|
160
|
+
# A set of data provider that must be shown with this result.
|
146
161
|
# Corresponds to the JSON property `attributions`
|
147
162
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
|
148
163
|
attr_accessor :attributions
|
149
164
|
|
150
|
-
#
|
165
|
+
# The business status for the place.
|
151
166
|
# Corresponds to the JSON property `businessStatus`
|
152
167
|
# @return [String]
|
153
168
|
attr_accessor :business_status
|
154
169
|
|
155
|
-
#
|
170
|
+
# Specifies if the business supports curbside pickup.
|
156
171
|
# Corresponds to the JSON property `curbsidePickup`
|
157
172
|
# @return [Boolean]
|
158
173
|
attr_accessor :curbside_pickup
|
@@ -163,26 +178,25 @@ module Google
|
|
163
178
|
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours]
|
164
179
|
attr_accessor :current_opening_hours
|
165
180
|
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
181
|
+
# Contains an array of entries for the next seven days including information
|
182
|
+
# about secondary hours of a business. Secondary hours are different from a
|
183
|
+
# business's main hours. For example, a restaurant can specify drive through
|
184
|
+
# hours or delivery hours as its secondary hours. This field populates the type
|
185
|
+
# subfield, which draws from a predefined list of opening hours types (such as
|
186
|
+
# DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. This field
|
187
|
+
# includes the special_days subfield of all hours, set for dates that have
|
188
|
+
# exceptional hours.
|
174
189
|
# Corresponds to the JSON property `currentSecondaryOpeningHours`
|
175
190
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours>]
|
176
191
|
attr_accessor :current_secondary_opening_hours
|
177
192
|
|
178
|
-
#
|
193
|
+
# Specifies if the business supports delivery.
|
179
194
|
# Corresponds to the JSON property `delivery`
|
180
195
|
# @return [Boolean]
|
181
196
|
attr_accessor :delivery
|
182
197
|
alias_method :delivery?, :delivery
|
183
198
|
|
184
|
-
#
|
185
|
-
# options.
|
199
|
+
# Specifies if the business supports indoor or outdoor seating options.
|
186
200
|
# Corresponds to the JSON property `dineIn`
|
187
201
|
# @return [Boolean]
|
188
202
|
attr_accessor :dine_in
|
@@ -198,34 +212,33 @@ module Google
|
|
198
212
|
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
|
199
213
|
attr_accessor :editorial_summary
|
200
214
|
|
201
|
-
#
|
215
|
+
# A full, human-readable address for this place.
|
202
216
|
# Corresponds to the JSON property `formattedAddress`
|
203
217
|
# @return [String]
|
204
218
|
attr_accessor :formatted_address
|
205
219
|
|
206
|
-
#
|
220
|
+
# A URL providing more information about this place.
|
207
221
|
# Corresponds to the JSON property `googleMapsUri`
|
208
222
|
# @return [String]
|
209
223
|
attr_accessor :google_maps_uri
|
210
224
|
|
211
|
-
#
|
225
|
+
# Background color for icon_mask in hex format, e.g. #909CE1.
|
212
226
|
# Corresponds to the JSON property `iconBackgroundColor`
|
213
227
|
# @return [String]
|
214
228
|
attr_accessor :icon_background_color
|
215
229
|
|
216
|
-
#
|
217
|
-
#
|
230
|
+
# A truncated URL to an v2 icon mask. User can access different icon type by
|
231
|
+
# appending type suffix to the end (eg, ".svg" or ".png").
|
218
232
|
# Corresponds to the JSON property `iconMaskBaseUri`
|
219
233
|
# @return [String]
|
220
234
|
attr_accessor :icon_mask_base_uri
|
221
235
|
|
222
|
-
#
|
236
|
+
# The unique identifier of a place.
|
223
237
|
# Corresponds to the JSON property `id`
|
224
238
|
# @return [String]
|
225
239
|
attr_accessor :id
|
226
240
|
|
227
|
-
#
|
228
|
-
# format.
|
241
|
+
# A human-readable phone number for the place, in international format.
|
229
242
|
# Corresponds to the JSON property `internationalPhoneNumber`
|
230
243
|
# @return [String]
|
231
244
|
attr_accessor :international_phone_number
|
@@ -238,13 +251,13 @@ module Google
|
|
238
251
|
# @return [Google::Apis::PlacesV1::GoogleTypeLatLng]
|
239
252
|
attr_accessor :location
|
240
253
|
|
241
|
-
#
|
242
|
-
#
|
254
|
+
# An ID representing this place which may be used to look up this place again (a.
|
255
|
+
# k.a. the API "resource" name: places/place_id).
|
243
256
|
# Corresponds to the JSON property `name`
|
244
257
|
# @return [String]
|
245
258
|
attr_accessor :name
|
246
259
|
|
247
|
-
#
|
260
|
+
# A human-readable phone number for the place, in national format.
|
248
261
|
# Corresponds to the JSON property `nationalPhoneNumber`
|
249
262
|
# @return [String]
|
250
263
|
attr_accessor :national_phone_number
|
@@ -256,12 +269,12 @@ module Google
|
|
256
269
|
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode]
|
257
270
|
attr_accessor :plus_code
|
258
271
|
|
259
|
-
#
|
272
|
+
# Price level of the place.
|
260
273
|
# Corresponds to the JSON property `priceLevel`
|
261
274
|
# @return [String]
|
262
275
|
attr_accessor :price_level
|
263
276
|
|
264
|
-
#
|
277
|
+
# A rating between 1.0 and 5.0, based on user reviews of this place.
|
265
278
|
# Corresponds to the JSON property `rating`
|
266
279
|
# @return [Float]
|
267
280
|
attr_accessor :rating
|
@@ -271,89 +284,90 @@ module Google
|
|
271
284
|
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours]
|
272
285
|
attr_accessor :regular_opening_hours
|
273
286
|
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
287
|
+
# Contains an array of entries for information about regular secondary hours of
|
288
|
+
# a business. Secondary hours are different from a business's main hours. For
|
289
|
+
# example, a restaurant can specify drive through hours or delivery hours as its
|
290
|
+
# secondary hours. This field populates the type subfield, which draws from a
|
291
|
+
# predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or
|
292
|
+
# TAKEOUT) based on the types of the place.
|
280
293
|
# Corresponds to the JSON property `regularSecondaryOpeningHours`
|
281
294
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours>]
|
282
295
|
attr_accessor :regular_secondary_opening_hours
|
283
296
|
|
284
|
-
#
|
297
|
+
# Specifies if the place supports reservations.
|
285
298
|
# Corresponds to the JSON property `reservable`
|
286
299
|
# @return [Boolean]
|
287
300
|
attr_accessor :reservable
|
288
301
|
alias_method :reservable?, :reservable
|
289
302
|
|
290
|
-
#
|
303
|
+
# List of reviews about this place.
|
291
304
|
# Corresponds to the JSON property `reviews`
|
292
305
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
|
293
306
|
attr_accessor :reviews
|
294
307
|
|
295
|
-
#
|
308
|
+
# Specifies if the place serves beer.
|
296
309
|
# Corresponds to the JSON property `servesBeer`
|
297
310
|
# @return [Boolean]
|
298
311
|
attr_accessor :serves_beer
|
299
312
|
alias_method :serves_beer?, :serves_beer
|
300
313
|
|
301
|
-
#
|
314
|
+
# Specifies if the place serves breakfast.
|
302
315
|
# Corresponds to the JSON property `servesBreakfast`
|
303
316
|
# @return [Boolean]
|
304
317
|
attr_accessor :serves_breakfast
|
305
318
|
alias_method :serves_breakfast?, :serves_breakfast
|
306
319
|
|
307
|
-
#
|
320
|
+
# Specifies if the place serves brunch.
|
308
321
|
# Corresponds to the JSON property `servesBrunch`
|
309
322
|
# @return [Boolean]
|
310
323
|
attr_accessor :serves_brunch
|
311
324
|
alias_method :serves_brunch?, :serves_brunch
|
312
325
|
|
313
|
-
#
|
326
|
+
# Specifies if the place serves dinner.
|
314
327
|
# Corresponds to the JSON property `servesDinner`
|
315
328
|
# @return [Boolean]
|
316
329
|
attr_accessor :serves_dinner
|
317
330
|
alias_method :serves_dinner?, :serves_dinner
|
318
331
|
|
319
|
-
#
|
332
|
+
# Specifies if the place serves lunch.
|
320
333
|
# Corresponds to the JSON property `servesLunch`
|
321
334
|
# @return [Boolean]
|
322
335
|
attr_accessor :serves_lunch
|
323
336
|
alias_method :serves_lunch?, :serves_lunch
|
324
337
|
|
325
|
-
#
|
338
|
+
# Specifies if the place serves vegetarian food.
|
326
339
|
# Corresponds to the JSON property `servesVegetarianFood`
|
327
340
|
# @return [Boolean]
|
328
341
|
attr_accessor :serves_vegetarian_food
|
329
342
|
alias_method :serves_vegetarian_food?, :serves_vegetarian_food
|
330
343
|
|
331
|
-
#
|
344
|
+
# Specifies if the place serves wine.
|
332
345
|
# Corresponds to the JSON property `servesWine`
|
333
346
|
# @return [Boolean]
|
334
347
|
attr_accessor :serves_wine
|
335
348
|
alias_method :serves_wine?, :serves_wine
|
336
349
|
|
337
|
-
#
|
350
|
+
# Specifies if the business supports takeout.
|
338
351
|
# Corresponds to the JSON property `takeout`
|
339
352
|
# @return [Boolean]
|
340
353
|
attr_accessor :takeout
|
341
354
|
alias_method :takeout?, :takeout
|
342
355
|
|
343
|
-
#
|
344
|
-
#
|
356
|
+
# A set of type tags for this result. For example, "political" and "locality".
|
357
|
+
# See: https://developers.google.com/maps/documentation/places/web-service/place-
|
358
|
+
# types
|
345
359
|
# Corresponds to the JSON property `types`
|
346
360
|
# @return [Array<String>]
|
347
361
|
attr_accessor :types
|
348
362
|
|
349
|
-
#
|
363
|
+
# The total number of reviews (with or without text) for this place.
|
350
364
|
# Corresponds to the JSON property `userRatingCount`
|
351
365
|
# @return [Fixnum]
|
352
366
|
attr_accessor :user_rating_count
|
353
367
|
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
368
|
+
# Number of minutes this place's timezone is currently offset from UTC. This is
|
369
|
+
# expressed in minutes to support timezones that are offset by fractions of an
|
370
|
+
# hour, e.g. X hours and 15 minutes.
|
357
371
|
# Corresponds to the JSON property `utcOffsetMinutes`
|
358
372
|
# @return [Fixnum]
|
359
373
|
attr_accessor :utc_offset_minutes
|
@@ -378,10 +392,9 @@ module Google
|
|
378
392
|
# @return [Google::Apis::PlacesV1::GoogleGeoTypeViewport]
|
379
393
|
attr_accessor :viewport
|
380
394
|
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
# chain.
|
395
|
+
# The authoritative website for this place, e.g. a business' homepage. Note that
|
396
|
+
# for places that are part of a chain (e.g. an IKEA store), this will usually be
|
397
|
+
# the website for the individual store, not the overall chain.
|
385
398
|
# Corresponds to the JSON property `websiteUri`
|
386
399
|
# @return [String]
|
387
400
|
attr_accessor :website_uri
|
@@ -392,6 +405,7 @@ module Google
|
|
392
405
|
|
393
406
|
# Update properties of this object
|
394
407
|
def update!(**args)
|
408
|
+
@accessibility_options = args[:accessibility_options] if args.key?(:accessibility_options)
|
395
409
|
@address_components = args[:address_components] if args.key?(:address_components)
|
396
410
|
@adr_format_address = args[:adr_format_address] if args.key?(:adr_format_address)
|
397
411
|
@attributions = args[:attributions] if args.key?(:attributions)
|
@@ -435,31 +449,51 @@ module Google
|
|
435
449
|
end
|
436
450
|
end
|
437
451
|
|
452
|
+
# Information about the accessibility options a place offers.
|
453
|
+
class GoogleMapsPlacesV1PlaceAccessibilityOptions
|
454
|
+
include Google::Apis::Core::Hashable
|
455
|
+
|
456
|
+
# Places has wheelchair accessible entrance.
|
457
|
+
# Corresponds to the JSON property `wheelchairAccessibleEntrance`
|
458
|
+
# @return [Boolean]
|
459
|
+
attr_accessor :wheelchair_accessible_entrance
|
460
|
+
alias_method :wheelchair_accessible_entrance?, :wheelchair_accessible_entrance
|
461
|
+
|
462
|
+
def initialize(**args)
|
463
|
+
update!(**args)
|
464
|
+
end
|
465
|
+
|
466
|
+
# Update properties of this object
|
467
|
+
def update!(**args)
|
468
|
+
@wheelchair_accessible_entrance = args[:wheelchair_accessible_entrance] if args.key?(:wheelchair_accessible_entrance)
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
438
472
|
# The structured components that form the formatted address, if this information
|
439
473
|
# is available.
|
440
474
|
class GoogleMapsPlacesV1PlaceAddressComponent
|
441
475
|
include Google::Apis::Core::Hashable
|
442
476
|
|
443
|
-
#
|
477
|
+
# The language used to format this components, in CLDR notation.
|
444
478
|
# Corresponds to the JSON property `languageCode`
|
445
479
|
# @return [String]
|
446
480
|
attr_accessor :language_code
|
447
481
|
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
482
|
+
# The full text description or name of the address component. For example, an
|
483
|
+
# address component for the country Australia may have a long_name of "Australia"
|
484
|
+
# .
|
451
485
|
# Corresponds to the JSON property `longText`
|
452
486
|
# @return [String]
|
453
487
|
attr_accessor :long_text
|
454
488
|
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
489
|
+
# An abbreviated textual name for the address component, if available. For
|
490
|
+
# example, an address component for the country of Australia may have a
|
491
|
+
# short_name of "AU".
|
458
492
|
# Corresponds to the JSON property `shortText`
|
459
493
|
# @return [String]
|
460
494
|
attr_accessor :short_text
|
461
495
|
|
462
|
-
#
|
496
|
+
# An array indicating the type(s) of the address component.
|
463
497
|
# Corresponds to the JSON property `types`
|
464
498
|
# @return [Array<String>]
|
465
499
|
attr_accessor :types
|
@@ -481,12 +515,12 @@ module Google
|
|
481
515
|
class GoogleMapsPlacesV1PlaceAttribution
|
482
516
|
include Google::Apis::Core::Hashable
|
483
517
|
|
484
|
-
#
|
518
|
+
# Name of the Place's data provider.
|
485
519
|
# Corresponds to the JSON property `provider`
|
486
520
|
# @return [String]
|
487
521
|
attr_accessor :provider
|
488
522
|
|
489
|
-
#
|
523
|
+
# URI to the Place's data provider.
|
490
524
|
# Corresponds to the JSON property `providerUri`
|
491
525
|
# @return [String]
|
492
526
|
attr_accessor :provider_uri
|
@@ -506,38 +540,37 @@ module Google
|
|
506
540
|
class GoogleMapsPlacesV1PlaceOpeningHours
|
507
541
|
include Google::Apis::Core::Hashable
|
508
542
|
|
509
|
-
#
|
510
|
-
#
|
543
|
+
# Is this place open right now? Always present unless we lack time-of-day or
|
544
|
+
# timezone data for these opening hours.
|
511
545
|
# Corresponds to the JSON property `openNow`
|
512
546
|
# @return [Boolean]
|
513
547
|
attr_accessor :open_now
|
514
548
|
alias_method :open_now?, :open_now
|
515
549
|
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
550
|
+
# The periods that this place is open during the week. The periods are in
|
551
|
+
# chronological order, starting with Sunday in the place-local timezone. An
|
552
|
+
# empty (but not absent) value indicates a place that is never open, e.g.
|
519
553
|
# because it is closed temporarily for renovations.
|
520
554
|
# Corresponds to the JSON property `periods`
|
521
555
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriod>]
|
522
556
|
attr_accessor :periods
|
523
557
|
|
524
|
-
#
|
558
|
+
# A type string used to identify the type of secondary hours.
|
525
559
|
# Corresponds to the JSON property `secondaryHoursType`
|
526
560
|
# @return [String]
|
527
561
|
attr_accessor :secondary_hours_type
|
528
562
|
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
# exceptional hours.
|
563
|
+
# Structured information for special days that fall within the period that the
|
564
|
+
# returned opening hours cover. Special days are days that could impact the
|
565
|
+
# business hours of a place, e.g. Christmas day. Set for current_opening_hours
|
566
|
+
# and current_secondary_opening_hours if there are exceptional hours.
|
534
567
|
# Corresponds to the JSON property `specialDays`
|
535
568
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay>]
|
536
569
|
attr_accessor :special_days
|
537
570
|
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
571
|
+
# Localized strings describing the opening hours of this place, one string for
|
572
|
+
# each day of the week. Will be empty if the hours are unknown or could not be
|
573
|
+
# converted to localized text. Example: "Sun: 18:00–06:00"
|
541
574
|
# Corresponds to the JSON property `weekdayDescriptions`
|
542
575
|
# @return [Array<String>]
|
543
576
|
attr_accessor :weekday_descriptions
|
@@ -597,26 +630,26 @@ module Google
|
|
597
630
|
# @return [Google::Apis::PlacesV1::GoogleTypeDate]
|
598
631
|
attr_accessor :date
|
599
632
|
|
600
|
-
#
|
601
|
-
#
|
633
|
+
# A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday,
|
634
|
+
# etc.
|
602
635
|
# Corresponds to the JSON property `day`
|
603
636
|
# @return [Fixnum]
|
604
637
|
attr_accessor :day
|
605
638
|
|
606
|
-
#
|
639
|
+
# The hour in 2 digits. Ranges from 00 to 23.
|
607
640
|
# Corresponds to the JSON property `hour`
|
608
641
|
# @return [Fixnum]
|
609
642
|
attr_accessor :hour
|
610
643
|
|
611
|
-
#
|
644
|
+
# The minute in 2 digits. Ranges from 00 to 59.
|
612
645
|
# Corresponds to the JSON property `minute`
|
613
646
|
# @return [Fixnum]
|
614
647
|
attr_accessor :minute
|
615
648
|
|
616
|
-
#
|
617
|
-
#
|
618
|
-
#
|
619
|
-
#
|
649
|
+
# Whether or not this endpoint was truncated. Truncation occurs when the real
|
650
|
+
# hours are outside the times we are willing to return hours between, so we
|
651
|
+
# truncate the hours back to these boundaries. This ensures that at most 24 * 7
|
652
|
+
# hours from midnight of the day of the request are returned.
|
620
653
|
# Corresponds to the JSON property `truncated`
|
621
654
|
# @return [Boolean]
|
622
655
|
attr_accessor :truncated
|
@@ -670,15 +703,15 @@ module Google
|
|
670
703
|
class GoogleMapsPlacesV1PlacePlusCode
|
671
704
|
include Google::Apis::Core::Hashable
|
672
705
|
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
706
|
+
# Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the
|
707
|
+
# suffix of the global code and replacing the prefix with a formatted name of a
|
708
|
+
# reference entity.
|
676
709
|
# Corresponds to the JSON property `compoundCode`
|
677
710
|
# @return [String]
|
678
711
|
attr_accessor :compound_code
|
679
712
|
|
680
|
-
#
|
681
|
-
#
|
713
|
+
# Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/
|
714
|
+
# 8000 degree area (~14 by 14 meters).
|
682
715
|
# Corresponds to the JSON property `globalCode`
|
683
716
|
# @return [String]
|
684
717
|
attr_accessor :global_code
|
@@ -750,7 +783,8 @@ module Google
|
|
750
783
|
include Google::Apis::Core::Hashable
|
751
784
|
|
752
785
|
# The requested place type. Full list of types supported: https://developers.
|
753
|
-
# google.com/places/
|
786
|
+
# google.com/maps/documentation/places/web-service/place-types. Only support one
|
787
|
+
# included type.
|
754
788
|
# Corresponds to the JSON property `includedType`
|
755
789
|
# @return [String]
|
756
790
|
attr_accessor :included_type
|
@@ -793,8 +827,7 @@ module Google
|
|
793
827
|
# @return [Float]
|
794
828
|
attr_accessor :min_rating
|
795
829
|
|
796
|
-
# Used to restrict the search to places that are open
|
797
|
-
# open_now marks if a business is currently open.
|
830
|
+
# Used to restrict the search to places that are currently open.
|
798
831
|
# Corresponds to the JSON property `openNow`
|
799
832
|
# @return [Boolean]
|
800
833
|
attr_accessor :open_now
|
@@ -1030,7 +1063,7 @@ module Google
|
|
1030
1063
|
# @return [String]
|
1031
1064
|
attr_accessor :language_code
|
1032
1065
|
|
1033
|
-
# Localized string in the language corresponding to
|
1066
|
+
# Localized string in the language corresponding to language_code below.
|
1034
1067
|
# Corresponds to the JSON property `text`
|
1035
1068
|
# @return [String]
|
1036
1069
|
attr_accessor :text
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PlacesV1
|
18
18
|
# Version of the google-apis-places_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231016"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class GoogleMapsPlacesV1PlaceAccessibilityOptions
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class GoogleMapsPlacesV1PlaceAddressComponent
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -167,6 +173,8 @@ module Google
|
|
167
173
|
class GoogleMapsPlacesV1Place
|
168
174
|
# @private
|
169
175
|
class Representation < Google::Apis::Core::JsonRepresentation
|
176
|
+
property :accessibility_options, as: 'accessibilityOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAccessibilityOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAccessibilityOptions::Representation
|
177
|
+
|
170
178
|
collection :address_components, as: 'addressComponents', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent::Representation
|
171
179
|
|
172
180
|
property :adr_format_address, as: 'adrFormatAddress'
|
@@ -222,6 +230,13 @@ module Google
|
|
222
230
|
end
|
223
231
|
end
|
224
232
|
|
233
|
+
class GoogleMapsPlacesV1PlaceAccessibilityOptions
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
property :wheelchair_accessible_entrance, as: 'wheelchairAccessibleEntrance'
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
225
240
|
class GoogleMapsPlacesV1PlaceAddressComponent
|
226
241
|
# @private
|
227
242
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-places_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.10.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|