google-apis-places_v1 0.31.0 → 0.33.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/places_v1/classes.rb +159 -5
- data/lib/google/apis/places_v1/gem_version.rb +2 -2
- data/lib/google/apis/places_v1/representations.rb +25 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451bad0d55e9478b89aeb6cfc15ede4515b4ac73fc6833a795fcc444b659ae57
|
4
|
+
data.tar.gz: 992c2e06bf13930fdfe22e83b43d465ff3ef9523c18162b3318bfae5516f8943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e71048f4bdba05926fcf54ffd79b8216aeedd2f177fce95fc78298e06cf027bec8929f299d9ddbfa7a7ad7aea1281d6b5dc6b631933ad9d21b2aaf07ef5be85e
|
7
|
+
data.tar.gz: 3cb991c5ae08d51a0ef2b0e578eebfddee15ad317dbea9230a4f0c9207dbc6e6547239c77451b2b1cdb42b99e3f91aaf01031bafc00a4e9b557f2c082b51afe4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.33.0 (2025-03-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250318
|
6
|
+
|
7
|
+
### v0.32.0 (2025-03-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250312
|
10
|
+
|
3
11
|
### v0.31.0 (2025-03-09)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250302
|
@@ -1372,6 +1372,20 @@ module Google
|
|
1372
1372
|
# @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode]
|
1373
1373
|
attr_accessor :plus_code
|
1374
1374
|
|
1375
|
+
# Represents a postal address (for example, for postal delivery or payments
|
1376
|
+
# addresses). Given a postal address, a postal service can deliver items to a
|
1377
|
+
# premise, P.O. box or similar. It is not intended to model geographical
|
1378
|
+
# locations (roads, towns, mountains). In typical usage, an address would be
|
1379
|
+
# created by user input or from importing existing data, depending on the type
|
1380
|
+
# of process. Advice on address input or editing: - Use an internationalization-
|
1381
|
+
# ready address widget such as https://github.com/google/libaddressinput. -
|
1382
|
+
# Users should not be presented with UI elements for input or editing of fields
|
1383
|
+
# outside countries where that field is used. For more guidance on how to use
|
1384
|
+
# this schema, see: https://support.google.com/business/answer/6397478.
|
1385
|
+
# Corresponds to the JSON property `postalAddress`
|
1386
|
+
# @return [Google::Apis::PlacesV1::GoogleTypePostalAddress]
|
1387
|
+
attr_accessor :postal_address
|
1388
|
+
|
1375
1389
|
# Price level of the place.
|
1376
1390
|
# Corresponds to the JSON property `priceLevel`
|
1377
1391
|
# @return [String]
|
@@ -1510,7 +1524,7 @@ module Google
|
|
1510
1524
|
# @return [String]
|
1511
1525
|
attr_accessor :short_formatted_address
|
1512
1526
|
|
1513
|
-
# A list of sub
|
1527
|
+
# A list of sub-destinations related to the place.
|
1514
1528
|
# Corresponds to the JSON property `subDestinations`
|
1515
1529
|
# @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceSubDestination>]
|
1516
1530
|
attr_accessor :sub_destinations
|
@@ -1618,6 +1632,7 @@ module Google
|
|
1618
1632
|
@payment_options = args[:payment_options] if args.key?(:payment_options)
|
1619
1633
|
@photos = args[:photos] if args.key?(:photos)
|
1620
1634
|
@plus_code = args[:plus_code] if args.key?(:plus_code)
|
1635
|
+
@postal_address = args[:postal_address] if args.key?(:postal_address)
|
1621
1636
|
@price_level = args[:price_level] if args.key?(:price_level)
|
1622
1637
|
@price_range = args[:price_range] if args.key?(:price_range)
|
1623
1638
|
@primary_type = args[:primary_type] if args.key?(:primary_type)
|
@@ -2220,17 +2235,22 @@ module Google
|
|
2220
2235
|
end
|
2221
2236
|
end
|
2222
2237
|
|
2223
|
-
#
|
2224
|
-
#
|
2238
|
+
# Sub-destinations are specific places associated with a main place. These
|
2239
|
+
# provide more specific destinations for users who are searching within a large
|
2240
|
+
# or complex place, like an airport, national park, university, or stadium. For
|
2241
|
+
# example, sub-destinations at an airport might include associated terminals and
|
2242
|
+
# parking lots. Sub-destinations return the place ID and place resource name,
|
2243
|
+
# which can be used in subsequent Place Details (New) requests to fetch richer
|
2244
|
+
# details, including the sub-destination's display name and location.
|
2225
2245
|
class GoogleMapsPlacesV1PlaceSubDestination
|
2226
2246
|
include Google::Apis::Core::Hashable
|
2227
2247
|
|
2228
|
-
# The place id of the sub
|
2248
|
+
# The place id of the sub-destination.
|
2229
2249
|
# Corresponds to the JSON property `id`
|
2230
2250
|
# @return [String]
|
2231
2251
|
attr_accessor :id
|
2232
2252
|
|
2233
|
-
# The resource name of the sub
|
2253
|
+
# The resource name of the sub-destination.
|
2234
2254
|
# Corresponds to the JSON property `name`
|
2235
2255
|
# @return [String]
|
2236
2256
|
attr_accessor :name
|
@@ -3237,6 +3257,140 @@ module Google
|
|
3237
3257
|
end
|
3238
3258
|
end
|
3239
3259
|
|
3260
|
+
# Represents a postal address (for example, for postal delivery or payments
|
3261
|
+
# addresses). Given a postal address, a postal service can deliver items to a
|
3262
|
+
# premise, P.O. box or similar. It is not intended to model geographical
|
3263
|
+
# locations (roads, towns, mountains). In typical usage, an address would be
|
3264
|
+
# created by user input or from importing existing data, depending on the type
|
3265
|
+
# of process. Advice on address input or editing: - Use an internationalization-
|
3266
|
+
# ready address widget such as https://github.com/google/libaddressinput. -
|
3267
|
+
# Users should not be presented with UI elements for input or editing of fields
|
3268
|
+
# outside countries where that field is used. For more guidance on how to use
|
3269
|
+
# this schema, see: https://support.google.com/business/answer/6397478.
|
3270
|
+
class GoogleTypePostalAddress
|
3271
|
+
include Google::Apis::Core::Hashable
|
3272
|
+
|
3273
|
+
# Unstructured address lines describing the lower levels of an address. Because
|
3274
|
+
# values in `address_lines` do not have type information and may sometimes
|
3275
|
+
# contain multiple values in a single field (for example, "Austin, TX"), it is
|
3276
|
+
# important that the line order is clear. The order of address lines should be "
|
3277
|
+
# envelope order" for the country or region of the address. In places where this
|
3278
|
+
# can vary (for example, Japan), `address_language` is used to make it explicit (
|
3279
|
+
# for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-
|
3280
|
+
# to-large). In this way, the most specific line of an address can be selected
|
3281
|
+
# based on the language. The minimum permitted structural representation of an
|
3282
|
+
# address consists of a `region_code` with all remaining information placed in
|
3283
|
+
# the `address_lines`. It would be possible to format such an address very
|
3284
|
+
# approximately without geocoding, but no semantic reasoning could be made about
|
3285
|
+
# any of the address components until it was at least partially resolved.
|
3286
|
+
# Creating an address only containing a `region_code` and `address_lines` and
|
3287
|
+
# then geocoding is the recommended way to handle completely unstructured
|
3288
|
+
# addresses (as opposed to guessing which parts of the address should be
|
3289
|
+
# localities or administrative areas).
|
3290
|
+
# Corresponds to the JSON property `addressLines`
|
3291
|
+
# @return [Array<String>]
|
3292
|
+
attr_accessor :address_lines
|
3293
|
+
|
3294
|
+
# Optional. Highest administrative subdivision which is used for postal
|
3295
|
+
# addresses of a country or region. For example, this can be a state, a province,
|
3296
|
+
# an oblast, or a prefecture. For Spain, this is the province and not the
|
3297
|
+
# autonomous community (for example, "Barcelona" and not "Catalonia"). Many
|
3298
|
+
# countries don't use an administrative area in postal addresses. For example,
|
3299
|
+
# in Switzerland, this should be left unpopulated.
|
3300
|
+
# Corresponds to the JSON property `administrativeArea`
|
3301
|
+
# @return [String]
|
3302
|
+
attr_accessor :administrative_area
|
3303
|
+
|
3304
|
+
# Optional. BCP-47 language code of the contents of this address (if known).
|
3305
|
+
# This is often the UI language of the input form or is expected to match one of
|
3306
|
+
# the languages used in the address' country/region, or their transliterated
|
3307
|
+
# equivalents. This can affect formatting in certain countries, but is not
|
3308
|
+
# critical to the correctness of the data and will never affect any validation
|
3309
|
+
# or other non-formatting related operations. If this value is not known, it
|
3310
|
+
# should be omitted (rather than specifying a possibly incorrect default).
|
3311
|
+
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
|
3312
|
+
# Corresponds to the JSON property `languageCode`
|
3313
|
+
# @return [String]
|
3314
|
+
attr_accessor :language_code
|
3315
|
+
|
3316
|
+
# Optional. Generally refers to the city or town portion of the address.
|
3317
|
+
# Examples: US city, IT comune, UK post town. In regions of the world where
|
3318
|
+
# localities are not well defined or do not fit into this structure well, leave `
|
3319
|
+
# locality` empty and use `address_lines`.
|
3320
|
+
# Corresponds to the JSON property `locality`
|
3321
|
+
# @return [String]
|
3322
|
+
attr_accessor :locality
|
3323
|
+
|
3324
|
+
# Optional. The name of the organization at the address.
|
3325
|
+
# Corresponds to the JSON property `organization`
|
3326
|
+
# @return [String]
|
3327
|
+
attr_accessor :organization
|
3328
|
+
|
3329
|
+
# Optional. Postal code of the address. Not all countries use or require postal
|
3330
|
+
# codes to be present, but where they are used, they may trigger additional
|
3331
|
+
# validation with other parts of the address (for example, state or zip code
|
3332
|
+
# validation in the United States).
|
3333
|
+
# Corresponds to the JSON property `postalCode`
|
3334
|
+
# @return [String]
|
3335
|
+
attr_accessor :postal_code
|
3336
|
+
|
3337
|
+
# Optional. The recipient at the address. This field may, under certain
|
3338
|
+
# circumstances, contain multiline information. For example, it might contain "
|
3339
|
+
# care of" information.
|
3340
|
+
# Corresponds to the JSON property `recipients`
|
3341
|
+
# @return [Array<String>]
|
3342
|
+
attr_accessor :recipients
|
3343
|
+
|
3344
|
+
# Required. CLDR region code of the country/region of the address. This is never
|
3345
|
+
# inferred and it is up to the user to ensure the value is correct. See https://
|
3346
|
+
# cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/
|
3347
|
+
# territory_information.html for details. Example: "CH" for Switzerland.
|
3348
|
+
# Corresponds to the JSON property `regionCode`
|
3349
|
+
# @return [String]
|
3350
|
+
attr_accessor :region_code
|
3351
|
+
|
3352
|
+
# The schema revision of the `PostalAddress`. This must be set to 0, which is
|
3353
|
+
# the latest revision. All new revisions **must** be backward compatible with
|
3354
|
+
# old revisions.
|
3355
|
+
# Corresponds to the JSON property `revision`
|
3356
|
+
# @return [Fixnum]
|
3357
|
+
attr_accessor :revision
|
3358
|
+
|
3359
|
+
# Optional. Additional, country-specific, sorting code. This is not used in most
|
3360
|
+
# regions. Where it is used, the value is either a string like "CEDEX",
|
3361
|
+
# optionally followed by a number (for example, "CEDEX 7"), or just a number
|
3362
|
+
# alone, representing the "sector code" (Jamaica), "delivery area indicator" (
|
3363
|
+
# Malawi) or "post office indicator" (Côte d'Ivoire).
|
3364
|
+
# Corresponds to the JSON property `sortingCode`
|
3365
|
+
# @return [String]
|
3366
|
+
attr_accessor :sorting_code
|
3367
|
+
|
3368
|
+
# Optional. Sublocality of the address. For example, this can be a neighborhood,
|
3369
|
+
# borough, or district.
|
3370
|
+
# Corresponds to the JSON property `sublocality`
|
3371
|
+
# @return [String]
|
3372
|
+
attr_accessor :sublocality
|
3373
|
+
|
3374
|
+
def initialize(**args)
|
3375
|
+
update!(**args)
|
3376
|
+
end
|
3377
|
+
|
3378
|
+
# Update properties of this object
|
3379
|
+
def update!(**args)
|
3380
|
+
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
3381
|
+
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
|
3382
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
3383
|
+
@locality = args[:locality] if args.key?(:locality)
|
3384
|
+
@organization = args[:organization] if args.key?(:organization)
|
3385
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
3386
|
+
@recipients = args[:recipients] if args.key?(:recipients)
|
3387
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
3388
|
+
@revision = args[:revision] if args.key?(:revision)
|
3389
|
+
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
|
3390
|
+
@sublocality = args[:sublocality] if args.key?(:sublocality)
|
3391
|
+
end
|
3392
|
+
end
|
3393
|
+
|
3240
3394
|
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
3241
3395
|
# time-zones).
|
3242
3396
|
class GoogleTypeTimeZone
|
@@ -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.33.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250318"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -418,6 +418,12 @@ module Google
|
|
418
418
|
include Google::Apis::Core::JsonObjectSupport
|
419
419
|
end
|
420
420
|
|
421
|
+
class GoogleTypePostalAddress
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
421
427
|
class GoogleTypeTimeZone
|
422
428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
429
|
|
@@ -787,6 +793,8 @@ module Google
|
|
787
793
|
|
788
794
|
property :plus_code, as: 'plusCode', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode::Representation
|
789
795
|
|
796
|
+
property :postal_address, as: 'postalAddress', class: Google::Apis::PlacesV1::GoogleTypePostalAddress, decorator: Google::Apis::PlacesV1::GoogleTypePostalAddress::Representation
|
797
|
+
|
790
798
|
property :price_level, as: 'priceLevel'
|
791
799
|
property :price_range, as: 'priceRange', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange::Representation
|
792
800
|
|
@@ -1212,6 +1220,23 @@ module Google
|
|
1212
1220
|
end
|
1213
1221
|
end
|
1214
1222
|
|
1223
|
+
class GoogleTypePostalAddress
|
1224
|
+
# @private
|
1225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1226
|
+
collection :address_lines, as: 'addressLines'
|
1227
|
+
property :administrative_area, as: 'administrativeArea'
|
1228
|
+
property :language_code, as: 'languageCode'
|
1229
|
+
property :locality, as: 'locality'
|
1230
|
+
property :organization, as: 'organization'
|
1231
|
+
property :postal_code, as: 'postalCode'
|
1232
|
+
collection :recipients, as: 'recipients'
|
1233
|
+
property :region_code, as: 'regionCode'
|
1234
|
+
property :revision, as: 'revision'
|
1235
|
+
property :sorting_code, as: 'sortingCode'
|
1236
|
+
property :sublocality, as: 'sublocality'
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1215
1240
|
class GoogleTypeTimeZone
|
1216
1241
|
# @private
|
1217
1242
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.33.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|