google-apis-places_v1 0.30.0 → 0.32.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 +9 -0
- data/lib/google/apis/places_v1/classes.rb +189 -2
- data/lib/google/apis/places_v1/gem_version.rb +3 -3
- data/lib/google/apis/places_v1/representations.rb +41 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28bb5e3debc08c98d64cd4f72049a961a953e6fc37c2fd151b4530545e5f751c
|
4
|
+
data.tar.gz: 63d90169f373ca24f7166a35403ab5f1c5557529d75052399215e68a5fc0305c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c01a3acda73dd7bc1c08d5a7870a12000e427946ebb89d62a4bd78bbc3bb7f71dd70e3661243ecb81f47812dde1f5fc02b7faa53825fb2a4f44df91633d142e
|
7
|
+
data.tar.gz: 648eb90150ca532bd1dc1e5aeb9c89cd52733a69651417a15376046f60ee4e67743109de7c61cc70dde9b663befbde39cc49cc2af9c93e5893b2ff3ec496275a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-places_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2025-03-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250312
|
6
|
+
|
7
|
+
### v0.31.0 (2025-03-09)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250302
|
10
|
+
* Regenerated using generator version 0.16.0
|
11
|
+
|
3
12
|
### v0.30.0 (2024-11-24)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241117
|
@@ -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 / 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]
|
@@ -1521,6 +1535,12 @@ module Google
|
|
1521
1535
|
attr_accessor :takeout
|
1522
1536
|
alias_method :takeout?, :takeout
|
1523
1537
|
|
1538
|
+
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
1539
|
+
# time-zones).
|
1540
|
+
# Corresponds to the JSON property `timeZone`
|
1541
|
+
# @return [Google::Apis::PlacesV1::GoogleTypeTimeZone]
|
1542
|
+
attr_accessor :time_zone
|
1543
|
+
|
1524
1544
|
# A set of type tags for this result. For example, "political" and "locality".
|
1525
1545
|
# For the complete list of possible values, see Table A and Table B at https://
|
1526
1546
|
# developers.google.com/maps/documentation/places/web-service/place-types
|
@@ -1612,6 +1632,7 @@ module Google
|
|
1612
1632
|
@payment_options = args[:payment_options] if args.key?(:payment_options)
|
1613
1633
|
@photos = args[:photos] if args.key?(:photos)
|
1614
1634
|
@plus_code = args[:plus_code] if args.key?(:plus_code)
|
1635
|
+
@postal_address = args[:postal_address] if args.key?(:postal_address)
|
1615
1636
|
@price_level = args[:price_level] if args.key?(:price_level)
|
1616
1637
|
@price_range = args[:price_range] if args.key?(:price_range)
|
1617
1638
|
@primary_type = args[:primary_type] if args.key?(:primary_type)
|
@@ -1636,6 +1657,7 @@ module Google
|
|
1636
1657
|
@short_formatted_address = args[:short_formatted_address] if args.key?(:short_formatted_address)
|
1637
1658
|
@sub_destinations = args[:sub_destinations] if args.key?(:sub_destinations)
|
1638
1659
|
@takeout = args[:takeout] if args.key?(:takeout)
|
1660
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
1639
1661
|
@types = args[:types] if args.key?(:types)
|
1640
1662
|
@user_rating_count = args[:user_rating_count] if args.key?(:user_rating_count)
|
1641
1663
|
@utc_offset_minutes = args[:utc_offset_minutes] if args.key?(:utc_offset_minutes)
|
@@ -2213,8 +2235,13 @@ module Google
|
|
2213
2235
|
end
|
2214
2236
|
end
|
2215
2237
|
|
2216
|
-
#
|
2217
|
-
#
|
2238
|
+
# Sub-destinations are specific places associated with a main place. These
|
2239
|
+
# provide more specific destinations for users who are searching inside 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.
|
2218
2245
|
class GoogleMapsPlacesV1PlaceSubDestination
|
2219
2246
|
include Google::Apis::Core::Hashable
|
2220
2247
|
|
@@ -3229,6 +3256,166 @@ module Google
|
|
3229
3256
|
@units = args[:units] if args.key?(:units)
|
3230
3257
|
end
|
3231
3258
|
end
|
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 / 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 contain
|
3275
|
+
# multiple values in a single field (For example "Austin, TX"), it is important
|
3276
|
+
# that the line order is clear. The order of address lines should be "envelope
|
3277
|
+
# order" for the country/region of the address. In places where this can vary (
|
3278
|
+
# For example Japan), address_language is used to make it explicit (For example "
|
3279
|
+
# ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large).
|
3280
|
+
# This way, the most specific line of an address can be selected based on the
|
3281
|
+
# language. The minimum permitted structural representation of an address
|
3282
|
+
# consists of a region_code with all remaining information placed in the
|
3283
|
+
# 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 then
|
3287
|
+
# geocoding is the recommended way to handle completely unstructured addresses (
|
3288
|
+
# as opposed to guessing which parts of the address should be localities or
|
3289
|
+
# 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. Specifically, for Spain this is the province and
|
3297
|
+
# not the autonomous community (For example "Barcelona" and not "Catalonia").
|
3298
|
+
# Many countries don't use an administrative area in postal addresses. For
|
3299
|
+
# example 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/town portion of the address. Examples:
|
3317
|
+
# US city, IT comune, UK post town. In regions of the world where localities are
|
3318
|
+
# not well defined or do not fit into this structure well, leave locality empty
|
3319
|
+
# 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/zip validation
|
3332
|
+
# in the U.S.A.).
|
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" (For example 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 neighborhoods,
|
3369
|
+
# boroughs, districts.
|
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
|
+
|
3394
|
+
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
3395
|
+
# time-zones).
|
3396
|
+
class GoogleTypeTimeZone
|
3397
|
+
include Google::Apis::Core::Hashable
|
3398
|
+
|
3399
|
+
# IANA Time Zone Database time zone. For example "America/New_York".
|
3400
|
+
# Corresponds to the JSON property `id`
|
3401
|
+
# @return [String]
|
3402
|
+
attr_accessor :id
|
3403
|
+
|
3404
|
+
# Optional. IANA Time Zone Database version number. For example "2019a".
|
3405
|
+
# Corresponds to the JSON property `version`
|
3406
|
+
# @return [String]
|
3407
|
+
attr_accessor :version
|
3408
|
+
|
3409
|
+
def initialize(**args)
|
3410
|
+
update!(**args)
|
3411
|
+
end
|
3412
|
+
|
3413
|
+
# Update properties of this object
|
3414
|
+
def update!(**args)
|
3415
|
+
@id = args[:id] if args.key?(:id)
|
3416
|
+
@version = args[:version] if args.key?(:version)
|
3417
|
+
end
|
3418
|
+
end
|
3232
3419
|
end
|
3233
3420
|
end
|
3234
3421
|
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.32.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250312"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -418,6 +418,18 @@ 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
|
+
|
427
|
+
class GoogleTypeTimeZone
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
421
433
|
class GoogleGeoTypeViewport
|
422
434
|
# @private
|
423
435
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -781,6 +793,8 @@ module Google
|
|
781
793
|
|
782
794
|
property :plus_code, as: 'plusCode', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode::Representation
|
783
795
|
|
796
|
+
property :postal_address, as: 'postalAddress', class: Google::Apis::PlacesV1::GoogleTypePostalAddress, decorator: Google::Apis::PlacesV1::GoogleTypePostalAddress::Representation
|
797
|
+
|
784
798
|
property :price_level, as: 'priceLevel'
|
785
799
|
property :price_range, as: 'priceRange', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange::Representation
|
786
800
|
|
@@ -811,6 +825,8 @@ module Google
|
|
811
825
|
collection :sub_destinations, as: 'subDestinations', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceSubDestination, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceSubDestination::Representation
|
812
826
|
|
813
827
|
property :takeout, as: 'takeout'
|
828
|
+
property :time_zone, as: 'timeZone', class: Google::Apis::PlacesV1::GoogleTypeTimeZone, decorator: Google::Apis::PlacesV1::GoogleTypeTimeZone::Representation
|
829
|
+
|
814
830
|
collection :types, as: 'types'
|
815
831
|
property :user_rating_count, as: 'userRatingCount'
|
816
832
|
property :utc_offset_minutes, as: 'utcOffsetMinutes'
|
@@ -1203,6 +1219,31 @@ module Google
|
|
1203
1219
|
property :units, :numeric_string => true, as: 'units'
|
1204
1220
|
end
|
1205
1221
|
end
|
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
|
+
|
1240
|
+
class GoogleTypeTimeZone
|
1241
|
+
# @private
|
1242
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1243
|
+
property :id, as: 'id'
|
1244
|
+
property :version, as: 'version'
|
1245
|
+
end
|
1246
|
+
end
|
1206
1247
|
end
|
1207
1248
|
end
|
1208
1249
|
end
|
metadata
CHANGED
@@ -1,14 +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.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-16 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.32.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.5
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.5
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Places API (New) V1
|
82
79
|
test_files: []
|