google-apis-places_v1 0.20.0 → 0.22.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 +9 -0
- data/lib/google/apis/places_v1/classes.rb +380 -8
- data/lib/google/apis/places_v1/gem_version.rb +3 -3
- data/lib/google/apis/places_v1/representations.rb +167 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fd137361cd1c42e244c68fe43773db232227a09ad1a8f4fb81babda52e3defe
|
4
|
+
data.tar.gz: 184c05d15b6c2712e4a1510a2c8cb5bc6a88be9b57e5ff18c024918e6b6e7dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35037aec2803054feda456a9f41642ff49a0d8d72cec1813f46545e14a8cb27a251f1716472dfe4477eba8f3d4c0addf1c3225e0338fc95879360bac9419c6c
|
7
|
+
data.tar.gz: 7e65bd7c269789aa1b3b241ac617faa011af45b87eb3a0d53eae4a2e01666bdccb558674f195f5a572d0c8e2f7e643cf8a37374b5f6a92d83d17340996536dd9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.22.0 (2024-05-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240519
|
6
|
+
|
7
|
+
### v0.21.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240512
|
10
|
+
* Regenerated using generator version 0.15.0
|
11
|
+
|
3
12
|
### v0.20.0 (2024-04-28)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240423
|
@@ -111,10 +111,11 @@ module Google
|
|
111
111
|
alias_method :include_query_predictions?, :include_query_predictions
|
112
112
|
|
113
113
|
# Optional. Included primary Place type (for example, "restaurant" or "
|
114
|
-
# gas_station")
|
115
|
-
# service/place-types
|
116
|
-
#
|
117
|
-
# Place types are
|
114
|
+
# gas_station") in Place Types (https://developers.google.com/maps/documentation/
|
115
|
+
# places/web-service/place-types), or only `(regions)`, or only `(cities)`. A
|
116
|
+
# Place is only returned if its primary type is included in this list. Up to 5
|
117
|
+
# values can be specified. If no types are specified, all Place types are
|
118
|
+
# returned.
|
118
119
|
# Corresponds to the JSON property `includedPrimaryTypes`
|
119
120
|
# @return [Array<String>]
|
120
121
|
attr_accessor :included_primary_types
|
@@ -545,6 +546,230 @@ module Google
|
|
545
546
|
end
|
546
547
|
end
|
547
548
|
|
549
|
+
# A block of content that can be served individually.
|
550
|
+
class GoogleMapsPlacesV1ContentBlock
|
551
|
+
include Google::Apis::Core::Hashable
|
552
|
+
|
553
|
+
# Localized variant of a text in a particular language.
|
554
|
+
# Corresponds to the JSON property `content`
|
555
|
+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
|
556
|
+
attr_accessor :content
|
557
|
+
|
558
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
559
|
+
# service/experimental/places-generative for more details. Reference that the
|
560
|
+
# generative content is related to.
|
561
|
+
# Corresponds to the JSON property `references`
|
562
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1References]
|
563
|
+
attr_accessor :references
|
564
|
+
|
565
|
+
# The topic of the content, for example "overview" or "restaurant".
|
566
|
+
# Corresponds to the JSON property `topic`
|
567
|
+
# @return [String]
|
568
|
+
attr_accessor :topic
|
569
|
+
|
570
|
+
def initialize(**args)
|
571
|
+
update!(**args)
|
572
|
+
end
|
573
|
+
|
574
|
+
# Update properties of this object
|
575
|
+
def update!(**args)
|
576
|
+
@content = args[:content] if args.key?(:content)
|
577
|
+
@references = args[:references] if args.key?(:references)
|
578
|
+
@topic = args[:topic] if args.key?(:topic)
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
582
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
583
|
+
# service/experimental/places-generative for more details. Content that is
|
584
|
+
# contextual to the place query.
|
585
|
+
class GoogleMapsPlacesV1ContextualContent
|
586
|
+
include Google::Apis::Core::Hashable
|
587
|
+
|
588
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
589
|
+
# service/experimental/places-generative for more details. Justifications for
|
590
|
+
# the place.
|
591
|
+
# Corresponds to the JSON property `justifications`
|
592
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification>]
|
593
|
+
attr_accessor :justifications
|
594
|
+
|
595
|
+
# Information (including references) about photos of this place, contexual to
|
596
|
+
# the place query.
|
597
|
+
# Corresponds to the JSON property `photos`
|
598
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo>]
|
599
|
+
attr_accessor :photos
|
600
|
+
|
601
|
+
# List of reviews about this place, contexual to the place query.
|
602
|
+
# Corresponds to the JSON property `reviews`
|
603
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
|
604
|
+
attr_accessor :reviews
|
605
|
+
|
606
|
+
def initialize(**args)
|
607
|
+
update!(**args)
|
608
|
+
end
|
609
|
+
|
610
|
+
# Update properties of this object
|
611
|
+
def update!(**args)
|
612
|
+
@justifications = args[:justifications] if args.key?(:justifications)
|
613
|
+
@photos = args[:photos] if args.key?(:photos)
|
614
|
+
@reviews = args[:reviews] if args.key?(:reviews)
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
618
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
619
|
+
# service/experimental/places-generative for more details. Justifications for
|
620
|
+
# the place. Justifications answers the question of why a place could interest
|
621
|
+
# an end user.
|
622
|
+
class GoogleMapsPlacesV1ContextualContentJustification
|
623
|
+
include Google::Apis::Core::Hashable
|
624
|
+
|
625
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
626
|
+
# service/experimental/places-generative for more details.
|
627
|
+
# BusinessAvailabilityAttributes justifications. This shows some attributes a
|
628
|
+
# business has that could interest an end user.
|
629
|
+
# Corresponds to the JSON property `businessAvailabilityAttributesJustification`
|
630
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification]
|
631
|
+
attr_accessor :business_availability_attributes_justification
|
632
|
+
|
633
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
634
|
+
# service/experimental/places-generative for more details. User review
|
635
|
+
# justifications. This highlights a section of the user review that would
|
636
|
+
# interest an end user. For instance, if the search query is "firewood pizza",
|
637
|
+
# the review justification highlights the text relevant to the search query.
|
638
|
+
# Corresponds to the JSON property `reviewJustification`
|
639
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification]
|
640
|
+
attr_accessor :review_justification
|
641
|
+
|
642
|
+
def initialize(**args)
|
643
|
+
update!(**args)
|
644
|
+
end
|
645
|
+
|
646
|
+
# Update properties of this object
|
647
|
+
def update!(**args)
|
648
|
+
@business_availability_attributes_justification = args[:business_availability_attributes_justification] if args.key?(:business_availability_attributes_justification)
|
649
|
+
@review_justification = args[:review_justification] if args.key?(:review_justification)
|
650
|
+
end
|
651
|
+
end
|
652
|
+
|
653
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
654
|
+
# service/experimental/places-generative for more details.
|
655
|
+
# BusinessAvailabilityAttributes justifications. This shows some attributes a
|
656
|
+
# business has that could interest an end user.
|
657
|
+
class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
|
658
|
+
include Google::Apis::Core::Hashable
|
659
|
+
|
660
|
+
# If a place provides delivery.
|
661
|
+
# Corresponds to the JSON property `delivery`
|
662
|
+
# @return [Boolean]
|
663
|
+
attr_accessor :delivery
|
664
|
+
alias_method :delivery?, :delivery
|
665
|
+
|
666
|
+
# If a place provides dine-in.
|
667
|
+
# Corresponds to the JSON property `dineIn`
|
668
|
+
# @return [Boolean]
|
669
|
+
attr_accessor :dine_in
|
670
|
+
alias_method :dine_in?, :dine_in
|
671
|
+
|
672
|
+
# If a place provides takeout.
|
673
|
+
# Corresponds to the JSON property `takeout`
|
674
|
+
# @return [Boolean]
|
675
|
+
attr_accessor :takeout
|
676
|
+
alias_method :takeout?, :takeout
|
677
|
+
|
678
|
+
def initialize(**args)
|
679
|
+
update!(**args)
|
680
|
+
end
|
681
|
+
|
682
|
+
# Update properties of this object
|
683
|
+
def update!(**args)
|
684
|
+
@delivery = args[:delivery] if args.key?(:delivery)
|
685
|
+
@dine_in = args[:dine_in] if args.key?(:dine_in)
|
686
|
+
@takeout = args[:takeout] if args.key?(:takeout)
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
690
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
691
|
+
# service/experimental/places-generative for more details. User review
|
692
|
+
# justifications. This highlights a section of the user review that would
|
693
|
+
# interest an end user. For instance, if the search query is "firewood pizza",
|
694
|
+
# the review justification highlights the text relevant to the search query.
|
695
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
|
696
|
+
include Google::Apis::Core::Hashable
|
697
|
+
|
698
|
+
# The text highlighted by the justification. This is a subset of the review
|
699
|
+
# itself. The exact word to highlight is marked by the HighlightedTextRange.
|
700
|
+
# There could be several words in the text being highlighted.
|
701
|
+
# Corresponds to the JSON property `highlightedText`
|
702
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText]
|
703
|
+
attr_accessor :highlighted_text
|
704
|
+
|
705
|
+
# Information about a review of a place.
|
706
|
+
# Corresponds to the JSON property `review`
|
707
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1Review]
|
708
|
+
attr_accessor :review
|
709
|
+
|
710
|
+
def initialize(**args)
|
711
|
+
update!(**args)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Update properties of this object
|
715
|
+
def update!(**args)
|
716
|
+
@highlighted_text = args[:highlighted_text] if args.key?(:highlighted_text)
|
717
|
+
@review = args[:review] if args.key?(:review)
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
# The text highlighted by the justification. This is a subset of the review
|
722
|
+
# itself. The exact word to highlight is marked by the HighlightedTextRange.
|
723
|
+
# There could be several words in the text being highlighted.
|
724
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
|
725
|
+
include Google::Apis::Core::Hashable
|
726
|
+
|
727
|
+
# The list of the ranges of the highlighted text.
|
728
|
+
# Corresponds to the JSON property `highlightedTextRanges`
|
729
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange>]
|
730
|
+
attr_accessor :highlighted_text_ranges
|
731
|
+
|
732
|
+
#
|
733
|
+
# Corresponds to the JSON property `text`
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :text
|
736
|
+
|
737
|
+
def initialize(**args)
|
738
|
+
update!(**args)
|
739
|
+
end
|
740
|
+
|
741
|
+
# Update properties of this object
|
742
|
+
def update!(**args)
|
743
|
+
@highlighted_text_ranges = args[:highlighted_text_ranges] if args.key?(:highlighted_text_ranges)
|
744
|
+
@text = args[:text] if args.key?(:text)
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
# The range of highlighted text.
|
749
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange
|
750
|
+
include Google::Apis::Core::Hashable
|
751
|
+
|
752
|
+
#
|
753
|
+
# Corresponds to the JSON property `endIndex`
|
754
|
+
# @return [Fixnum]
|
755
|
+
attr_accessor :end_index
|
756
|
+
|
757
|
+
#
|
758
|
+
# Corresponds to the JSON property `startIndex`
|
759
|
+
# @return [Fixnum]
|
760
|
+
attr_accessor :start_index
|
761
|
+
|
762
|
+
def initialize(**args)
|
763
|
+
update!(**args)
|
764
|
+
end
|
765
|
+
|
766
|
+
# Update properties of this object
|
767
|
+
def update!(**args)
|
768
|
+
@end_index = args[:end_index] if args.key?(:end_index)
|
769
|
+
@start_index = args[:start_index] if args.key?(:start_index)
|
770
|
+
end
|
771
|
+
end
|
772
|
+
|
548
773
|
# Information about the EV Charge Station hosted in Place. Terminology follows
|
549
774
|
# https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could
|
550
775
|
# charge one car at a time. One port has one or more connectors. One station has
|
@@ -781,6 +1006,13 @@ module Google
|
|
781
1006
|
attr_accessor :allows_dogs
|
782
1007
|
alias_method :allows_dogs?, :allows_dogs
|
783
1008
|
|
1009
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
1010
|
+
# service/experimental/places-generative for more details. AI-generated summary
|
1011
|
+
# of the area that the place is in.
|
1012
|
+
# Corresponds to the JSON property `areaSummary`
|
1013
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary]
|
1014
|
+
attr_accessor :area_summary
|
1015
|
+
|
784
1016
|
# A set of data provider that must be shown with this result.
|
785
1017
|
# Corresponds to the JSON property `attributions`
|
786
1018
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
|
@@ -855,6 +1087,13 @@ module Google
|
|
855
1087
|
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions]
|
856
1088
|
attr_accessor :fuel_options
|
857
1089
|
|
1090
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
1091
|
+
# service/experimental/places-generative for more details. AI-generated summary
|
1092
|
+
# of the place.
|
1093
|
+
# Corresponds to the JSON property `generativeSummary`
|
1094
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary]
|
1095
|
+
attr_accessor :generative_summary
|
1096
|
+
|
858
1097
|
# Place is good for children.
|
859
1098
|
# Corresponds to the JSON property `goodForChildren`
|
860
1099
|
# @return [Boolean]
|
@@ -1149,6 +1388,7 @@ module Google
|
|
1149
1388
|
@address_components = args[:address_components] if args.key?(:address_components)
|
1150
1389
|
@adr_format_address = args[:adr_format_address] if args.key?(:adr_format_address)
|
1151
1390
|
@allows_dogs = args[:allows_dogs] if args.key?(:allows_dogs)
|
1391
|
+
@area_summary = args[:area_summary] if args.key?(:area_summary)
|
1152
1392
|
@attributions = args[:attributions] if args.key?(:attributions)
|
1153
1393
|
@business_status = args[:business_status] if args.key?(:business_status)
|
1154
1394
|
@curbside_pickup = args[:curbside_pickup] if args.key?(:curbside_pickup)
|
@@ -1161,6 +1401,7 @@ module Google
|
|
1161
1401
|
@ev_charge_options = args[:ev_charge_options] if args.key?(:ev_charge_options)
|
1162
1402
|
@formatted_address = args[:formatted_address] if args.key?(:formatted_address)
|
1163
1403
|
@fuel_options = args[:fuel_options] if args.key?(:fuel_options)
|
1404
|
+
@generative_summary = args[:generative_summary] if args.key?(:generative_summary)
|
1164
1405
|
@good_for_children = args[:good_for_children] if args.key?(:good_for_children)
|
1165
1406
|
@good_for_groups = args[:good_for_groups] if args.key?(:good_for_groups)
|
1166
1407
|
@good_for_watching_sports = args[:good_for_watching_sports] if args.key?(:good_for_watching_sports)
|
@@ -1292,6 +1533,28 @@ module Google
|
|
1292
1533
|
end
|
1293
1534
|
end
|
1294
1535
|
|
1536
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
1537
|
+
# service/experimental/places-generative for more details. AI-generated summary
|
1538
|
+
# of the area that the place is in.
|
1539
|
+
class GoogleMapsPlacesV1PlaceAreaSummary
|
1540
|
+
include Google::Apis::Core::Hashable
|
1541
|
+
|
1542
|
+
# Content blocks that compose the area summary. Each block has a separate topic
|
1543
|
+
# about the area.
|
1544
|
+
# Corresponds to the JSON property `contentBlocks`
|
1545
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock>]
|
1546
|
+
attr_accessor :content_blocks
|
1547
|
+
|
1548
|
+
def initialize(**args)
|
1549
|
+
update!(**args)
|
1550
|
+
end
|
1551
|
+
|
1552
|
+
# Update properties of this object
|
1553
|
+
def update!(**args)
|
1554
|
+
@content_blocks = args[:content_blocks] if args.key?(:content_blocks)
|
1555
|
+
end
|
1556
|
+
end
|
1557
|
+
|
1295
1558
|
# Information about data providers of this place.
|
1296
1559
|
class GoogleMapsPlacesV1PlaceAttribution
|
1297
1560
|
include Google::Apis::Core::Hashable
|
@@ -1317,6 +1580,41 @@ module Google
|
|
1317
1580
|
end
|
1318
1581
|
end
|
1319
1582
|
|
1583
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
1584
|
+
# service/experimental/places-generative for more details. AI-generated summary
|
1585
|
+
# of the place.
|
1586
|
+
class GoogleMapsPlacesV1PlaceGenerativeSummary
|
1587
|
+
include Google::Apis::Core::Hashable
|
1588
|
+
|
1589
|
+
# Localized variant of a text in a particular language.
|
1590
|
+
# Corresponds to the JSON property `description`
|
1591
|
+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
|
1592
|
+
attr_accessor :description
|
1593
|
+
|
1594
|
+
# Localized variant of a text in a particular language.
|
1595
|
+
# Corresponds to the JSON property `overview`
|
1596
|
+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
|
1597
|
+
attr_accessor :overview
|
1598
|
+
|
1599
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
1600
|
+
# service/experimental/places-generative for more details. Reference that the
|
1601
|
+
# generative content is related to.
|
1602
|
+
# Corresponds to the JSON property `references`
|
1603
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1References]
|
1604
|
+
attr_accessor :references
|
1605
|
+
|
1606
|
+
def initialize(**args)
|
1607
|
+
update!(**args)
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
# Update properties of this object
|
1611
|
+
def update!(**args)
|
1612
|
+
@description = args[:description] if args.key?(:description)
|
1613
|
+
@overview = args[:overview] if args.key?(:overview)
|
1614
|
+
@references = args[:references] if args.key?(:references)
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
|
1320
1618
|
# Information about business hour of the place.
|
1321
1619
|
class GoogleMapsPlacesV1PlaceOpeningHours
|
1322
1620
|
include Google::Apis::Core::Hashable
|
@@ -1639,6 +1937,34 @@ module Google
|
|
1639
1937
|
end
|
1640
1938
|
end
|
1641
1939
|
|
1940
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
1941
|
+
# service/experimental/places-generative for more details. Reference that the
|
1942
|
+
# generative content is related to.
|
1943
|
+
class GoogleMapsPlacesV1References
|
1944
|
+
include Google::Apis::Core::Hashable
|
1945
|
+
|
1946
|
+
# The list of resource names of the referenced places. This name can be used in
|
1947
|
+
# other APIs that accept Place resource names.
|
1948
|
+
# Corresponds to the JSON property `places`
|
1949
|
+
# @return [Array<String>]
|
1950
|
+
attr_accessor :places
|
1951
|
+
|
1952
|
+
# Reviews that serve as references.
|
1953
|
+
# Corresponds to the JSON property `reviews`
|
1954
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
|
1955
|
+
attr_accessor :reviews
|
1956
|
+
|
1957
|
+
def initialize(**args)
|
1958
|
+
update!(**args)
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
# Update properties of this object
|
1962
|
+
def update!(**args)
|
1963
|
+
@places = args[:places] if args.key?(:places)
|
1964
|
+
@reviews = args[:reviews] if args.key?(:reviews)
|
1965
|
+
end
|
1966
|
+
end
|
1967
|
+
|
1642
1968
|
# Information about a review of a place.
|
1643
1969
|
class GoogleMapsPlacesV1Review
|
1644
1970
|
include Google::Apis::Core::Hashable
|
@@ -1896,10 +2222,14 @@ module Google
|
|
1896
2222
|
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationRestriction]
|
1897
2223
|
attr_accessor :location_restriction
|
1898
2224
|
|
1899
|
-
#
|
1900
|
-
#
|
1901
|
-
#
|
1902
|
-
#
|
2225
|
+
# Deprecated: Use `page_size` instead. The maximum number of results per page
|
2226
|
+
# that can be returned. If the number of available results is larger than `
|
2227
|
+
# max_result_count`, a `next_page_token` is returned which can be passed to `
|
2228
|
+
# page_token` to get the next page of results in subsequent requests. If 0 or no
|
2229
|
+
# value is provided, a default of 20 is used. The maximum value is 20; values
|
2230
|
+
# above 20 will be coerced to 20. Negative values will return an
|
2231
|
+
# INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are
|
2232
|
+
# specified, `max_result_count` will be ignored.
|
1903
2233
|
# Corresponds to the JSON property `maxResultCount`
|
1904
2234
|
# @return [Fixnum]
|
1905
2235
|
attr_accessor :max_result_count
|
@@ -1920,6 +2250,26 @@ module Google
|
|
1920
2250
|
attr_accessor :open_now
|
1921
2251
|
alias_method :open_now?, :open_now
|
1922
2252
|
|
2253
|
+
# Optional. The maximum number of results per page that can be returned. If the
|
2254
|
+
# number of available results is larger than `page_size`, a `next_page_token` is
|
2255
|
+
# returned which can be passed to `page_token` to get the next page of results
|
2256
|
+
# in subsequent requests. If 0 or no value is provided, a default of 20 is used.
|
2257
|
+
# The maximum value is 20; values above 20 will be set to 20. Negative values
|
2258
|
+
# will return an INVALID_ARGUMENT error. If both `max_result_count` and `
|
2259
|
+
# page_size` are specified, `max_result_count` will be ignored.
|
2260
|
+
# Corresponds to the JSON property `pageSize`
|
2261
|
+
# @return [Fixnum]
|
2262
|
+
attr_accessor :page_size
|
2263
|
+
|
2264
|
+
# Optional. A page token, received from a previous TextSearch call. Provide this
|
2265
|
+
# to retrieve the subsequent page. When paginating, all parameters other than `
|
2266
|
+
# page_token`, `page_size`, and `max_result_count` provided to TextSearch must
|
2267
|
+
# match the initial call that provided the page token. Otherwise an
|
2268
|
+
# INVALID_ARGUMENT error is returned.
|
2269
|
+
# Corresponds to the JSON property `pageToken`
|
2270
|
+
# @return [String]
|
2271
|
+
attr_accessor :page_token
|
2272
|
+
|
1923
2273
|
# Used to restrict the search to places that are marked as certain price levels.
|
1924
2274
|
# Users can choose any combinations of price levels. Default to select all price
|
1925
2275
|
# levels.
|
@@ -1968,6 +2318,8 @@ module Google
|
|
1968
2318
|
@max_result_count = args[:max_result_count] if args.key?(:max_result_count)
|
1969
2319
|
@min_rating = args[:min_rating] if args.key?(:min_rating)
|
1970
2320
|
@open_now = args[:open_now] if args.key?(:open_now)
|
2321
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
2322
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
1971
2323
|
@price_levels = args[:price_levels] if args.key?(:price_levels)
|
1972
2324
|
@rank_preference = args[:rank_preference] if args.key?(:rank_preference)
|
1973
2325
|
@region_code = args[:region_code] if args.key?(:region_code)
|
@@ -2083,6 +2435,24 @@ module Google
|
|
2083
2435
|
class GoogleMapsPlacesV1SearchTextResponse
|
2084
2436
|
include Google::Apis::Core::Hashable
|
2085
2437
|
|
2438
|
+
# Experimental: See https://developers.google.com/maps/documentation/places/web-
|
2439
|
+
# service/experimental/places-generative for more details. A list of contextual
|
2440
|
+
# contents where each entry associates to the corresponding place in the same
|
2441
|
+
# index in the places field. The contents that are relevant to the `text_query`
|
2442
|
+
# in the request are preferred. If the contextual content is not available for
|
2443
|
+
# one of the places, it will return non-contextual content. It will be empty
|
2444
|
+
# only when the content is unavailable for this place. This list should have as
|
2445
|
+
# many entries as the list of places if requested.
|
2446
|
+
# Corresponds to the JSON property `contextualContents`
|
2447
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent>]
|
2448
|
+
attr_accessor :contextual_contents
|
2449
|
+
|
2450
|
+
# A token that can be sent as `page_token` to retrieve the next page. If this
|
2451
|
+
# field is omitted or empty, there are no subsequent pages.
|
2452
|
+
# Corresponds to the JSON property `nextPageToken`
|
2453
|
+
# @return [String]
|
2454
|
+
attr_accessor :next_page_token
|
2455
|
+
|
2086
2456
|
# A list of places that meet the user's text search criteria.
|
2087
2457
|
# Corresponds to the JSON property `places`
|
2088
2458
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Place>]
|
@@ -2094,6 +2464,8 @@ module Google
|
|
2094
2464
|
|
2095
2465
|
# Update properties of this object
|
2096
2466
|
def update!(**args)
|
2467
|
+
@contextual_contents = args[:contextual_contents] if args.key?(:contextual_contents)
|
2468
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2097
2469
|
@places = args[:places] if args.key?(:places)
|
2098
2470
|
end
|
2099
2471
|
end
|
@@ -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.22.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240519"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,48 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleMapsPlacesV1ContentBlock
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleMapsPlacesV1ContextualContent
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleMapsPlacesV1ContextualContentJustification
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
103
145
|
class GoogleMapsPlacesV1EvChargeOptions
|
104
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
147
|
|
@@ -154,12 +196,24 @@ module Google
|
|
154
196
|
include Google::Apis::Core::JsonObjectSupport
|
155
197
|
end
|
156
198
|
|
199
|
+
class GoogleMapsPlacesV1PlaceAreaSummary
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
157
205
|
class GoogleMapsPlacesV1PlaceAttribution
|
158
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
207
|
|
160
208
|
include Google::Apis::Core::JsonObjectSupport
|
161
209
|
end
|
162
210
|
|
211
|
+
class GoogleMapsPlacesV1PlaceGenerativeSummary
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
163
217
|
class GoogleMapsPlacesV1PlaceOpeningHours
|
164
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
219
|
|
@@ -208,6 +262,12 @@ module Google
|
|
208
262
|
include Google::Apis::Core::JsonObjectSupport
|
209
263
|
end
|
210
264
|
|
265
|
+
class GoogleMapsPlacesV1References
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
211
271
|
class GoogleMapsPlacesV1Review
|
212
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
273
|
|
@@ -423,6 +483,75 @@ module Google
|
|
423
483
|
end
|
424
484
|
end
|
425
485
|
|
486
|
+
class GoogleMapsPlacesV1ContentBlock
|
487
|
+
# @private
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
489
|
+
property :content, as: 'content', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
|
490
|
+
|
491
|
+
property :references, as: 'references', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1References, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1References::Representation
|
492
|
+
|
493
|
+
property :topic, as: 'topic'
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
class GoogleMapsPlacesV1ContextualContent
|
498
|
+
# @private
|
499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
500
|
+
collection :justifications, as: 'justifications', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification::Representation
|
501
|
+
|
502
|
+
collection :photos, as: 'photos', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo::Representation
|
503
|
+
|
504
|
+
collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
|
505
|
+
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
class GoogleMapsPlacesV1ContextualContentJustification
|
510
|
+
# @private
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
512
|
+
property :business_availability_attributes_justification, as: 'businessAvailabilityAttributesJustification', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification::Representation
|
513
|
+
|
514
|
+
property :review_justification, as: 'reviewJustification', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification::Representation
|
515
|
+
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
519
|
+
class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
|
520
|
+
# @private
|
521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
522
|
+
property :delivery, as: 'delivery'
|
523
|
+
property :dine_in, as: 'dineIn'
|
524
|
+
property :takeout, as: 'takeout'
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
|
529
|
+
# @private
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
531
|
+
property :highlighted_text, as: 'highlightedText', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText::Representation
|
532
|
+
|
533
|
+
property :review, as: 'review', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
|
534
|
+
|
535
|
+
end
|
536
|
+
end
|
537
|
+
|
538
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
|
539
|
+
# @private
|
540
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
541
|
+
collection :highlighted_text_ranges, as: 'highlightedTextRanges', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange::Representation
|
542
|
+
|
543
|
+
property :text, as: 'text'
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange
|
548
|
+
# @private
|
549
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
550
|
+
property :end_index, as: 'endIndex'
|
551
|
+
property :start_index, as: 'startIndex'
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
426
555
|
class GoogleMapsPlacesV1EvChargeOptions
|
427
556
|
# @private
|
428
557
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -490,6 +619,8 @@ module Google
|
|
490
619
|
|
491
620
|
property :adr_format_address, as: 'adrFormatAddress'
|
492
621
|
property :allows_dogs, as: 'allowsDogs'
|
622
|
+
property :area_summary, as: 'areaSummary', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary::Representation
|
623
|
+
|
493
624
|
collection :attributions, as: 'attributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution::Representation
|
494
625
|
|
495
626
|
property :business_status, as: 'businessStatus'
|
@@ -509,6 +640,8 @@ module Google
|
|
509
640
|
property :formatted_address, as: 'formattedAddress'
|
510
641
|
property :fuel_options, as: 'fuelOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions::Representation
|
511
642
|
|
643
|
+
property :generative_summary, as: 'generativeSummary', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary::Representation
|
644
|
+
|
512
645
|
property :good_for_children, as: 'goodForChildren'
|
513
646
|
property :good_for_groups, as: 'goodForGroups'
|
514
647
|
property :good_for_watching_sports, as: 'goodForWatchingSports'
|
@@ -588,6 +721,14 @@ module Google
|
|
588
721
|
end
|
589
722
|
end
|
590
723
|
|
724
|
+
class GoogleMapsPlacesV1PlaceAreaSummary
|
725
|
+
# @private
|
726
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
727
|
+
collection :content_blocks, as: 'contentBlocks', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock::Representation
|
728
|
+
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
591
732
|
class GoogleMapsPlacesV1PlaceAttribution
|
592
733
|
# @private
|
593
734
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -596,6 +737,18 @@ module Google
|
|
596
737
|
end
|
597
738
|
end
|
598
739
|
|
740
|
+
class GoogleMapsPlacesV1PlaceGenerativeSummary
|
741
|
+
# @private
|
742
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
743
|
+
property :description, as: 'description', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
|
744
|
+
|
745
|
+
property :overview, as: 'overview', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
|
746
|
+
|
747
|
+
property :references, as: 'references', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1References, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1References::Representation
|
748
|
+
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
599
752
|
class GoogleMapsPlacesV1PlaceOpeningHours
|
600
753
|
# @private
|
601
754
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -678,6 +831,15 @@ module Google
|
|
678
831
|
end
|
679
832
|
end
|
680
833
|
|
834
|
+
class GoogleMapsPlacesV1References
|
835
|
+
# @private
|
836
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
837
|
+
collection :places, as: 'places'
|
838
|
+
collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
|
839
|
+
|
840
|
+
end
|
841
|
+
end
|
842
|
+
|
681
843
|
class GoogleMapsPlacesV1Review
|
682
844
|
# @private
|
683
845
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -740,6 +902,8 @@ module Google
|
|
740
902
|
property :max_result_count, as: 'maxResultCount'
|
741
903
|
property :min_rating, as: 'minRating'
|
742
904
|
property :open_now, as: 'openNow'
|
905
|
+
property :page_size, as: 'pageSize'
|
906
|
+
property :page_token, as: 'pageToken'
|
743
907
|
collection :price_levels, as: 'priceLevels'
|
744
908
|
property :rank_preference, as: 'rankPreference'
|
745
909
|
property :region_code, as: 'regionCode'
|
@@ -777,6 +941,9 @@ module Google
|
|
777
941
|
class GoogleMapsPlacesV1SearchTextResponse
|
778
942
|
# @private
|
779
943
|
class Representation < Google::Apis::Core::JsonRepresentation
|
944
|
+
collection :contextual_contents, as: 'contextualContents', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent::Representation
|
945
|
+
|
946
|
+
property :next_page_token, as: 'nextPageToken'
|
780
947
|
collection :places, as: 'places', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place::Representation
|
781
948
|
|
782
949
|
end
|
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.22.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: 2024-
|
11
|
+
date: 2024-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.22.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: []
|