google-apis-places_v1 0.3.0 → 0.5.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6330cbfdc900b60417277ed5ba763ccd6be1c25d1d955eb8545b2704d4f6e82
|
4
|
+
data.tar.gz: e15dd735333564dd95d9022e58ba5514335f6ff480daa026476c3621c589a17d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7418e72c2bbdf6eb4273956db8b073750814fae429670d6e46e6a2fcad5b1077385565a7f4e9f338824a9f507912dc358dac3caab19c41a8db33933bb8daa611
|
7
|
+
data.tar.gz: e56ec9b56db759791c2776e197de9b1689af7169240dbe9d58ed332c8beca887acad82bece45fce5463684249fb1531eb068f283dc7cf86044e02def15a2ee1a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.5.0 (2023-09-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230829
|
6
|
+
|
7
|
+
### v0.4.0 (2023-08-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230822
|
10
|
+
|
3
11
|
### v0.3.0 (2023-08-13)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230806
|
@@ -127,33 +127,6 @@ module Google
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
# int 32 range. Both min and max are optional. If only min is set, then the
|
131
|
-
# range only has a lower bound. If only max is set, then range only has an upper
|
132
|
-
# bound. At least one of min and max must be set. Values are inclusive.
|
133
|
-
class GoogleMapsPlacesV1Int32Range
|
134
|
-
include Google::Apis::Core::Hashable
|
135
|
-
|
136
|
-
# Upper bound. If unset, behavior is documented on the range field.
|
137
|
-
# Corresponds to the JSON property `max`
|
138
|
-
# @return [Fixnum]
|
139
|
-
attr_accessor :max
|
140
|
-
|
141
|
-
# Lower bound. If unset, behavior is documented on the range field.
|
142
|
-
# Corresponds to the JSON property `min`
|
143
|
-
# @return [Fixnum]
|
144
|
-
attr_accessor :min
|
145
|
-
|
146
|
-
def initialize(**args)
|
147
|
-
update!(**args)
|
148
|
-
end
|
149
|
-
|
150
|
-
# Update properties of this object
|
151
|
-
def update!(**args)
|
152
|
-
@max = args[:max] if args.key?(:max)
|
153
|
-
@min = args[:min] if args.key?(:min)
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
130
|
# All the information representing a Place.
|
158
131
|
class GoogleMapsPlacesV1Place
|
159
132
|
include Google::Apis::Core::Hashable
|
@@ -632,12 +605,6 @@ module Google
|
|
632
605
|
# @return [Google::Apis::PlacesV1::GoogleTypeDate]
|
633
606
|
attr_accessor :date
|
634
607
|
|
635
|
-
# Output only. Date of the endpoint expressed in RFC3339 format in the local
|
636
|
-
# timezone for the place. For example 2010-12-31.
|
637
|
-
# Corresponds to the JSON property `dateDeprecated`
|
638
|
-
# @return [String]
|
639
|
-
attr_accessor :date_deprecated
|
640
|
-
|
641
608
|
# Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1
|
642
609
|
# is Monday, etc.
|
643
610
|
# Corresponds to the JSON property `day`
|
@@ -670,7 +637,6 @@ module Google
|
|
670
637
|
# Update properties of this object
|
671
638
|
def update!(**args)
|
672
639
|
@date = args[:date] if args.key?(:date)
|
673
|
-
@date_deprecated = args[:date_deprecated] if args.key?(:date_deprecated)
|
674
640
|
@day = args[:day] if args.key?(:day)
|
675
641
|
@hour = args[:hour] if args.key?(:hour)
|
676
642
|
@minute = args[:minute] if args.key?(:minute)
|
@@ -806,11 +772,6 @@ module Google
|
|
806
772
|
# @return [String]
|
807
773
|
attr_accessor :language_code
|
808
774
|
|
809
|
-
# [Deprecated!]The region to search.
|
810
|
-
# Corresponds to the JSON property `location`
|
811
|
-
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocation]
|
812
|
-
attr_accessor :location
|
813
|
-
|
814
775
|
# The region to search. This location serves as a bias which means results
|
815
776
|
# around given location might be returned.
|
816
777
|
# Corresponds to the JSON property `locationBias`
|
@@ -854,23 +815,17 @@ module Google
|
|
854
815
|
# @return [Array<String>]
|
855
816
|
attr_accessor :price_levels
|
856
817
|
|
857
|
-
# int 32 range. Both min and max are optional. If only min is set, then the
|
858
|
-
# range only has a lower bound. If only max is set, then range only has an upper
|
859
|
-
# bound. At least one of min and max must be set. Values are inclusive.
|
860
|
-
# Corresponds to the JSON property `priceRange`
|
861
|
-
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1Int32Range]
|
862
|
-
attr_accessor :price_range
|
863
|
-
|
864
818
|
# How results will be ranked in the response.
|
865
819
|
# Corresponds to the JSON property `rankPreference`
|
866
820
|
# @return [String]
|
867
821
|
attr_accessor :rank_preference
|
868
822
|
|
869
823
|
# The Unicode country/region code (CLDR) of the location where the request is
|
870
|
-
# coming from.
|
871
|
-
# place name, if available.
|
872
|
-
#
|
873
|
-
# currently
|
824
|
+
# coming from. This parameter is used to display the place details, like region-
|
825
|
+
# specific place name, if available. The parameter can affect results based on
|
826
|
+
# applicable law. For more information, see http://www.unicode.org/reports/tr35/#
|
827
|
+
# unicode_region_subtag. Note that 3-digit region codes are not currently
|
828
|
+
# supported.
|
874
829
|
# Corresponds to the JSON property `regionCode`
|
875
830
|
# @return [String]
|
876
831
|
attr_accessor :region_code
|
@@ -895,14 +850,12 @@ module Google
|
|
895
850
|
def update!(**args)
|
896
851
|
@included_type = args[:included_type] if args.key?(:included_type)
|
897
852
|
@language_code = args[:language_code] if args.key?(:language_code)
|
898
|
-
@location = args[:location] if args.key?(:location)
|
899
853
|
@location_bias = args[:location_bias] if args.key?(:location_bias)
|
900
854
|
@location_restriction = args[:location_restriction] if args.key?(:location_restriction)
|
901
855
|
@max_result_count = args[:max_result_count] if args.key?(:max_result_count)
|
902
856
|
@min_rating = args[:min_rating] if args.key?(:min_rating)
|
903
857
|
@open_now = args[:open_now] if args.key?(:open_now)
|
904
858
|
@price_levels = args[:price_levels] if args.key?(:price_levels)
|
905
|
-
@price_range = args[:price_range] if args.key?(:price_range)
|
906
859
|
@rank_preference = args[:rank_preference] if args.key?(:rank_preference)
|
907
860
|
@region_code = args[:region_code] if args.key?(:region_code)
|
908
861
|
@strict_type_filtering = args[:strict_type_filtering] if args.key?(:strict_type_filtering)
|
@@ -910,48 +863,6 @@ module Google
|
|
910
863
|
end
|
911
864
|
end
|
912
865
|
|
913
|
-
# [Deprecated!]The region to search.
|
914
|
-
class GoogleMapsPlacesV1SearchTextRequestLocation
|
915
|
-
include Google::Apis::Core::Hashable
|
916
|
-
|
917
|
-
# A latitude-longitude viewport, represented as two diagonally opposite `low`
|
918
|
-
# and `high` points. A viewport is considered a closed region, i.e. it includes
|
919
|
-
# its boundary. The latitude bounds must range between -90 to 90 degrees
|
920
|
-
# inclusive, and the longitude bounds must range between -180 to 180 degrees
|
921
|
-
# inclusive. Various cases include: - If `low` = `high`, the viewport consists
|
922
|
-
# of that single point. - If `low.longitude` > `high.longitude`, the longitude
|
923
|
-
# range is inverted (the viewport crosses the 180 degree longitude line). - If `
|
924
|
-
# low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport
|
925
|
-
# includes all longitudes. - If `low.longitude` = 180 degrees and `high.
|
926
|
-
# longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` >
|
927
|
-
# `high.latitude`, the latitude range is empty. Both `low` and `high` must be
|
928
|
-
# populated, and the represented box cannot be empty (as specified by the
|
929
|
-
# definitions above). An empty viewport will result in an error. For example,
|
930
|
-
# this viewport fully encloses New York City: ` "low": ` "latitude": 40.477398, "
|
931
|
-
# longitude": -74.259087 `, "high": ` "latitude": 40.91618, "longitude": -73.
|
932
|
-
# 70018 ` `
|
933
|
-
# Corresponds to the JSON property `rectangle`
|
934
|
-
# @return [Google::Apis::PlacesV1::GoogleGeoTypeViewport]
|
935
|
-
attr_accessor :rectangle
|
936
|
-
|
937
|
-
# Make location field a strict restriction and filter out POIs outside of the
|
938
|
-
# given location. If location type field is unset this field will have no effect.
|
939
|
-
# Corresponds to the JSON property `strictRestriction`
|
940
|
-
# @return [Boolean]
|
941
|
-
attr_accessor :strict_restriction
|
942
|
-
alias_method :strict_restriction?, :strict_restriction
|
943
|
-
|
944
|
-
def initialize(**args)
|
945
|
-
update!(**args)
|
946
|
-
end
|
947
|
-
|
948
|
-
# Update properties of this object
|
949
|
-
def update!(**args)
|
950
|
-
@rectangle = args[:rectangle] if args.key?(:rectangle)
|
951
|
-
@strict_restriction = args[:strict_restriction] if args.key?(:strict_restriction)
|
952
|
-
end
|
953
|
-
end
|
954
|
-
|
955
866
|
# The region to search. This location serves as a bias which means results
|
956
867
|
# around given location might be returned.
|
957
868
|
class GoogleMapsPlacesV1SearchTextRequestLocationBias
|
@@ -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.5.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230829"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,12 +40,6 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class GoogleMapsPlacesV1Int32Range
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
43
|
class GoogleMapsPlacesV1Place
|
50
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
45
|
|
@@ -106,12 +100,6 @@ module Google
|
|
106
100
|
include Google::Apis::Core::JsonObjectSupport
|
107
101
|
end
|
108
102
|
|
109
|
-
class GoogleMapsPlacesV1SearchTextRequestLocation
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
103
|
class GoogleMapsPlacesV1SearchTextRequestLocationBias
|
116
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
105
|
|
@@ -176,14 +164,6 @@ module Google
|
|
176
164
|
end
|
177
165
|
end
|
178
166
|
|
179
|
-
class GoogleMapsPlacesV1Int32Range
|
180
|
-
# @private
|
181
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
-
property :max, as: 'max'
|
183
|
-
property :min, as: 'min'
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
167
|
class GoogleMapsPlacesV1Place
|
188
168
|
# @private
|
189
169
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -289,7 +269,6 @@ module Google
|
|
289
269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
290
270
|
property :date, as: 'date', class: Google::Apis::PlacesV1::GoogleTypeDate, decorator: Google::Apis::PlacesV1::GoogleTypeDate::Representation
|
291
271
|
|
292
|
-
property :date_deprecated, as: 'dateDeprecated'
|
293
272
|
property :day, as: 'day'
|
294
273
|
property :hour, as: 'hour'
|
295
274
|
property :minute, as: 'minute'
|
@@ -333,8 +312,6 @@ module Google
|
|
333
312
|
class Representation < Google::Apis::Core::JsonRepresentation
|
334
313
|
property :included_type, as: 'includedType'
|
335
314
|
property :language_code, as: 'languageCode'
|
336
|
-
property :location, as: 'location', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocation, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocation::Representation
|
337
|
-
|
338
315
|
property :location_bias, as: 'locationBias', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationBias, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationBias::Representation
|
339
316
|
|
340
317
|
property :location_restriction, as: 'locationRestriction', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationRestriction, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationRestriction::Representation
|
@@ -343,8 +320,6 @@ module Google
|
|
343
320
|
property :min_rating, as: 'minRating'
|
344
321
|
property :open_now, as: 'openNow'
|
345
322
|
collection :price_levels, as: 'priceLevels'
|
346
|
-
property :price_range, as: 'priceRange', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Int32Range, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Int32Range::Representation
|
347
|
-
|
348
323
|
property :rank_preference, as: 'rankPreference'
|
349
324
|
property :region_code, as: 'regionCode'
|
350
325
|
property :strict_type_filtering, as: 'strictTypeFiltering'
|
@@ -352,15 +327,6 @@ module Google
|
|
352
327
|
end
|
353
328
|
end
|
354
329
|
|
355
|
-
class GoogleMapsPlacesV1SearchTextRequestLocation
|
356
|
-
# @private
|
357
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
358
|
-
property :rectangle, as: 'rectangle', class: Google::Apis::PlacesV1::GoogleGeoTypeViewport, decorator: Google::Apis::PlacesV1::GoogleGeoTypeViewport::Representation
|
359
|
-
|
360
|
-
property :strict_restriction, as: 'strictRestriction'
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
330
|
class GoogleMapsPlacesV1SearchTextRequestLocationBias
|
365
331
|
# @private
|
366
332
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-places_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.5.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Places API (New) V1
|