google-apis-civicinfo_v2 0.4.0 → 0.8.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 +16 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/civicinfo_v2/classes.rb +141 -0
- data/lib/google/apis/civicinfo_v2/gem_version.rb +3 -3
- data/lib/google/apis/civicinfo_v2/representations.rb +48 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564c02659b9882f4766a4d887706b5fc82ed5f246dc76a5d890831e5bcbf756a
|
4
|
+
data.tar.gz: be14ca691bd3932fa208a6b943ddd2123f3d37dc2b81820cf65e2953cda374dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a6eeb1a1d6fc39be318660b89e3de64b726769f0b098745be1302a7181150fa1bb93cdd7dd3fcdb1de679eb4e2cb3c6eb2882cde12d665e72394b1e92163f2
|
7
|
+
data.tar.gz: cf42bfe13c20b0824e5d3bf2e50cb14f555d2ad710d23974bb791cfa20d8d9ee8e99236c425b8f0fe95feec04f0e453518de937ea3d3435642e7845118f213ac
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-civicinfo_v2
|
2
2
|
|
3
|
+
### v0.8.0 (2021-12-14)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.7.0 (2021-12-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211209
|
10
|
+
|
11
|
+
### v0.6.0 (2021-10-20)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210629
|
14
|
+
|
15
|
+
### v0.5.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated using generator version 0.4.0
|
18
|
+
|
3
19
|
### v0.4.0 (2021-06-24)
|
4
20
|
|
5
21
|
* Regenerated using generator version 0.3.0
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/civicinfo_v2"
|
|
51
51
|
client = Google::Apis::CivicinfoV2::CivicInfoService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Civicinfo service in particular.)
|
67
67
|
|
@@ -654,6 +654,128 @@ module Google
|
|
654
654
|
end
|
655
655
|
end
|
656
656
|
|
657
|
+
# A globally unique identifier associated with each feature. We use 128-bit
|
658
|
+
# identifiers so that we have lots of bits available to distinguish between
|
659
|
+
# features. The feature id currently consists of a 64-bit "cell id" that **
|
660
|
+
# sometimes** corresponds to the approximate centroid of the feature, plus a 64-
|
661
|
+
# bit fingerprint of other identifying information. See more on each respective
|
662
|
+
# field in its comments. Feature ids are first assigned when the data is created
|
663
|
+
# in MapFacts. After initial creation of the feature, they are immutable. This
|
664
|
+
# means that the only properties that you should rely on are that they are
|
665
|
+
# unique, and that cell_ids often - but not always - preserve spatial locality.
|
666
|
+
# The degree of locality varies as the feature undergoes geometry changes, and
|
667
|
+
# should not in general be considered a firm guarantee of the location of any
|
668
|
+
# particular feature. In fact, some locationless features have randomized cell
|
669
|
+
# IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
|
670
|
+
# the id field of features will be globally unique. Using the fprint allows
|
671
|
+
# consumers who don't need the spatial benefit of cell ids to uniquely identify
|
672
|
+
# features in a 64-bit address space. This property is not guaranteed for other
|
673
|
+
# sources of FeatureProtos.
|
674
|
+
class FeatureIdProto
|
675
|
+
include Google::Apis::Core::Hashable
|
676
|
+
|
677
|
+
# The S2CellId corresponding to the approximate location of this feature as of
|
678
|
+
# when it was first created. This can be of variable accuracy, ranging from the
|
679
|
+
# exact centroid of the feature at creation, a very large S2 Cell, or even being
|
680
|
+
# completely randomized for locationless features. Cell ids have the nice
|
681
|
+
# property that they follow a space-filling curve over the surface of the earth.
|
682
|
+
# (See s2cellid.h for details.) WARNING: Clients should only use cell IDs to
|
683
|
+
# perform spatial locality optimizations. There is no strict guarantee that the
|
684
|
+
# cell ID of a feature is related to the current geometry of the feature in any
|
685
|
+
# way.
|
686
|
+
# Corresponds to the JSON property `cellId`
|
687
|
+
# @return [Fixnum]
|
688
|
+
attr_accessor :cell_id
|
689
|
+
|
690
|
+
# A 64-bit fingerprint used to identify features. Most clients should rely on
|
691
|
+
# MapFacts or OneRing to choose fingerprints. If creating new fprints, the
|
692
|
+
# strategy should be chosen so that the chance of collision is remote or non-
|
693
|
+
# existent, and the distribution should be reasonably uniform. For example, if
|
694
|
+
# the source data assigns unique ids to features, then a fingerprint of the
|
695
|
+
# provider name, version, and source id is sufficient.
|
696
|
+
# Corresponds to the JSON property `fprint`
|
697
|
+
# @return [Fixnum]
|
698
|
+
attr_accessor :fprint
|
699
|
+
|
700
|
+
# This is proto2's version of MessageSet.
|
701
|
+
# Corresponds to the JSON property `temporaryData`
|
702
|
+
# @return [Google::Apis::CivicinfoV2::MessageSet]
|
703
|
+
attr_accessor :temporary_data
|
704
|
+
|
705
|
+
def initialize(**args)
|
706
|
+
update!(**args)
|
707
|
+
end
|
708
|
+
|
709
|
+
# Update properties of this object
|
710
|
+
def update!(**args)
|
711
|
+
@cell_id = args[:cell_id] if args.key?(:cell_id)
|
712
|
+
@fprint = args[:fprint] if args.key?(:fprint)
|
713
|
+
@temporary_data = args[:temporary_data] if args.key?(:temporary_data)
|
714
|
+
end
|
715
|
+
end
|
716
|
+
|
717
|
+
# Detailed summary of the result from geocoding an address
|
718
|
+
class GeocodingSummary
|
719
|
+
include Google::Apis::Core::Hashable
|
720
|
+
|
721
|
+
# Represents the best estimate of whether or not the input address was fully
|
722
|
+
# understood and the address is correctly componentized. Mirrors the same-name
|
723
|
+
# field in geostore.staging.AddressLinkupScoringProto.
|
724
|
+
# Corresponds to the JSON property `addressUnderstood`
|
725
|
+
# @return [Boolean]
|
726
|
+
attr_accessor :address_understood
|
727
|
+
alias_method :address_understood?, :address_understood
|
728
|
+
|
729
|
+
# A globally unique identifier associated with each feature. We use 128-bit
|
730
|
+
# identifiers so that we have lots of bits available to distinguish between
|
731
|
+
# features. The feature id currently consists of a 64-bit "cell id" that **
|
732
|
+
# sometimes** corresponds to the approximate centroid of the feature, plus a 64-
|
733
|
+
# bit fingerprint of other identifying information. See more on each respective
|
734
|
+
# field in its comments. Feature ids are first assigned when the data is created
|
735
|
+
# in MapFacts. After initial creation of the feature, they are immutable. This
|
736
|
+
# means that the only properties that you should rely on are that they are
|
737
|
+
# unique, and that cell_ids often - but not always - preserve spatial locality.
|
738
|
+
# The degree of locality varies as the feature undergoes geometry changes, and
|
739
|
+
# should not in general be considered a firm guarantee of the location of any
|
740
|
+
# particular feature. In fact, some locationless features have randomized cell
|
741
|
+
# IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
|
742
|
+
# the id field of features will be globally unique. Using the fprint allows
|
743
|
+
# consumers who don't need the spatial benefit of cell ids to uniquely identify
|
744
|
+
# features in a 64-bit address space. This property is not guaranteed for other
|
745
|
+
# sources of FeatureProtos.
|
746
|
+
# Corresponds to the JSON property `featureId`
|
747
|
+
# @return [Google::Apis::CivicinfoV2::FeatureIdProto]
|
748
|
+
attr_accessor :feature_id
|
749
|
+
|
750
|
+
# The feature type for the FeatureProto returned by the geocoder
|
751
|
+
# Corresponds to the JSON property `featureType`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :feature_type
|
754
|
+
|
755
|
+
# Precision of the center point (lat/long) of the geocoded FeatureProto
|
756
|
+
# Corresponds to the JSON property `positionPrecisionMeters`
|
757
|
+
# @return [Float]
|
758
|
+
attr_accessor :position_precision_meters
|
759
|
+
|
760
|
+
# The query sent to the geocoder
|
761
|
+
# Corresponds to the JSON property `queryString`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :query_string
|
764
|
+
|
765
|
+
def initialize(**args)
|
766
|
+
update!(**args)
|
767
|
+
end
|
768
|
+
|
769
|
+
# Update properties of this object
|
770
|
+
def update!(**args)
|
771
|
+
@address_understood = args[:address_understood] if args.key?(:address_understood)
|
772
|
+
@feature_id = args[:feature_id] if args.key?(:feature_id)
|
773
|
+
@feature_type = args[:feature_type] if args.key?(:feature_type)
|
774
|
+
@position_precision_meters = args[:position_precision_meters] if args.key?(:position_precision_meters)
|
775
|
+
@query_string = args[:query_string] if args.key?(:query_string)
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
657
779
|
# Describes a political geography.
|
658
780
|
class GeographicDivision
|
659
781
|
include Google::Apis::Core::Hashable
|
@@ -694,6 +816,19 @@ module Google
|
|
694
816
|
end
|
695
817
|
end
|
696
818
|
|
819
|
+
# This is proto2's version of MessageSet.
|
820
|
+
class MessageSet
|
821
|
+
include Google::Apis::Core::Hashable
|
822
|
+
|
823
|
+
def initialize(**args)
|
824
|
+
update!(**args)
|
825
|
+
end
|
826
|
+
|
827
|
+
# Update properties of this object
|
828
|
+
def update!(**args)
|
829
|
+
end
|
830
|
+
end
|
831
|
+
|
697
832
|
# Information about an Office held by one or more Officials.
|
698
833
|
class Office
|
699
834
|
include Google::Apis::Core::Hashable
|
@@ -771,6 +906,11 @@ module Google
|
|
771
906
|
# @return [Array<String>]
|
772
907
|
attr_accessor :emails
|
773
908
|
|
909
|
+
# Detailed summary about the official's address's geocoding
|
910
|
+
# Corresponds to the JSON property `geocodingSummaries`
|
911
|
+
# @return [Array<Google::Apis::CivicinfoV2::GeocodingSummary>]
|
912
|
+
attr_accessor :geocoding_summaries
|
913
|
+
|
774
914
|
# The official's name.
|
775
915
|
# Corresponds to the JSON property `name`
|
776
916
|
# @return [String]
|
@@ -805,6 +945,7 @@ module Google
|
|
805
945
|
@address = args[:address] if args.key?(:address)
|
806
946
|
@channels = args[:channels] if args.key?(:channels)
|
807
947
|
@emails = args[:emails] if args.key?(:emails)
|
948
|
+
@geocoding_summaries = args[:geocoding_summaries] if args.key?(:geocoding_summaries)
|
808
949
|
@name = args[:name] if args.key?(:name)
|
809
950
|
@party = args[:party] if args.key?(:party)
|
810
951
|
@phones = args[:phones] if args.key?(:phones)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CivicinfoV2
|
18
18
|
# Version of the google-apis-civicinfo_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.8.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211209"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,12 +88,30 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class FeatureIdProto
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GeocodingSummary
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class GeographicDivision
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class MessageSet
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class Office
|
98
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
117
|
|
@@ -293,6 +311,28 @@ module Google
|
|
293
311
|
end
|
294
312
|
end
|
295
313
|
|
314
|
+
class FeatureIdProto
|
315
|
+
# @private
|
316
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
317
|
+
property :cell_id, :numeric_string => true, as: 'cellId'
|
318
|
+
property :fprint, :numeric_string => true, as: 'fprint'
|
319
|
+
property :temporary_data, as: 'temporaryData', class: Google::Apis::CivicinfoV2::MessageSet, decorator: Google::Apis::CivicinfoV2::MessageSet::Representation
|
320
|
+
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
class GeocodingSummary
|
325
|
+
# @private
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
327
|
+
property :address_understood, as: 'addressUnderstood'
|
328
|
+
property :feature_id, as: 'featureId', class: Google::Apis::CivicinfoV2::FeatureIdProto, decorator: Google::Apis::CivicinfoV2::FeatureIdProto::Representation
|
329
|
+
|
330
|
+
property :feature_type, as: 'featureType'
|
331
|
+
property :position_precision_meters, as: 'positionPrecisionMeters'
|
332
|
+
property :query_string, as: 'queryString'
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
296
336
|
class GeographicDivision
|
297
337
|
# @private
|
298
338
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -302,6 +342,12 @@ module Google
|
|
302
342
|
end
|
303
343
|
end
|
304
344
|
|
345
|
+
class MessageSet
|
346
|
+
# @private
|
347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
305
351
|
class Office
|
306
352
|
# @private
|
307
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -323,6 +369,8 @@ module Google
|
|
323
369
|
collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
|
324
370
|
|
325
371
|
collection :emails, as: 'emails'
|
372
|
+
collection :geocoding_summaries, as: 'geocodingSummaries', class: Google::Apis::CivicinfoV2::GeocodingSummary, decorator: Google::Apis::CivicinfoV2::GeocodingSummary::Representation
|
373
|
+
|
326
374
|
property :name, as: 'name'
|
327
375
|
property :party, as: 'party'
|
328
376
|
collection :phones, as: 'phones'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-civicinfo_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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:
|
11
|
+
date: 2022-01-10 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.4'
|
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.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.8.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Civic Information API V2
|