google-apis-places_v1 0.25.0 → 0.27.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: 610c02a1be8a46bd4320a6508facfb5b6c40bb0e1e385a524dcf4da82d0d4e08
|
4
|
+
data.tar.gz: 74fb35ecfa672272793291b24b1b24a4cac5bb9db6e78b1fe0626316f979ac0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17dc3e04b213e9bb12a89b4780b78a990878001cd8bd63a60bc7a43fef4c58c01aedee34e0953f5d247c7abacca8889a95b410b7064a65f231a4bd1e045d87d5
|
7
|
+
data.tar.gz: 86d8f4d3f4dd4f7d7dd218dc0e4abaed0f51afbd832d701a9375f8a0413b43abfc8916a99bab1dba49d66f0c832d74485f60be24c82e4debbba74954a1077d3c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.27.0 (2024-10-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241022
|
6
|
+
|
7
|
+
### v0.26.0 (2024-09-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240920
|
10
|
+
|
3
11
|
### v0.25.0 (2024-09-22)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240918
|
@@ -68,6 +68,137 @@ module Google
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
# A relational description of a location. Includes a ranked set of nearby
|
72
|
+
# landmarks and precise containing areas and their relationship to the target
|
73
|
+
# location.
|
74
|
+
class GoogleMapsPlacesV1AddressDescriptor
|
75
|
+
include Google::Apis::Core::Hashable
|
76
|
+
|
77
|
+
# A ranked list of containing or adjacent areas. The most recognizable and
|
78
|
+
# precise areas are ranked first.
|
79
|
+
# Corresponds to the JSON property `areas`
|
80
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea>]
|
81
|
+
attr_accessor :areas
|
82
|
+
|
83
|
+
# A ranked list of nearby landmarks. The most recognizable and nearby landmarks
|
84
|
+
# are ranked first.
|
85
|
+
# Corresponds to the JSON property `landmarks`
|
86
|
+
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark>]
|
87
|
+
attr_accessor :landmarks
|
88
|
+
|
89
|
+
def initialize(**args)
|
90
|
+
update!(**args)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Update properties of this object
|
94
|
+
def update!(**args)
|
95
|
+
@areas = args[:areas] if args.key?(:areas)
|
96
|
+
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Area information and the area's relationship with the target location. Areas
|
101
|
+
# includes precise sublocality, neighborhoods, and large compounds that are
|
102
|
+
# useful for describing a location.
|
103
|
+
class GoogleMapsPlacesV1AddressDescriptorArea
|
104
|
+
include Google::Apis::Core::Hashable
|
105
|
+
|
106
|
+
# Defines the spatial relationship between the target location and the area.
|
107
|
+
# Corresponds to the JSON property `containment`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :containment
|
110
|
+
|
111
|
+
# Localized variant of a text in a particular language.
|
112
|
+
# Corresponds to the JSON property `displayName`
|
113
|
+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
|
114
|
+
attr_accessor :display_name
|
115
|
+
|
116
|
+
# The area's resource name.
|
117
|
+
# Corresponds to the JSON property `name`
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :name
|
120
|
+
|
121
|
+
# The area's place id.
|
122
|
+
# Corresponds to the JSON property `placeId`
|
123
|
+
# @return [String]
|
124
|
+
attr_accessor :place_id
|
125
|
+
|
126
|
+
def initialize(**args)
|
127
|
+
update!(**args)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Update properties of this object
|
131
|
+
def update!(**args)
|
132
|
+
@containment = args[:containment] if args.key?(:containment)
|
133
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
134
|
+
@name = args[:name] if args.key?(:name)
|
135
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Basic landmark information and the landmark's relationship with the target
|
140
|
+
# location. Landmarks are prominent places that can be used to describe a
|
141
|
+
# location.
|
142
|
+
class GoogleMapsPlacesV1AddressDescriptorLandmark
|
143
|
+
include Google::Apis::Core::Hashable
|
144
|
+
|
145
|
+
# Localized variant of a text in a particular language.
|
146
|
+
# Corresponds to the JSON property `displayName`
|
147
|
+
# @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
|
148
|
+
attr_accessor :display_name
|
149
|
+
|
150
|
+
# The landmark's resource name.
|
151
|
+
# Corresponds to the JSON property `name`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :name
|
154
|
+
|
155
|
+
# The landmark's place id.
|
156
|
+
# Corresponds to the JSON property `placeId`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :place_id
|
159
|
+
|
160
|
+
# Defines the spatial relationship between the target location and the landmark.
|
161
|
+
# Corresponds to the JSON property `spatialRelationship`
|
162
|
+
# @return [String]
|
163
|
+
attr_accessor :spatial_relationship
|
164
|
+
|
165
|
+
# The straight line distance, in meters, between the center point of the target
|
166
|
+
# and the center point of the landmark. In some situations, this value can be
|
167
|
+
# longer than `travel_distance_meters`.
|
168
|
+
# Corresponds to the JSON property `straightLineDistanceMeters`
|
169
|
+
# @return [Float]
|
170
|
+
attr_accessor :straight_line_distance_meters
|
171
|
+
|
172
|
+
# The travel distance, in meters, along the road network from the target to the
|
173
|
+
# landmark, if known. This value does not take into account the mode of
|
174
|
+
# transportation, such as walking, driving, or biking.
|
175
|
+
# Corresponds to the JSON property `travelDistanceMeters`
|
176
|
+
# @return [Float]
|
177
|
+
attr_accessor :travel_distance_meters
|
178
|
+
|
179
|
+
# A set of type tags for this landmark. For a complete list of possible values,
|
180
|
+
# see https://developers.google.com/maps/documentation/places/web-service/place-
|
181
|
+
# types.
|
182
|
+
# Corresponds to the JSON property `types`
|
183
|
+
# @return [Array<String>]
|
184
|
+
attr_accessor :types
|
185
|
+
|
186
|
+
def initialize(**args)
|
187
|
+
update!(**args)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Update properties of this object
|
191
|
+
def update!(**args)
|
192
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
193
|
+
@name = args[:name] if args.key?(:name)
|
194
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
195
|
+
@spatial_relationship = args[:spatial_relationship] if args.key?(:spatial_relationship)
|
196
|
+
@straight_line_distance_meters = args[:straight_line_distance_meters] if args.key?(:straight_line_distance_meters)
|
197
|
+
@travel_distance_meters = args[:travel_distance_meters] if args.key?(:travel_distance_meters)
|
198
|
+
@types = args[:types] if args.key?(:types)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
71
202
|
# Information about the author of the UGC data. Used in Photo, and Review.
|
72
203
|
class GoogleMapsPlacesV1AuthorAttribution
|
73
204
|
include Google::Apis::Core::Hashable
|
@@ -995,6 +1126,13 @@ module Google
|
|
995
1126
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent>]
|
996
1127
|
attr_accessor :address_components
|
997
1128
|
|
1129
|
+
# A relational description of a location. Includes a ranked set of nearby
|
1130
|
+
# landmarks and precise containing areas and their relationship to the target
|
1131
|
+
# location.
|
1132
|
+
# Corresponds to the JSON property `addressDescriptor`
|
1133
|
+
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor]
|
1134
|
+
attr_accessor :address_descriptor
|
1135
|
+
|
998
1136
|
# The place's address in adr microformat: http://microformats.org/wiki/adr.
|
999
1137
|
# Corresponds to the JSON property `adrFormatAddress`
|
1000
1138
|
# @return [String]
|
@@ -1386,6 +1524,7 @@ module Google
|
|
1386
1524
|
def update!(**args)
|
1387
1525
|
@accessibility_options = args[:accessibility_options] if args.key?(:accessibility_options)
|
1388
1526
|
@address_components = args[:address_components] if args.key?(:address_components)
|
1527
|
+
@address_descriptor = args[:address_descriptor] if args.key?(:address_descriptor)
|
1389
1528
|
@adr_format_address = args[:adr_format_address] if args.key?(:adr_format_address)
|
1390
1529
|
@allows_dogs = args[:allows_dogs] if args.key?(:allows_dogs)
|
1391
1530
|
@area_summary = args[:area_summary] if args.key?(:area_summary)
|
@@ -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.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241022"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,24 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class GoogleMapsPlacesV1AddressDescriptor
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GoogleMapsPlacesV1AddressDescriptorArea
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GoogleMapsPlacesV1AddressDescriptorLandmark
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
31
49
|
class GoogleMapsPlacesV1AuthorAttribution
|
32
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
51
|
|
@@ -392,6 +410,41 @@ module Google
|
|
392
410
|
end
|
393
411
|
end
|
394
412
|
|
413
|
+
class GoogleMapsPlacesV1AddressDescriptor
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
collection :areas, as: 'areas', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea::Representation
|
417
|
+
|
418
|
+
collection :landmarks, as: 'landmarks', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorLandmark::Representation
|
419
|
+
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
class GoogleMapsPlacesV1AddressDescriptorArea
|
424
|
+
# @private
|
425
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
426
|
+
property :containment, as: 'containment'
|
427
|
+
property :display_name, as: 'displayName', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
|
428
|
+
|
429
|
+
property :name, as: 'name'
|
430
|
+
property :place_id, as: 'placeId'
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
class GoogleMapsPlacesV1AddressDescriptorLandmark
|
435
|
+
# @private
|
436
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
437
|
+
property :display_name, as: 'displayName', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
|
438
|
+
|
439
|
+
property :name, as: 'name'
|
440
|
+
property :place_id, as: 'placeId'
|
441
|
+
property :spatial_relationship, as: 'spatialRelationship'
|
442
|
+
property :straight_line_distance_meters, as: 'straightLineDistanceMeters'
|
443
|
+
property :travel_distance_meters, as: 'travelDistanceMeters'
|
444
|
+
collection :types, as: 'types'
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
395
448
|
class GoogleMapsPlacesV1AuthorAttribution
|
396
449
|
# @private
|
397
450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -653,6 +706,8 @@ module Google
|
|
653
706
|
|
654
707
|
collection :address_components, as: 'addressComponents', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent::Representation
|
655
708
|
|
709
|
+
property :address_descriptor, as: 'addressDescriptor', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptor::Representation
|
710
|
+
|
656
711
|
property :adr_format_address, as: 'adrFormatAddress'
|
657
712
|
property :allows_dogs, as: 'allowsDogs'
|
658
713
|
property :area_summary, as: 'areaSummary', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary::Representation
|
@@ -41,6 +41,9 @@ module Google
|
|
41
41
|
# Private Service: https://www.googleapis.com/auth/maps-platform.places.details
|
42
42
|
AUTH_MAPS_PLATFORM_PLACES_DETAILS = 'https://www.googleapis.com/auth/maps-platform.places.details'
|
43
43
|
|
44
|
+
# Private Service: https://www.googleapis.com/auth/maps-platform.places.getphotomedia
|
45
|
+
AUTH_MAPS_PLATFORM_PLACES_GETPHOTOMEDIA = 'https://www.googleapis.com/auth/maps-platform.places.getphotomedia'
|
46
|
+
|
44
47
|
# Private Service: https://www.googleapis.com/auth/maps-platform.places.nearbysearch
|
45
48
|
AUTH_MAPS_PLATFORM_PLACES_NEARBYSEARCH = 'https://www.googleapis.com/auth/maps-platform.places.nearbysearch'
|
46
49
|
|
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.27.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-10-27 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.27.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.5.
|
78
|
+
rubygems_version: 3.5.21
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Places API (New) V1
|