Skip to content

Commit 95321d9

Browse files
feat(civicinfo): update the api
#### civicinfo:v2 The following keys were added: - schemas.Precinct (Total Keys: 23) - schemas.VoterInfoResponse.properties.precincts (Total Keys: 2)
1 parent 40bf958 commit 95321d9

File tree

2 files changed

+125
-3
lines changed

2 files changed

+125
-3
lines changed

docs/dyn/civicinfo_v2.elections.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,36 @@ <h3>Method Details</h3>
302302
},
303303
],
304304
&quot;precinctId&quot;: &quot;A String&quot;,
305+
&quot;precincts&quot;: [ # The precincts that match this voter&#x27;s address. Will only be returned for project IDs which have been whitelisted as &quot;partner projects&quot;.
306+
{
307+
&quot;administrationRegionId&quot;: &quot;A String&quot;, # ID of the AdministrationRegion message for this precinct. Corresponds to LocalityId xml tag.
308+
&quot;contestId&quot;: [ # ID(s) of the Contest message(s) for this precinct.
309+
&quot;A String&quot;,
310+
],
311+
&quot;datasetId&quot;: &quot;A String&quot;, # Required. Dataset ID. What datasets our Precincts come from.
312+
&quot;earlyVoteSiteId&quot;: [ # ID(s) of the PollingLocation message(s) for this precinct.
313+
&quot;A String&quot;,
314+
],
315+
&quot;electoralDistrictId&quot;: [ # ID(s) of the ElectoralDistrict message(s) for this precinct.
316+
&quot;A String&quot;,
317+
],
318+
&quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for this precinct.
319+
&quot;mailOnly&quot;: True or False, # Specifies if the precinct runs mail-only elections.
320+
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the precinct.
321+
&quot;number&quot;: &quot;A String&quot;, # The number of the precinct.
322+
&quot;ocdId&quot;: [ # Encouraged. The OCD ID of the precinct
323+
&quot;A String&quot;,
324+
],
325+
&quot;pollingLocationId&quot;: [ # ID(s) of the PollingLocation message(s) for this precinct.
326+
&quot;A String&quot;,
327+
],
328+
&quot;spatialBoundaryId&quot;: [ # ID(s) of the SpatialBoundary message(s) for this precinct. Used to specify a geometrical boundary of the precinct.
329+
&quot;A String&quot;,
330+
],
331+
&quot;splitName&quot;: &quot;A String&quot;, # If present, this proto corresponds to one portion of split precinct. Other portions of this precinct are guaranteed to have the same `name`. If not present, this proto represents a full precicnt.
332+
&quot;ward&quot;: &quot;A String&quot;, # Specifies the ward the precinct is contained within.
333+
},
334+
],
305335
&quot;state&quot;: [ # Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array.
306336
{ # Describes information about a regional election administrative area.
307337
&quot;electionAdministrationBody&quot;: { # Information about an election administrative body (e.g. County Board of Elections). # The election administration body for this area.

googleapiclient/discovery_cache/documents/civicinfo.v2.json

Lines changed: 95 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
}
353353
}
354354
},
355-
"revision": "20211211",
355+
"revision": "20220412",
356356
"rootUrl": "https://civicinfo.googleapis.com/",
357357
"schemas": {
358358
"AdministrationRegion": {
@@ -946,7 +946,7 @@
946946
"typeTransitDeparture",
947947
"typeTransitLeg",
948948
"typeTransitLine",
949-
"typeTransitAgency",
949+
"typeTransitAgencyDeprecatedValue",
950950
"typeTransitTransfer",
951951
"typeSegmentPath",
952952
"typeRoadSign",
@@ -1202,6 +1202,8 @@
12021202
"typePhoneNumberAreaCode",
12031203
"typeBusinessCorridor",
12041204
"typeAddressTemplate",
1205+
"typeTransitAgency",
1206+
"typeFutureGeometry",
12051207
"typeEvent",
12061208
"typeEarthquake",
12071209
"typeHurricane",
@@ -1315,7 +1317,7 @@
13151317
"DEPRECATED",
13161318
"DEPRECATED",
13171319
"A transit line is a collection of transit legs, associated with some invariant properties of the trips that run over the legs. See also transitline.proto",
1318-
"A transit agency operates a number of lines, typically all in the same city, region or country. See also transitagency.proto",
1320+
"TYPE_TRANSIT_AGENCY was moved to 0xC91. This deprecated enum value still exists for debugging purposes only.",
13191321
"DEPRECATED",
13201322
"ABSTRACT",
13211323
"Road sign features have names, point geometry, etc. They also have segment_path data (see below) which lists the segments that refer to the sign. See segment.proto for the reference from the segment to the road sign.",
@@ -1571,6 +1573,8 @@
15711573
"A phone number area code is a prefix which also coincides with the area code, or national destination code, of a particular region.",
15721574
"A Business Corridor is a dense cluster of semantically similar establishments. TYPE_BUSINESS_CORRIDOR features are distinguished from TYPE_COLLOQUIAL_AREA features because the corridors are not under the political hierarchy, are allowed to be nameless, and may not correspond to well-known real world locations. For more details, see go/geo-corridors-schema.",
15731575
"An address template feature provides region-specific conventions for structuring addresses. These features aren't necessarily defined by physical geographic features, so they are classified as meta-features.",
1576+
"A transit agency operates a number of lines, typically all in the same city, region or country. See also transitagency.proto",
1577+
"A feature whose geometry is planned to replace the geometry on another feature.",
15741578
"DEPRECATED",
15751579
"DEPRECATED",
15761580
"DEPRECATED",
@@ -1877,6 +1881,87 @@
18771881
},
18781882
"type": "object"
18791883
},
1884+
"Precinct": {
1885+
"id": "Precinct",
1886+
"properties": {
1887+
"administrationRegionId": {
1888+
"description": "ID of the AdministrationRegion message for this precinct. Corresponds to LocalityId xml tag.",
1889+
"type": "string"
1890+
},
1891+
"contestId": {
1892+
"description": "ID(s) of the Contest message(s) for this precinct.",
1893+
"items": {
1894+
"type": "string"
1895+
},
1896+
"type": "array"
1897+
},
1898+
"datasetId": {
1899+
"description": "Required. Dataset ID. What datasets our Precincts come from.",
1900+
"format": "int64",
1901+
"type": "string"
1902+
},
1903+
"earlyVoteSiteId": {
1904+
"description": "ID(s) of the PollingLocation message(s) for this precinct.",
1905+
"items": {
1906+
"type": "string"
1907+
},
1908+
"type": "array"
1909+
},
1910+
"electoralDistrictId": {
1911+
"description": "ID(s) of the ElectoralDistrict message(s) for this precinct.",
1912+
"items": {
1913+
"type": "string"
1914+
},
1915+
"type": "array"
1916+
},
1917+
"id": {
1918+
"description": "Required. A unique identifier for this precinct.",
1919+
"type": "string"
1920+
},
1921+
"mailOnly": {
1922+
"description": "Specifies if the precinct runs mail-only elections.",
1923+
"type": "boolean"
1924+
},
1925+
"name": {
1926+
"description": "Required. The name of the precinct.",
1927+
"type": "string"
1928+
},
1929+
"number": {
1930+
"description": "The number of the precinct.",
1931+
"type": "string"
1932+
},
1933+
"ocdId": {
1934+
"description": "Encouraged. The OCD ID of the precinct",
1935+
"items": {
1936+
"type": "string"
1937+
},
1938+
"type": "array"
1939+
},
1940+
"pollingLocationId": {
1941+
"description": "ID(s) of the PollingLocation message(s) for this precinct.",
1942+
"items": {
1943+
"type": "string"
1944+
},
1945+
"type": "array"
1946+
},
1947+
"spatialBoundaryId": {
1948+
"description": "ID(s) of the SpatialBoundary message(s) for this precinct. Used to specify a geometrical boundary of the precinct.",
1949+
"items": {
1950+
"type": "string"
1951+
},
1952+
"type": "array"
1953+
},
1954+
"splitName": {
1955+
"description": "If present, this proto corresponds to one portion of split precinct. Other portions of this precinct are guaranteed to have the same `name`. If not present, this proto represents a full precicnt.",
1956+
"type": "string"
1957+
},
1958+
"ward": {
1959+
"description": "Specifies the ward the precinct is contained within.",
1960+
"type": "string"
1961+
}
1962+
},
1963+
"type": "object"
1964+
},
18801965
"RepresentativeInfoData": {
18811966
"id": "RepresentativeInfoData",
18821967
"properties": {
@@ -2050,6 +2135,13 @@
20502135
"precinctId": {
20512136
"type": "string"
20522137
},
2138+
"precincts": {
2139+
"description": "The precincts that match this voter's address. Will only be returned for project IDs which have been whitelisted as \"partner projects\".",
2140+
"items": {
2141+
"$ref": "Precinct"
2142+
},
2143+
"type": "array"
2144+
},
20532145
"state": {
20542146
"description": "Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array.",
20552147
"items": {

0 commit comments

Comments
 (0)