google-apis-places_v1 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,17 +72,17 @@ module Google
72
72
  class GoogleMapsPlacesV1AuthorAttribution
73
73
  include Google::Apis::Core::Hashable
74
74
 
75
- # Output only. Name of the author of the Photo or Review.
75
+ # Name of the author of the Photo or Review.
76
76
  # Corresponds to the JSON property `displayName`
77
77
  # @return [String]
78
78
  attr_accessor :display_name
79
79
 
80
- # Output only. Profile photo URI of the author of the Photo or Review.
80
+ # Profile photo URI of the author of the Photo or Review.
81
81
  # Corresponds to the JSON property `photoUri`
82
82
  # @return [String]
83
83
  attr_accessor :photo_uri
84
84
 
85
- # Output only. URI of the author of the Photo or Review.
85
+ # URI of the author of the Photo or Review.
86
86
  # Corresponds to the JSON property `uri`
87
87
  # @return [String]
88
88
  attr_accessor :uri
@@ -112,6 +112,7 @@ module Google
112
112
  attr_accessor :center
113
113
 
114
114
  # Required. Radius measured in meters. The radius must be within [0.0, 50000.0].
115
+ # The default radius is 0.0.
115
116
  # Corresponds to the JSON property `radius`
116
117
  # @return [Float]
117
118
  attr_accessor :radius
@@ -127,6 +128,206 @@ module Google
127
128
  end
128
129
  end
129
130
 
131
+ # Information about the EV Charge Station hosted in Place. Terminology follows
132
+ # https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could
133
+ # charge one car at a time. One port has one or more connectors. One station has
134
+ # one or more ports.
135
+ class GoogleMapsPlacesV1EvChargeOptions
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # A list of EV charging connector aggregations that contain connectors of the
139
+ # same type and same charge rate.
140
+ # Corresponds to the JSON property `connectorAggregation`
141
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation>]
142
+ attr_accessor :connector_aggregation
143
+
144
+ # Number of connectors at this station. However, because some ports can have
145
+ # multiple connectors but only be able to charge one car at a time (e.g.) the
146
+ # number of connectors may be greater than the total number of cars which can
147
+ # charge simultaneously.
148
+ # Corresponds to the JSON property `connectorCount`
149
+ # @return [Fixnum]
150
+ attr_accessor :connector_count
151
+
152
+ def initialize(**args)
153
+ update!(**args)
154
+ end
155
+
156
+ # Update properties of this object
157
+ def update!(**args)
158
+ @connector_aggregation = args[:connector_aggregation] if args.key?(:connector_aggregation)
159
+ @connector_count = args[:connector_count] if args.key?(:connector_count)
160
+ end
161
+ end
162
+
163
+ # EV charging information grouped by [type, max_charge_rate_kw]. Shows EV charge
164
+ # aggregation of connectors that have the same type and max charge rate in kw.
165
+ class GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation
166
+ include Google::Apis::Core::Hashable
167
+
168
+ # The timestamp when the connector availability information in this aggregation
169
+ # was last updated.
170
+ # Corresponds to the JSON property `availabilityLastUpdateTime`
171
+ # @return [String]
172
+ attr_accessor :availability_last_update_time
173
+
174
+ # Number of connectors in this aggregation that are currently available.
175
+ # Corresponds to the JSON property `availableCount`
176
+ # @return [Fixnum]
177
+ attr_accessor :available_count
178
+
179
+ # Number of connectors in this aggregation.
180
+ # Corresponds to the JSON property `count`
181
+ # @return [Fixnum]
182
+ attr_accessor :count
183
+
184
+ # The static max charging rate in kw of each connector in the aggregation.
185
+ # Corresponds to the JSON property `maxChargeRateKw`
186
+ # @return [Float]
187
+ attr_accessor :max_charge_rate_kw
188
+
189
+ # Number of connectors in this aggregation that are currently out of service.
190
+ # Corresponds to the JSON property `outOfServiceCount`
191
+ # @return [Fixnum]
192
+ attr_accessor :out_of_service_count
193
+
194
+ # The connector type of this aggregation.
195
+ # Corresponds to the JSON property `type`
196
+ # @return [String]
197
+ attr_accessor :type
198
+
199
+ def initialize(**args)
200
+ update!(**args)
201
+ end
202
+
203
+ # Update properties of this object
204
+ def update!(**args)
205
+ @availability_last_update_time = args[:availability_last_update_time] if args.key?(:availability_last_update_time)
206
+ @available_count = args[:available_count] if args.key?(:available_count)
207
+ @count = args[:count] if args.key?(:count)
208
+ @max_charge_rate_kw = args[:max_charge_rate_kw] if args.key?(:max_charge_rate_kw)
209
+ @out_of_service_count = args[:out_of_service_count] if args.key?(:out_of_service_count)
210
+ @type = args[:type] if args.key?(:type)
211
+ end
212
+ end
213
+
214
+ # The most recent information about fuel options in a gas station. This
215
+ # information is updated regularly.
216
+ class GoogleMapsPlacesV1FuelOptions
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # The last known fuel price for each type of fuel this station has. There is one
220
+ # entry per fuel type this station has. Order is not important.
221
+ # Corresponds to the JSON property `fuelPrices`
222
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptionsFuelPrice>]
223
+ attr_accessor :fuel_prices
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @fuel_prices = args[:fuel_prices] if args.key?(:fuel_prices)
232
+ end
233
+ end
234
+
235
+ # Fuel price information for a given type.
236
+ class GoogleMapsPlacesV1FuelOptionsFuelPrice
237
+ include Google::Apis::Core::Hashable
238
+
239
+ # Represents an amount of money with its currency type.
240
+ # Corresponds to the JSON property `price`
241
+ # @return [Google::Apis::PlacesV1::GoogleTypeMoney]
242
+ attr_accessor :price
243
+
244
+ # The type of fuel.
245
+ # Corresponds to the JSON property `type`
246
+ # @return [String]
247
+ attr_accessor :type
248
+
249
+ # The time the fuel price was last updated.
250
+ # Corresponds to the JSON property `updateTime`
251
+ # @return [String]
252
+ attr_accessor :update_time
253
+
254
+ def initialize(**args)
255
+ update!(**args)
256
+ end
257
+
258
+ # Update properties of this object
259
+ def update!(**args)
260
+ @price = args[:price] if args.key?(:price)
261
+ @type = args[:type] if args.key?(:type)
262
+ @update_time = args[:update_time] if args.key?(:update_time)
263
+ end
264
+ end
265
+
266
+ # Information about a photo of a place.
267
+ class GoogleMapsPlacesV1Photo
268
+ include Google::Apis::Core::Hashable
269
+
270
+ # This photo's authors.
271
+ # Corresponds to the JSON property `authorAttributions`
272
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution>]
273
+ attr_accessor :author_attributions
274
+
275
+ # The maximum available height, in pixels.
276
+ # Corresponds to the JSON property `heightPx`
277
+ # @return [Fixnum]
278
+ attr_accessor :height_px
279
+
280
+ # Identifier. A reference representing this place photo which may be used to
281
+ # look up this place photo again (a.k.a. the API "resource" name: places/`
282
+ # place_id`/photos/`photo`).
283
+ # Corresponds to the JSON property `name`
284
+ # @return [String]
285
+ attr_accessor :name
286
+
287
+ # The maximum available width, in pixels.
288
+ # Corresponds to the JSON property `widthPx`
289
+ # @return [Fixnum]
290
+ attr_accessor :width_px
291
+
292
+ def initialize(**args)
293
+ update!(**args)
294
+ end
295
+
296
+ # Update properties of this object
297
+ def update!(**args)
298
+ @author_attributions = args[:author_attributions] if args.key?(:author_attributions)
299
+ @height_px = args[:height_px] if args.key?(:height_px)
300
+ @name = args[:name] if args.key?(:name)
301
+ @width_px = args[:width_px] if args.key?(:width_px)
302
+ end
303
+ end
304
+
305
+ # A photo media from Places API.
306
+ class GoogleMapsPlacesV1PhotoMedia
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # The resource name of a photo in the format: places/place_id/photos/
310
+ # photo_reference.
311
+ # Corresponds to the JSON property `name`
312
+ # @return [String]
313
+ attr_accessor :name
314
+
315
+ # A short-lived uri that can be used to render the photo.
316
+ # Corresponds to the JSON property `photoUri`
317
+ # @return [String]
318
+ attr_accessor :photo_uri
319
+
320
+ def initialize(**args)
321
+ update!(**args)
322
+ end
323
+
324
+ # Update properties of this object
325
+ def update!(**args)
326
+ @name = args[:name] if args.key?(:name)
327
+ @photo_uri = args[:photo_uri] if args.key?(:photo_uri)
328
+ end
329
+ end
330
+
130
331
  # All the information representing a Place.
131
332
  class GoogleMapsPlacesV1Place
132
333
  include Google::Apis::Core::Hashable
@@ -157,6 +358,12 @@ module Google
157
358
  # @return [String]
158
359
  attr_accessor :adr_format_address
159
360
 
361
+ # Place allows dogs.
362
+ # Corresponds to the JSON property `allowsDogs`
363
+ # @return [Boolean]
364
+ attr_accessor :allows_dogs
365
+ alias_method :allows_dogs?, :allows_dogs
366
+
160
367
  # A set of data provider that must be shown with this result.
161
368
  # Corresponds to the JSON property `attributions`
162
369
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
@@ -212,11 +419,43 @@ module Google
212
419
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
213
420
  attr_accessor :editorial_summary
214
421
 
422
+ # Information about the EV Charge Station hosted in Place. Terminology follows
423
+ # https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could
424
+ # charge one car at a time. One port has one or more connectors. One station has
425
+ # one or more ports.
426
+ # Corresponds to the JSON property `evChargeOptions`
427
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptions]
428
+ attr_accessor :ev_charge_options
429
+
215
430
  # A full, human-readable address for this place.
216
431
  # Corresponds to the JSON property `formattedAddress`
217
432
  # @return [String]
218
433
  attr_accessor :formatted_address
219
434
 
435
+ # The most recent information about fuel options in a gas station. This
436
+ # information is updated regularly.
437
+ # Corresponds to the JSON property `fuelOptions`
438
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions]
439
+ attr_accessor :fuel_options
440
+
441
+ # Place is good for children.
442
+ # Corresponds to the JSON property `goodForChildren`
443
+ # @return [Boolean]
444
+ attr_accessor :good_for_children
445
+ alias_method :good_for_children?, :good_for_children
446
+
447
+ # Place accommodates groups.
448
+ # Corresponds to the JSON property `goodForGroups`
449
+ # @return [Boolean]
450
+ attr_accessor :good_for_groups
451
+ alias_method :good_for_groups?, :good_for_groups
452
+
453
+ # Place is suitable for watching sports.
454
+ # Corresponds to the JSON property `goodForWatchingSports`
455
+ # @return [Boolean]
456
+ attr_accessor :good_for_watching_sports
457
+ alias_method :good_for_watching_sports?, :good_for_watching_sports
458
+
220
459
  # A URL providing more information about this place.
221
460
  # Corresponds to the JSON property `googleMapsUri`
222
461
  # @return [String]
@@ -227,7 +466,7 @@ module Google
227
466
  # @return [String]
228
467
  attr_accessor :icon_background_color
229
468
 
230
- # A truncated URL to an v2 icon mask. User can access different icon type by
469
+ # A truncated URL to an icon mask. User can access different icon type by
231
470
  # appending type suffix to the end (eg, ".svg" or ".png").
232
471
  # Corresponds to the JSON property `iconMaskBaseUri`
233
472
  # @return [String]
@@ -243,6 +482,12 @@ module Google
243
482
  # @return [String]
244
483
  attr_accessor :international_phone_number
245
484
 
485
+ # Place provides live music.
486
+ # Corresponds to the JSON property `liveMusic`
487
+ # @return [Boolean]
488
+ attr_accessor :live_music
489
+ alias_method :live_music?, :live_music
490
+
246
491
  # An object that represents a latitude/longitude pair. This is expressed as a
247
492
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
248
493
  # specified otherwise, this object must conform to the WGS84 standard. Values
@@ -251,6 +496,12 @@ module Google
251
496
  # @return [Google::Apis::PlacesV1::GoogleTypeLatLng]
252
497
  attr_accessor :location
253
498
 
499
+ # Place has a children's menu.
500
+ # Corresponds to the JSON property `menuForChildren`
501
+ # @return [Boolean]
502
+ attr_accessor :menu_for_children
503
+ alias_method :menu_for_children?, :menu_for_children
504
+
254
505
  # An ID representing this place which may be used to look up this place again (a.
255
506
  # k.a. the API "resource" name: places/place_id).
256
507
  # Corresponds to the JSON property `name`
@@ -262,6 +513,28 @@ module Google
262
513
  # @return [String]
263
514
  attr_accessor :national_phone_number
264
515
 
516
+ # Place provides outdoor seating.
517
+ # Corresponds to the JSON property `outdoorSeating`
518
+ # @return [Boolean]
519
+ attr_accessor :outdoor_seating
520
+ alias_method :outdoor_seating?, :outdoor_seating
521
+
522
+ # Information about parking options for the place. A parking lot could support
523
+ # more than one option at the same time.
524
+ # Corresponds to the JSON property `parkingOptions`
525
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceParkingOptions]
526
+ attr_accessor :parking_options
527
+
528
+ # Payment options the place accepts.
529
+ # Corresponds to the JSON property `paymentOptions`
530
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePaymentOptions]
531
+ attr_accessor :payment_options
532
+
533
+ # Information (including references) about photos of this place.
534
+ # Corresponds to the JSON property `photos`
535
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo>]
536
+ attr_accessor :photos
537
+
265
538
  # Plus code (http://plus.codes) is a location reference with two formats: global
266
539
  # code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and
267
540
  # compound code, replacing the prefix with a reference location.
@@ -274,6 +547,20 @@ module Google
274
547
  # @return [String]
275
548
  attr_accessor :price_level
276
549
 
550
+ # The primary type of the given result. This type must one of the Places API
551
+ # supported types. For example, "restaurant", "cafe", "airport", etc. A place
552
+ # can only have a single primary type. For the complete list of possible values,
553
+ # see Table A and Table B at https://developers.google.com/maps/documentation/
554
+ # places/web-service/place-types
555
+ # Corresponds to the JSON property `primaryType`
556
+ # @return [String]
557
+ attr_accessor :primary_type
558
+
559
+ # Localized variant of a text in a particular language.
560
+ # Corresponds to the JSON property `primaryTypeDisplayName`
561
+ # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
562
+ attr_accessor :primary_type_display_name
563
+
277
564
  # A rating between 1.0 and 5.0, based on user reviews of this place.
278
565
  # Corresponds to the JSON property `rating`
279
566
  # @return [Float]
@@ -300,7 +587,13 @@ module Google
300
587
  attr_accessor :reservable
301
588
  alias_method :reservable?, :reservable
302
589
 
303
- # List of reviews about this place.
590
+ # Place has restroom.
591
+ # Corresponds to the JSON property `restroom`
592
+ # @return [Boolean]
593
+ attr_accessor :restroom
594
+ alias_method :restroom?, :restroom
595
+
596
+ # List of reviews about this place, sorted by relevance.
304
597
  # Corresponds to the JSON property `reviews`
305
598
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
306
599
  attr_accessor :reviews
@@ -323,6 +616,24 @@ module Google
323
616
  attr_accessor :serves_brunch
324
617
  alias_method :serves_brunch?, :serves_brunch
325
618
 
619
+ # Place serves cocktails.
620
+ # Corresponds to the JSON property `servesCocktails`
621
+ # @return [Boolean]
622
+ attr_accessor :serves_cocktails
623
+ alias_method :serves_cocktails?, :serves_cocktails
624
+
625
+ # Place serves coffee.
626
+ # Corresponds to the JSON property `servesCoffee`
627
+ # @return [Boolean]
628
+ attr_accessor :serves_coffee
629
+ alias_method :serves_coffee?, :serves_coffee
630
+
631
+ # Place serves dessert.
632
+ # Corresponds to the JSON property `servesDessert`
633
+ # @return [Boolean]
634
+ attr_accessor :serves_dessert
635
+ alias_method :serves_dessert?, :serves_dessert
636
+
326
637
  # Specifies if the place serves dinner.
327
638
  # Corresponds to the JSON property `servesDinner`
328
639
  # @return [Boolean]
@@ -347,6 +658,16 @@ module Google
347
658
  attr_accessor :serves_wine
348
659
  alias_method :serves_wine?, :serves_wine
349
660
 
661
+ # A short, human-readable address for this place.
662
+ # Corresponds to the JSON property `shortFormattedAddress`
663
+ # @return [String]
664
+ attr_accessor :short_formatted_address
665
+
666
+ # A list of sub destinations related to the place.
667
+ # Corresponds to the JSON property `subDestinations`
668
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceSubDestination>]
669
+ attr_accessor :sub_destinations
670
+
350
671
  # Specifies if the business supports takeout.
351
672
  # Corresponds to the JSON property `takeout`
352
673
  # @return [Boolean]
@@ -354,8 +675,8 @@ module Google
354
675
  alias_method :takeout?, :takeout
355
676
 
356
677
  # 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
678
+ # For the complete list of possible values, see Table A and Table B at https://
679
+ # developers.google.com/maps/documentation/places/web-service/place-types
359
680
  # Corresponds to the JSON property `types`
360
681
  # @return [Array<String>]
361
682
  attr_accessor :types
@@ -408,6 +729,7 @@ module Google
408
729
  @accessibility_options = args[:accessibility_options] if args.key?(:accessibility_options)
409
730
  @address_components = args[:address_components] if args.key?(:address_components)
410
731
  @adr_format_address = args[:adr_format_address] if args.key?(:adr_format_address)
732
+ @allows_dogs = args[:allows_dogs] if args.key?(:allows_dogs)
411
733
  @attributions = args[:attributions] if args.key?(:attributions)
412
734
  @business_status = args[:business_status] if args.key?(:business_status)
413
735
  @curbside_pickup = args[:curbside_pickup] if args.key?(:curbside_pickup)
@@ -417,29 +739,48 @@ module Google
417
739
  @dine_in = args[:dine_in] if args.key?(:dine_in)
418
740
  @display_name = args[:display_name] if args.key?(:display_name)
419
741
  @editorial_summary = args[:editorial_summary] if args.key?(:editorial_summary)
742
+ @ev_charge_options = args[:ev_charge_options] if args.key?(:ev_charge_options)
420
743
  @formatted_address = args[:formatted_address] if args.key?(:formatted_address)
744
+ @fuel_options = args[:fuel_options] if args.key?(:fuel_options)
745
+ @good_for_children = args[:good_for_children] if args.key?(:good_for_children)
746
+ @good_for_groups = args[:good_for_groups] if args.key?(:good_for_groups)
747
+ @good_for_watching_sports = args[:good_for_watching_sports] if args.key?(:good_for_watching_sports)
421
748
  @google_maps_uri = args[:google_maps_uri] if args.key?(:google_maps_uri)
422
749
  @icon_background_color = args[:icon_background_color] if args.key?(:icon_background_color)
423
750
  @icon_mask_base_uri = args[:icon_mask_base_uri] if args.key?(:icon_mask_base_uri)
424
751
  @id = args[:id] if args.key?(:id)
425
752
  @international_phone_number = args[:international_phone_number] if args.key?(:international_phone_number)
753
+ @live_music = args[:live_music] if args.key?(:live_music)
426
754
  @location = args[:location] if args.key?(:location)
755
+ @menu_for_children = args[:menu_for_children] if args.key?(:menu_for_children)
427
756
  @name = args[:name] if args.key?(:name)
428
757
  @national_phone_number = args[:national_phone_number] if args.key?(:national_phone_number)
758
+ @outdoor_seating = args[:outdoor_seating] if args.key?(:outdoor_seating)
759
+ @parking_options = args[:parking_options] if args.key?(:parking_options)
760
+ @payment_options = args[:payment_options] if args.key?(:payment_options)
761
+ @photos = args[:photos] if args.key?(:photos)
429
762
  @plus_code = args[:plus_code] if args.key?(:plus_code)
430
763
  @price_level = args[:price_level] if args.key?(:price_level)
764
+ @primary_type = args[:primary_type] if args.key?(:primary_type)
765
+ @primary_type_display_name = args[:primary_type_display_name] if args.key?(:primary_type_display_name)
431
766
  @rating = args[:rating] if args.key?(:rating)
432
767
  @regular_opening_hours = args[:regular_opening_hours] if args.key?(:regular_opening_hours)
433
768
  @regular_secondary_opening_hours = args[:regular_secondary_opening_hours] if args.key?(:regular_secondary_opening_hours)
434
769
  @reservable = args[:reservable] if args.key?(:reservable)
770
+ @restroom = args[:restroom] if args.key?(:restroom)
435
771
  @reviews = args[:reviews] if args.key?(:reviews)
436
772
  @serves_beer = args[:serves_beer] if args.key?(:serves_beer)
437
773
  @serves_breakfast = args[:serves_breakfast] if args.key?(:serves_breakfast)
438
774
  @serves_brunch = args[:serves_brunch] if args.key?(:serves_brunch)
775
+ @serves_cocktails = args[:serves_cocktails] if args.key?(:serves_cocktails)
776
+ @serves_coffee = args[:serves_coffee] if args.key?(:serves_coffee)
777
+ @serves_dessert = args[:serves_dessert] if args.key?(:serves_dessert)
439
778
  @serves_dinner = args[:serves_dinner] if args.key?(:serves_dinner)
440
779
  @serves_lunch = args[:serves_lunch] if args.key?(:serves_lunch)
441
780
  @serves_vegetarian_food = args[:serves_vegetarian_food] if args.key?(:serves_vegetarian_food)
442
781
  @serves_wine = args[:serves_wine] if args.key?(:serves_wine)
782
+ @short_formatted_address = args[:short_formatted_address] if args.key?(:short_formatted_address)
783
+ @sub_destinations = args[:sub_destinations] if args.key?(:sub_destinations)
443
784
  @takeout = args[:takeout] if args.key?(:takeout)
444
785
  @types = args[:types] if args.key?(:types)
445
786
  @user_rating_count = args[:user_rating_count] if args.key?(:user_rating_count)
@@ -459,6 +800,24 @@ module Google
459
800
  attr_accessor :wheelchair_accessible_entrance
460
801
  alias_method :wheelchair_accessible_entrance?, :wheelchair_accessible_entrance
461
802
 
803
+ # Place offers wheelchair accessible parking.
804
+ # Corresponds to the JSON property `wheelchairAccessibleParking`
805
+ # @return [Boolean]
806
+ attr_accessor :wheelchair_accessible_parking
807
+ alias_method :wheelchair_accessible_parking?, :wheelchair_accessible_parking
808
+
809
+ # Place has wheelchair accessible restroom.
810
+ # Corresponds to the JSON property `wheelchairAccessibleRestroom`
811
+ # @return [Boolean]
812
+ attr_accessor :wheelchair_accessible_restroom
813
+ alias_method :wheelchair_accessible_restroom?, :wheelchair_accessible_restroom
814
+
815
+ # Place has wheelchair accessible seating.
816
+ # Corresponds to the JSON property `wheelchairAccessibleSeating`
817
+ # @return [Boolean]
818
+ attr_accessor :wheelchair_accessible_seating
819
+ alias_method :wheelchair_accessible_seating?, :wheelchair_accessible_seating
820
+
462
821
  def initialize(**args)
463
822
  update!(**args)
464
823
  end
@@ -466,6 +825,9 @@ module Google
466
825
  # Update properties of this object
467
826
  def update!(**args)
468
827
  @wheelchair_accessible_entrance = args[:wheelchair_accessible_entrance] if args.key?(:wheelchair_accessible_entrance)
828
+ @wheelchair_accessible_parking = args[:wheelchair_accessible_parking] if args.key?(:wheelchair_accessible_parking)
829
+ @wheelchair_accessible_restroom = args[:wheelchair_accessible_restroom] if args.key?(:wheelchair_accessible_restroom)
830
+ @wheelchair_accessible_seating = args[:wheelchair_accessible_seating] if args.key?(:wheelchair_accessible_seating)
469
831
  end
470
832
  end
471
833
 
@@ -697,6 +1059,111 @@ module Google
697
1059
  end
698
1060
  end
699
1061
 
1062
+ # Information about parking options for the place. A parking lot could support
1063
+ # more than one option at the same time.
1064
+ class GoogleMapsPlacesV1PlaceParkingOptions
1065
+ include Google::Apis::Core::Hashable
1066
+
1067
+ # Place offers free garage parking.
1068
+ # Corresponds to the JSON property `freeGarageParking`
1069
+ # @return [Boolean]
1070
+ attr_accessor :free_garage_parking
1071
+ alias_method :free_garage_parking?, :free_garage_parking
1072
+
1073
+ # Place offers free parking lots.
1074
+ # Corresponds to the JSON property `freeParkingLot`
1075
+ # @return [Boolean]
1076
+ attr_accessor :free_parking_lot
1077
+ alias_method :free_parking_lot?, :free_parking_lot
1078
+
1079
+ # Place offers free street parking.
1080
+ # Corresponds to the JSON property `freeStreetParking`
1081
+ # @return [Boolean]
1082
+ attr_accessor :free_street_parking
1083
+ alias_method :free_street_parking?, :free_street_parking
1084
+
1085
+ # Place offers paid garage parking.
1086
+ # Corresponds to the JSON property `paidGarageParking`
1087
+ # @return [Boolean]
1088
+ attr_accessor :paid_garage_parking
1089
+ alias_method :paid_garage_parking?, :paid_garage_parking
1090
+
1091
+ # Place offers paid parking lots.
1092
+ # Corresponds to the JSON property `paidParkingLot`
1093
+ # @return [Boolean]
1094
+ attr_accessor :paid_parking_lot
1095
+ alias_method :paid_parking_lot?, :paid_parking_lot
1096
+
1097
+ # Place offers paid street parking.
1098
+ # Corresponds to the JSON property `paidStreetParking`
1099
+ # @return [Boolean]
1100
+ attr_accessor :paid_street_parking
1101
+ alias_method :paid_street_parking?, :paid_street_parking
1102
+
1103
+ # Place offers valet parking.
1104
+ # Corresponds to the JSON property `valetParking`
1105
+ # @return [Boolean]
1106
+ attr_accessor :valet_parking
1107
+ alias_method :valet_parking?, :valet_parking
1108
+
1109
+ def initialize(**args)
1110
+ update!(**args)
1111
+ end
1112
+
1113
+ # Update properties of this object
1114
+ def update!(**args)
1115
+ @free_garage_parking = args[:free_garage_parking] if args.key?(:free_garage_parking)
1116
+ @free_parking_lot = args[:free_parking_lot] if args.key?(:free_parking_lot)
1117
+ @free_street_parking = args[:free_street_parking] if args.key?(:free_street_parking)
1118
+ @paid_garage_parking = args[:paid_garage_parking] if args.key?(:paid_garage_parking)
1119
+ @paid_parking_lot = args[:paid_parking_lot] if args.key?(:paid_parking_lot)
1120
+ @paid_street_parking = args[:paid_street_parking] if args.key?(:paid_street_parking)
1121
+ @valet_parking = args[:valet_parking] if args.key?(:valet_parking)
1122
+ end
1123
+ end
1124
+
1125
+ # Payment options the place accepts.
1126
+ class GoogleMapsPlacesV1PlacePaymentOptions
1127
+ include Google::Apis::Core::Hashable
1128
+
1129
+ # Place accepts cash only as payment. Places with this attribute may still
1130
+ # accept other payment methods.
1131
+ # Corresponds to the JSON property `acceptsCashOnly`
1132
+ # @return [Boolean]
1133
+ attr_accessor :accepts_cash_only
1134
+ alias_method :accepts_cash_only?, :accepts_cash_only
1135
+
1136
+ # Place accepts credit cards as payment.
1137
+ # Corresponds to the JSON property `acceptsCreditCards`
1138
+ # @return [Boolean]
1139
+ attr_accessor :accepts_credit_cards
1140
+ alias_method :accepts_credit_cards?, :accepts_credit_cards
1141
+
1142
+ # Place accepts debit cards as payment.
1143
+ # Corresponds to the JSON property `acceptsDebitCards`
1144
+ # @return [Boolean]
1145
+ attr_accessor :accepts_debit_cards
1146
+ alias_method :accepts_debit_cards?, :accepts_debit_cards
1147
+
1148
+ # Place accepts NFC payments.
1149
+ # Corresponds to the JSON property `acceptsNfc`
1150
+ # @return [Boolean]
1151
+ attr_accessor :accepts_nfc
1152
+ alias_method :accepts_nfc?, :accepts_nfc
1153
+
1154
+ def initialize(**args)
1155
+ update!(**args)
1156
+ end
1157
+
1158
+ # Update properties of this object
1159
+ def update!(**args)
1160
+ @accepts_cash_only = args[:accepts_cash_only] if args.key?(:accepts_cash_only)
1161
+ @accepts_credit_cards = args[:accepts_credit_cards] if args.key?(:accepts_credit_cards)
1162
+ @accepts_debit_cards = args[:accepts_debit_cards] if args.key?(:accepts_debit_cards)
1163
+ @accepts_nfc = args[:accepts_nfc] if args.key?(:accepts_nfc)
1164
+ end
1165
+ end
1166
+
700
1167
  # Plus code (http://plus.codes) is a location reference with two formats: global
701
1168
  # code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and
702
1169
  # compound code, replacing the prefix with a reference location.
@@ -727,6 +1194,32 @@ module Google
727
1194
  end
728
1195
  end
729
1196
 
1197
+ # Place resource name and id of sub destinations that relate to the place. For
1198
+ # example, different terminals are different destinations of an airport.
1199
+ class GoogleMapsPlacesV1PlaceSubDestination
1200
+ include Google::Apis::Core::Hashable
1201
+
1202
+ # The place id of the sub destination.
1203
+ # Corresponds to the JSON property `id`
1204
+ # @return [String]
1205
+ attr_accessor :id
1206
+
1207
+ # The resource name of the sub destination.
1208
+ # Corresponds to the JSON property `name`
1209
+ # @return [String]
1210
+ attr_accessor :name
1211
+
1212
+ def initialize(**args)
1213
+ update!(**args)
1214
+ end
1215
+
1216
+ # Update properties of this object
1217
+ def update!(**args)
1218
+ @id = args[:id] if args.key?(:id)
1219
+ @name = args[:name] if args.key?(:name)
1220
+ end
1221
+ end
1222
+
730
1223
  # Information about a review of a place.
731
1224
  class GoogleMapsPlacesV1Review
732
1225
  include Google::Apis::Core::Hashable
@@ -736,24 +1229,30 @@ module Google
736
1229
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1AuthorAttribution]
737
1230
  attr_accessor :author_attribution
738
1231
 
1232
+ # A reference representing this place review which may be used to look up this
1233
+ # place review again (also called the API "resource" name: places/place_id/
1234
+ # reviews/review).
1235
+ # Corresponds to the JSON property `name`
1236
+ # @return [String]
1237
+ attr_accessor :name
1238
+
739
1239
  # Localized variant of a text in a particular language.
740
1240
  # Corresponds to the JSON property `originalText`
741
1241
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
742
1242
  attr_accessor :original_text
743
1243
 
744
- # Output only. Timestamp for the review.
1244
+ # Timestamp for the review.
745
1245
  # Corresponds to the JSON property `publishTime`
746
1246
  # @return [String]
747
1247
  attr_accessor :publish_time
748
1248
 
749
- # Output only. A number between 1.0 and 5.0, a.k.a. the number of stars.
1249
+ # A number between 1.0 and 5.0, also called the number of stars.
750
1250
  # Corresponds to the JSON property `rating`
751
1251
  # @return [Float]
752
1252
  attr_accessor :rating
753
1253
 
754
- # Output only. A string of formatted recent time, expressing the review time
755
- # relative to the current time in a form appropriate for the language and
756
- # country.
1254
+ # A string of formatted recent time, expressing the review time relative to the
1255
+ # current time in a form appropriate for the language and country.
757
1256
  # Corresponds to the JSON property `relativePublishTimeDescription`
758
1257
  # @return [String]
759
1258
  attr_accessor :relative_publish_time_description
@@ -770,6 +1269,7 @@ module Google
770
1269
  # Update properties of this object
771
1270
  def update!(**args)
772
1271
  @author_attribution = args[:author_attribution] if args.key?(:author_attribution)
1272
+ @name = args[:name] if args.key?(:name)
773
1273
  @original_text = args[:original_text] if args.key?(:original_text)
774
1274
  @publish_time = args[:publish_time] if args.key?(:publish_time)
775
1275
  @rating = args[:rating] if args.key?(:rating)
@@ -778,6 +1278,160 @@ module Google
778
1278
  end
779
1279
  end
780
1280
 
1281
+ # Request proto for Search Nearby.
1282
+ class GoogleMapsPlacesV1SearchNearbyRequest
1283
+ include Google::Apis::Core::Hashable
1284
+
1285
+ # Excluded primary Place type (e.g. "restaurant" or "gas_station") from https://
1286
+ # developers.google.com/maps/documentation/places/web-service/place-types. If
1287
+ # there are any conflicting primary types, i.e. a type appears in both
1288
+ # included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error
1289
+ # is returned. If a Place type is specified with multiple type restrictions,
1290
+ # only places that satisfy all of the restrictions are returned. For example, if
1291
+ # we have `included_types = ["restaurant"], excluded_primary_types = ["
1292
+ # restaurant"]`, the returned places provide "restaurant" related services but
1293
+ # do not operate primarily as "restaurants".
1294
+ # Corresponds to the JSON property `excludedPrimaryTypes`
1295
+ # @return [Array<String>]
1296
+ attr_accessor :excluded_primary_types
1297
+
1298
+ # Excluded Place type (eg, "restaurant" or "gas_station") from https://
1299
+ # developers.google.com/maps/documentation/places/web-service/place-types. If
1300
+ # the client provides both included_types (e.g. restaurant) and excluded_types (
1301
+ # e.g. cafe), then the response should include places that are restaurant but
1302
+ # not cafe. The response includes places that match at least one of the
1303
+ # included_types and none of the excluded_types. If there are any conflicting
1304
+ # types, i.e. a type appears in both included_types and excluded_types, an
1305
+ # INVALID_ARGUMENT error is returned. If a Place type is specified with multiple
1306
+ # type restrictions, only places that satisfy all of the restrictions are
1307
+ # returned. For example, if we have `included_types = ["restaurant"],
1308
+ # excluded_primary_types = ["restaurant"]`, the returned places provide "
1309
+ # restaurant" related services but do not operate primarily as "restaurants".
1310
+ # Corresponds to the JSON property `excludedTypes`
1311
+ # @return [Array<String>]
1312
+ attr_accessor :excluded_types
1313
+
1314
+ # Included primary Place type (e.g. "restaurant" or "gas_station") from https://
1315
+ # developers.google.com/maps/documentation/places/web-service/place-types. A
1316
+ # place can only have a single primary type from the supported types table
1317
+ # associated with it. If there are any conflicting primary types, i.e. a type
1318
+ # appears in both included_primary_types and excluded_primary_types, an
1319
+ # INVALID_ARGUMENT error is returned. If a Place type is specified with multiple
1320
+ # type restrictions, only places that satisfy all of the restrictions are
1321
+ # returned. For example, if we have `included_types = ["restaurant"],
1322
+ # excluded_primary_types = ["restaurant"]`, the returned places provide "
1323
+ # restaurant" related services but do not operate primarily as "restaurants".
1324
+ # Corresponds to the JSON property `includedPrimaryTypes`
1325
+ # @return [Array<String>]
1326
+ attr_accessor :included_primary_types
1327
+
1328
+ # Included Place type (eg, "restaurant" or "gas_station") from https://
1329
+ # developers.google.com/maps/documentation/places/web-service/place-types. If
1330
+ # there are any conflicting types, i.e. a type appears in both included_types
1331
+ # and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is
1332
+ # specified with multiple type restrictions, only places that satisfy all of the
1333
+ # restrictions are returned. For example, if we have `included_types = ["
1334
+ # restaurant"], excluded_primary_types = ["restaurant"]`, the returned places
1335
+ # provide "restaurant" related services but do not operate primarily as "
1336
+ # restaurants".
1337
+ # Corresponds to the JSON property `includedTypes`
1338
+ # @return [Array<String>]
1339
+ attr_accessor :included_types
1340
+
1341
+ # Place details will be displayed with the preferred language if available. If
1342
+ # the language code is unspecified or unrecognized, place details of any
1343
+ # language may be returned, with a preference for English if such details exist.
1344
+ # Current list of supported languages: https://developers.google.com/maps/faq#
1345
+ # languagesupport.
1346
+ # Corresponds to the JSON property `languageCode`
1347
+ # @return [String]
1348
+ attr_accessor :language_code
1349
+
1350
+ # The region to search.
1351
+ # Corresponds to the JSON property `locationRestriction`
1352
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction]
1353
+ attr_accessor :location_restriction
1354
+
1355
+ # Maximum number of results to return. It must be between 1 and 20 (default),
1356
+ # inclusively. If the number is unset, it falls back to the upper limit. If the
1357
+ # number is set to negative or exceeds the upper limit, an INVALID_ARGUMENT
1358
+ # error is returned.
1359
+ # Corresponds to the JSON property `maxResultCount`
1360
+ # @return [Fixnum]
1361
+ attr_accessor :max_result_count
1362
+
1363
+ # How results will be ranked in the response.
1364
+ # Corresponds to the JSON property `rankPreference`
1365
+ # @return [String]
1366
+ attr_accessor :rank_preference
1367
+
1368
+ # The Unicode country/region code (CLDR) of the location where the request is
1369
+ # coming from. This parameter is used to display the place details, like region-
1370
+ # specific place name, if available. The parameter can affect results based on
1371
+ # applicable law. For more information, see https://www.unicode.org/cldr/charts/
1372
+ # latest/supplemental/territory_language_information.html. Note that 3-digit
1373
+ # region codes are not currently supported.
1374
+ # Corresponds to the JSON property `regionCode`
1375
+ # @return [String]
1376
+ attr_accessor :region_code
1377
+
1378
+ def initialize(**args)
1379
+ update!(**args)
1380
+ end
1381
+
1382
+ # Update properties of this object
1383
+ def update!(**args)
1384
+ @excluded_primary_types = args[:excluded_primary_types] if args.key?(:excluded_primary_types)
1385
+ @excluded_types = args[:excluded_types] if args.key?(:excluded_types)
1386
+ @included_primary_types = args[:included_primary_types] if args.key?(:included_primary_types)
1387
+ @included_types = args[:included_types] if args.key?(:included_types)
1388
+ @language_code = args[:language_code] if args.key?(:language_code)
1389
+ @location_restriction = args[:location_restriction] if args.key?(:location_restriction)
1390
+ @max_result_count = args[:max_result_count] if args.key?(:max_result_count)
1391
+ @rank_preference = args[:rank_preference] if args.key?(:rank_preference)
1392
+ @region_code = args[:region_code] if args.key?(:region_code)
1393
+ end
1394
+ end
1395
+
1396
+ # The region to search.
1397
+ class GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction
1398
+ include Google::Apis::Core::Hashable
1399
+
1400
+ # Circle with a LatLng as center and radius.
1401
+ # Corresponds to the JSON property `circle`
1402
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1Circle]
1403
+ attr_accessor :circle
1404
+
1405
+ def initialize(**args)
1406
+ update!(**args)
1407
+ end
1408
+
1409
+ # Update properties of this object
1410
+ def update!(**args)
1411
+ @circle = args[:circle] if args.key?(:circle)
1412
+ end
1413
+ end
1414
+
1415
+ # Response proto for Search Nearby.
1416
+ class GoogleMapsPlacesV1SearchNearbyResponse
1417
+ include Google::Apis::Core::Hashable
1418
+
1419
+ # A list of places that meets user's requirements like places types, number of
1420
+ # places and specific location restriction.
1421
+ # Corresponds to the JSON property `places`
1422
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Place>]
1423
+ attr_accessor :places
1424
+
1425
+ def initialize(**args)
1426
+ update!(**args)
1427
+ end
1428
+
1429
+ # Update properties of this object
1430
+ def update!(**args)
1431
+ @places = args[:places] if args.key?(:places)
1432
+ end
1433
+ end
1434
+
781
1435
  # Request proto for SearchText.
782
1436
  class GoogleMapsPlacesV1SearchTextRequest
783
1437
  include Google::Apis::Core::Hashable
@@ -811,8 +1465,9 @@ module Google
811
1465
  attr_accessor :location_restriction
812
1466
 
813
1467
  # Maximum number of results to return. It must be between 1 and 20, inclusively.
814
- # If the number is unset, it falls back to the upper limit. If the number is set
815
- # to negative or exceeds the upper limit, an INVALID_ARGUMENT error is returned.
1468
+ # The default is 20. If the number is unset, it falls back to the upper limit.
1469
+ # If the number is set to negative or exceeds the upper limit, an
1470
+ # INVALID_ARGUMENT error is returned.
816
1471
  # Corresponds to the JSON property `maxResultCount`
817
1472
  # @return [Fixnum]
818
1473
  attr_accessor :max_result_count
@@ -827,7 +1482,8 @@ module Google
827
1482
  # @return [Float]
828
1483
  attr_accessor :min_rating
829
1484
 
830
- # Used to restrict the search to places that are currently open.
1485
+ # Used to restrict the search to places that are currently open. The default is
1486
+ # false.
831
1487
  # Corresponds to the JSON property `openNow`
832
1488
  # @return [Boolean]
833
1489
  attr_accessor :open_now
@@ -848,9 +1504,9 @@ module Google
848
1504
  # The Unicode country/region code (CLDR) of the location where the request is
849
1505
  # coming from. This parameter is used to display the place details, like region-
850
1506
  # specific place name, if available. The parameter can affect results based on
851
- # applicable law. For more information, see http://www.unicode.org/reports/tr35/#
852
- # unicode_region_subtag. Note that 3-digit region codes are not currently
853
- # supported.
1507
+ # applicable law. For more information, see https://www.unicode.org/cldr/charts/
1508
+ # latest/supplemental/territory_language_information.html. Note that 3-digit
1509
+ # region codes are not currently supported.
854
1510
  # Corresponds to the JSON property `regionCode`
855
1511
  # @return [String]
856
1512
  attr_accessor :region_code
@@ -1078,6 +1734,42 @@ module Google
1078
1734
  @text = args[:text] if args.key?(:text)
1079
1735
  end
1080
1736
  end
1737
+
1738
+ # Represents an amount of money with its currency type.
1739
+ class GoogleTypeMoney
1740
+ include Google::Apis::Core::Hashable
1741
+
1742
+ # The three-letter currency code defined in ISO 4217.
1743
+ # Corresponds to the JSON property `currencyCode`
1744
+ # @return [String]
1745
+ attr_accessor :currency_code
1746
+
1747
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
1748
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
1749
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
1750
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
1751
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1752
+ # Corresponds to the JSON property `nanos`
1753
+ # @return [Fixnum]
1754
+ attr_accessor :nanos
1755
+
1756
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
1757
+ # 1 unit is one US dollar.
1758
+ # Corresponds to the JSON property `units`
1759
+ # @return [Fixnum]
1760
+ attr_accessor :units
1761
+
1762
+ def initialize(**args)
1763
+ update!(**args)
1764
+ end
1765
+
1766
+ # Update properties of this object
1767
+ def update!(**args)
1768
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1769
+ @nanos = args[:nanos] if args.key?(:nanos)
1770
+ @units = args[:units] if args.key?(:units)
1771
+ end
1772
+ end
1081
1773
  end
1082
1774
  end
1083
1775
  end