google-apis-places_v1 0.10.0 → 0.12.0

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