OLD | NEW |
1 { | 1 { |
2 "basePath": "/civicinfo/v1/", | 2 "basePath": "/civicinfo/v2/", |
3 "baseUrl": "https://www.googleapis.com/civicinfo/v1/", | 3 "baseUrl": "https://www.googleapis.com/civicinfo/v2/", |
4 "batchPath": "batch", | 4 "batchPath": "batch", |
5 "canonicalName": "Civic Info", | 5 "canonicalName": "Civic Info", |
6 "description": "An API for accessing civic information.", | 6 "description": "An API for accessing civic information.", |
7 "discoveryVersion": "v1", | 7 "discoveryVersion": "v1", |
8 "documentationLink": "https://developers.google.com/civic-information", | 8 "documentationLink": "https://developers.google.com/civic-information", |
9 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/E48KE0Nyeq0wTXpsQ1wBH_VLmVc\"", | 9 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/YV4QnTSNnV4r4LSJ23wzwsBf0U0\"", |
10 "icons": { | 10 "icons": { |
11 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 11 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
12 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 12 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
13 }, | 13 }, |
14 "id": "civicinfo:v1", | 14 "id": "civicinfo:v2", |
15 "kind": "discovery#restDescription", | 15 "kind": "discovery#restDescription", |
16 "name": "civicinfo", | 16 "name": "civicinfo", |
17 "ownerDomain": "google.com", | 17 "ownerDomain": "google.com", |
18 "ownerName": "Google", | 18 "ownerName": "Google", |
19 "parameters": { | 19 "parameters": { |
20 "alt": { | 20 "alt": { |
21 "default": "json", | 21 "default": "json", |
22 "description": "Data format for the response.", | 22 "description": "Data format for the response.", |
23 "enum": [ | 23 "enum": [ |
24 "json" | 24 "json" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "description": "Searches for political divisions by their na
tural name or OCD ID.", | 69 "description": "Searches for political divisions by their na
tural name or OCD ID.", |
70 "httpMethod": "GET", | 70 "httpMethod": "GET", |
71 "id": "civicinfo.divisions.search", | 71 "id": "civicinfo.divisions.search", |
72 "parameters": { | 72 "parameters": { |
73 "query": { | 73 "query": { |
74 "description": "The search query. Queries can cover
any parts of a OCD ID or a human readable division name. All words given in the
query are treated as required patterns. In addition to that, most query operator
s of the Apache Lucene library are supported. See http://lucene.apache.org/core/
2_9_4/queryparsersyntax.html", | 74 "description": "The search query. Queries can cover
any parts of a OCD ID or a human readable division name. All words given in the
query are treated as required patterns. In addition to that, most query operator
s of the Apache Lucene library are supported. See http://lucene.apache.org/core/
2_9_4/queryparsersyntax.html", |
75 "location": "query", | 75 "location": "query", |
76 "type": "string" | 76 "type": "string" |
77 } | 77 } |
78 }, | 78 }, |
79 "path": "representatives/division_search", | 79 "path": "divisions", |
80 "response": { | 80 "response": { |
81 "$ref": "DivisionSearchResponse" | 81 "$ref": "DivisionSearchResponse" |
82 } | 82 } |
83 } | 83 } |
84 } | 84 } |
85 }, | 85 }, |
86 "elections": { | 86 "elections": { |
87 "methods": { | 87 "methods": { |
88 "electionQuery": { | 88 "electionQuery": { |
89 "description": "List of available elections to query.", | 89 "description": "List of available elections to query.", |
90 "httpMethod": "GET", | 90 "httpMethod": "GET", |
91 "id": "civicinfo.elections.electionQuery", | 91 "id": "civicinfo.elections.electionQuery", |
92 "path": "elections", | 92 "path": "elections", |
93 "response": { | 93 "response": { |
94 "$ref": "ElectionsQueryResponse" | 94 "$ref": "ElectionsQueryResponse" |
95 } | 95 } |
96 }, | 96 }, |
97 "voterInfoQuery": { | 97 "voterInfoQuery": { |
98 "description": "Looks up information relevant to a voter bas
ed on the voter's registered address.", | 98 "description": "Looks up information relevant to a voter bas
ed on the voter's registered address.", |
99 "httpMethod": "POST", | 99 "httpMethod": "GET", |
100 "id": "civicinfo.elections.voterInfoQuery", | 100 "id": "civicinfo.elections.voterInfoQuery", |
101 "parameterOrder": [ | 101 "parameterOrder": [ |
102 "electionId" | 102 "address" |
103 ], | 103 ], |
104 "parameters": { | 104 "parameters": { |
105 "electionId": { | 105 "address": { |
106 "description": "The unique ID of the election to loo
k up. A list of election IDs can be obtained at https://www.googleapis.com/civic
info/{version}/elections", | 106 "description": "The registered address of the voter
to look up.", |
107 "format": "int64", | 107 "location": "query", |
108 "location": "path", | |
109 "required": true, | 108 "required": true, |
110 "type": "string" | 109 "type": "string" |
111 }, | 110 }, |
| 111 "electionId": { |
| 112 "default": "0", |
| 113 "description": "The unique ID of the election to loo
k up. A list of election IDs can be obtained at https://www.googleapis.com/civic
info/{version}/elections", |
| 114 "format": "int64", |
| 115 "location": "query", |
| 116 "type": "string" |
| 117 }, |
112 "officialOnly": { | 118 "officialOnly": { |
113 "default": "false", | 119 "default": "false", |
114 "description": "If set to true, only data from offic
ial state sources will be returned.", | 120 "description": "If set to true, only data from offic
ial state sources will be returned.", |
115 "location": "query", | 121 "location": "query", |
116 "type": "boolean" | 122 "type": "boolean" |
117 } | 123 } |
118 }, | 124 }, |
119 "path": "voterinfo/{electionId}/lookup", | 125 "path": "voterinfo", |
120 "request": { | |
121 "$ref": "VoterInfoRequest" | |
122 }, | |
123 "response": { | 126 "response": { |
124 "$ref": "VoterInfoResponse" | 127 "$ref": "VoterInfoResponse" |
125 } | 128 } |
126 } | 129 } |
127 } | 130 } |
128 }, | 131 }, |
129 "representatives": { | 132 "representatives": { |
130 "methods": { | 133 "methods": { |
131 "representativeInfoQuery": { | 134 "representativeInfoByAddress": { |
132 "description": "Looks up political geography and representat
ive information based on an address or Open Civic Data division identifier.", | 135 "description": "Looks up political geography and representat
ive information for a single address.", |
133 "httpMethod": "POST", | 136 "httpMethod": "GET", |
134 "id": "civicinfo.representatives.representativeInfoQuery", | 137 "id": "civicinfo.representatives.representativeInfoByAddress
", |
135 "parameters": { | 138 "parameters": { |
| 139 "address": { |
| 140 "description": "The address to look up. May only be
specified if the field ocdId is not given in the URL.", |
| 141 "location": "query", |
| 142 "type": "string" |
| 143 }, |
136 "includeOffices": { | 144 "includeOffices": { |
137 "default": "true", | 145 "default": "true", |
138 "description": "Whether to return information about
offices and officials. If false, only the top-level district information will be
returned.", | 146 "description": "Whether to return information about
offices and officials. If false, only the top-level district information will be
returned.", |
139 "location": "query", | 147 "location": "query", |
140 "type": "boolean" | 148 "type": "boolean" |
141 }, | 149 }, |
| 150 "levels": { |
| 151 "description": "A list of office levels to filter by
. Only offices that serve at least one of these levels will be returned. Divisio
ns that don't contain a matching office will not be returned.", |
| 152 "enum": [ |
| 153 "administrativeArea1", |
| 154 "administrativeArea2", |
| 155 "country", |
| 156 "international", |
| 157 "locality", |
| 158 "regional", |
| 159 "special", |
| 160 "subLocality1", |
| 161 "subLocality2" |
| 162 ], |
| 163 "enumDescriptions": [ |
| 164 "", |
| 165 "", |
| 166 "", |
| 167 "", |
| 168 "", |
| 169 "", |
| 170 "", |
| 171 "", |
| 172 "" |
| 173 ], |
| 174 "location": "query", |
| 175 "repeated": true, |
| 176 "type": "string" |
| 177 }, |
| 178 "roles": { |
| 179 "description": "A list of office roles to filter by.
Only offices fulfilling one of these roles will be returned. Divisions that don
't contain a matching office will not be returned.", |
| 180 "enum": [ |
| 181 "deputyHeadOfGovernment", |
| 182 "executiveCouncil", |
| 183 "governmentOfficer", |
| 184 "headOfGovernment", |
| 185 "headOfState", |
| 186 "highestCourtJudge", |
| 187 "judge", |
| 188 "legislatorLowerBody", |
| 189 "legislatorUpperBody", |
| 190 "schoolBoard", |
| 191 "specialPurposeOfficer" |
| 192 ], |
| 193 "enumDescriptions": [ |
| 194 "", |
| 195 "", |
| 196 "", |
| 197 "", |
| 198 "", |
| 199 "", |
| 200 "", |
| 201 "", |
| 202 "", |
| 203 "", |
| 204 "" |
| 205 ], |
| 206 "location": "query", |
| 207 "repeated": true, |
| 208 "type": "string" |
| 209 } |
| 210 }, |
| 211 "path": "representatives", |
| 212 "response": { |
| 213 "$ref": "RepresentativeInfoResponse" |
| 214 } |
| 215 }, |
| 216 "representativeInfoByDivision": { |
| 217 "description": "Looks up representative information for a si
ngle geographic division.", |
| 218 "httpMethod": "GET", |
| 219 "id": "civicinfo.representatives.representativeInfoByDivisio
n", |
| 220 "parameterOrder": [ |
| 221 "ocdId" |
| 222 ], |
| 223 "parameters": { |
| 224 "levels": { |
| 225 "description": "A list of office levels to filter by
. Only offices that serve at least one of these levels will be returned. Divisio
ns that don't contain a matching office will not be returned.", |
| 226 "enum": [ |
| 227 "administrativeArea1", |
| 228 "administrativeArea2", |
| 229 "country", |
| 230 "international", |
| 231 "locality", |
| 232 "regional", |
| 233 "special", |
| 234 "subLocality1", |
| 235 "subLocality2" |
| 236 ], |
| 237 "enumDescriptions": [ |
| 238 "", |
| 239 "", |
| 240 "", |
| 241 "", |
| 242 "", |
| 243 "", |
| 244 "", |
| 245 "", |
| 246 "" |
| 247 ], |
| 248 "location": "query", |
| 249 "repeated": true, |
| 250 "type": "string" |
| 251 }, |
142 "ocdId": { | 252 "ocdId": { |
143 "description": "The division to look up. May only be
specified if the address field is not given in the request body.", | 253 "description": "The Open Civic Data division identif
ier of the division to look up.", |
144 "location": "query", | 254 "location": "path", |
| 255 "required": true, |
145 "type": "string" | 256 "type": "string" |
146 }, | 257 }, |
147 "recursive": { | 258 "recursive": { |
148 "default": "false", | 259 "description": "If true, information about all divis
ions contained in the division requested will be included as well. For example,
if querying ocd-division/country:us/district:dc, this would also return all DC's
wards and ANCs.", |
149 "description": "When ocd_id is supplied, return all
divisions which are hierarchically nested within the queried division. For examp
le, if querying ocd-division/country:us/district:dc, this would also return all
DC's wards and ANCs.", | |
150 "location": "query", | 260 "location": "query", |
151 "type": "boolean" | 261 "type": "boolean" |
| 262 }, |
| 263 "roles": { |
| 264 "description": "A list of office roles to filter by.
Only offices fulfilling one of these roles will be returned. Divisions that don
't contain a matching office will not be returned.", |
| 265 "enum": [ |
| 266 "deputyHeadOfGovernment", |
| 267 "executiveCouncil", |
| 268 "governmentOfficer", |
| 269 "headOfGovernment", |
| 270 "headOfState", |
| 271 "highestCourtJudge", |
| 272 "judge", |
| 273 "legislatorLowerBody", |
| 274 "legislatorUpperBody", |
| 275 "schoolBoard", |
| 276 "specialPurposeOfficer" |
| 277 ], |
| 278 "enumDescriptions": [ |
| 279 "", |
| 280 "", |
| 281 "", |
| 282 "", |
| 283 "", |
| 284 "", |
| 285 "", |
| 286 "", |
| 287 "", |
| 288 "", |
| 289 "" |
| 290 ], |
| 291 "location": "query", |
| 292 "repeated": true, |
| 293 "type": "string" |
152 } | 294 } |
153 }, | 295 }, |
154 "path": "representatives/lookup", | 296 "path": "representatives/{ocdId}", |
155 "request": { | |
156 "$ref": "RepresentativeInfoRequest" | |
157 }, | |
158 "response": { | 297 "response": { |
159 "$ref": "RepresentativeInfoResponse" | 298 "$ref": "RepresentativeInfoData" |
160 } | 299 } |
161 } | 300 } |
162 } | 301 } |
163 } | 302 } |
164 }, | 303 }, |
165 "revision": "20140918", | 304 "revision": "20140814", |
166 "rootUrl": "https://www.googleapis.com/", | 305 "rootUrl": "https://www.googleapis.com/", |
167 "schemas": { | 306 "schemas": { |
168 "AdministrationRegion": { | 307 "AdministrationRegion": { |
169 "description": "Describes information about a regional election admi
nistrative area.", | 308 "description": "Describes information about a regional election admi
nistrative area.", |
170 "id": "AdministrationRegion", | 309 "id": "AdministrationRegion", |
171 "properties": { | 310 "properties": { |
172 "electionAdministrationBody": { | 311 "electionAdministrationBody": { |
173 "$ref": "AdministrativeBody", | 312 "$ref": "AdministrativeBody", |
174 "description": "The election administration body for this ar
ea." | 313 "description": "The election administration body for this ar
ea." |
175 }, | 314 }, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 }, | 479 }, |
341 "electorateSpecifications": { | 480 "electorateSpecifications": { |
342 "description": "A description of any additional eligibility
requirements for voting in this contest.", | 481 "description": "A description of any additional eligibility
requirements for voting in this contest.", |
343 "type": "string" | 482 "type": "string" |
344 }, | 483 }, |
345 "id": { | 484 "id": { |
346 "description": "An ID for this object. IDs may change in fut
ure requests and should not be cached. Access to this field requires special acc
ess that can be requested from the Request more link on the Quotas page.", | 485 "description": "An ID for this object. IDs may change in fut
ure requests and should not be cached. Access to this field requires special acc
ess that can be requested from the Request more link on the Quotas page.", |
347 "type": "string" | 486 "type": "string" |
348 }, | 487 }, |
349 "level": { | 488 "level": { |
350 "description": "The level of office for this contest. One of
: federal, state, county, city, other", | 489 "description": "The levels of government of the office for t
his contest. There may be more than one in cases where a jurisdiction effectivel
y acts at two different levels of government; for example, the mayor of the Dist
rict of Columbia acts at \"locality\" level, but also effectively at both \"admi
nistrative-area-2\" and \"administrative-area-1\".", |
351 "type": "string" | 490 "items": { |
| 491 "type": "string" |
| 492 }, |
| 493 "type": "array" |
352 }, | 494 }, |
353 "numberElected": { | 495 "numberElected": { |
354 "description": "The number of candidates that will be electe
d to office in this contest.", | 496 "description": "The number of candidates that will be electe
d to office in this contest.", |
355 "format": "int64", | 497 "format": "int64", |
356 "type": "string" | 498 "type": "string" |
357 }, | 499 }, |
358 "numberVotingFor": { | 500 "numberVotingFor": { |
359 "description": "The number of candidates that a voter may vo
te for in this contest.", | 501 "description": "The number of candidates that a voter may vo
te for in this contest.", |
360 "format": "int64", | 502 "format": "int64", |
361 "type": "string" | 503 "type": "string" |
(...skipping 11 matching lines...) Expand all Loading... |
373 "type": "string" | 515 "type": "string" |
374 }, | 516 }, |
375 "referendumTitle": { | 517 "referendumTitle": { |
376 "description": "The title of the referendum (e.g. 'Propositi
on 42'). This field is only populated for contests of type 'Referendum'.", | 518 "description": "The title of the referendum (e.g. 'Propositi
on 42'). This field is only populated for contests of type 'Referendum'.", |
377 "type": "string" | 519 "type": "string" |
378 }, | 520 }, |
379 "referendumUrl": { | 521 "referendumUrl": { |
380 "description": "A link to the referendum. This field is only
populated for contests of type 'Referendum'.", | 522 "description": "A link to the referendum. This field is only
populated for contests of type 'Referendum'.", |
381 "type": "string" | 523 "type": "string" |
382 }, | 524 }, |
| 525 "roles": { |
| 526 "description": "The roles which this office fulfills.", |
| 527 "items": { |
| 528 "type": "string" |
| 529 }, |
| 530 "type": "array" |
| 531 }, |
383 "sources": { | 532 "sources": { |
384 "description": "A list of sources for this contest. If multi
ple sources are listed, the data has been aggregated from those sources.", | 533 "description": "A list of sources for this contest. If multi
ple sources are listed, the data has been aggregated from those sources.", |
385 "items": { | 534 "items": { |
386 "$ref": "Source" | 535 "$ref": "Source" |
387 }, | 536 }, |
388 "type": "array" | 537 "type": "array" |
389 }, | 538 }, |
390 "special": { | 539 "special": { |
391 "description": "\"Yes\" or \"No\" depending on whether this
a contest being held outside the normal election cycle.", | 540 "description": "\"Yes\" or \"No\" depending on whether this
a contest being held outside the normal election cycle.", |
392 "type": "string" | 541 "type": "string" |
(...skipping 12 matching lines...) Expand all Loading... |
405 "kind": { | 554 "kind": { |
406 "default": "civicinfo#divisionSearchResponse", | 555 "default": "civicinfo#divisionSearchResponse", |
407 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"civicinfo#divisionSearchResponse\".", | 556 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"civicinfo#divisionSearchResponse\".", |
408 "type": "string" | 557 "type": "string" |
409 }, | 558 }, |
410 "results": { | 559 "results": { |
411 "items": { | 560 "items": { |
412 "$ref": "DivisionSearchResult" | 561 "$ref": "DivisionSearchResult" |
413 }, | 562 }, |
414 "type": "array" | 563 "type": "array" |
415 }, | |
416 "status": { | |
417 "description": "The result of the request. One of: success,
addressUnparseable, noAddressParameter, internalLookupFailure", | |
418 "type": "string" | |
419 } | 564 } |
420 }, | 565 }, |
421 "type": "object" | 566 "type": "object" |
422 }, | 567 }, |
423 "DivisionSearchResult": { | 568 "DivisionSearchResult": { |
424 "description": "Represents a political geographic division that matc
hes the requested query.", | 569 "description": "Represents a political geographic division that matc
hes the requested query.", |
425 "id": "DivisionSearchResult", | 570 "id": "DivisionSearchResult", |
426 "properties": { | 571 "properties": { |
427 "aliases": { | 572 "aliases": { |
428 "description": "Other Open Civic Data identifiers that refer
to the same division -- for example, those that refer to other political divisi
ons whose boundaries are defined to be coterminous with this one. For example, o
cd-division/country:us/state:wy will include an alias of ocd-division/country:us
/state:wy/cd:1, since Wyoming has only one Congressional district.", | 573 "description": "Other Open Civic Data identifiers that refer
to the same division -- for example, those that refer to other political divisi
ons whose boundaries are defined to be coterminous with this one. For example, o
cd-division/country:us/state:wy will include an alias of ocd-division/country:us
/state:wy/cd:1, since Wyoming has only one Congressional district.", |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 "description": "Any other valid OCD IDs that refer to the sa
me division.\n\nBecause OCD IDs are meant to be human-readable and at least some
what predictable, there are occasionally several identifiers for a single divisi
on. These identifiers are defined to be equivalent to one another, and one is al
ways indicated as the primary identifier. The primary identifier will be returne
d in ocd_id above, and any other equivalent valid identifiers will be returned i
n this list.\n\nFor example, if this division's OCD ID is ocd-division/country:u
s/district:dc, this will contain ocd-division/country:us/state:dc.", | 680 "description": "Any other valid OCD IDs that refer to the sa
me division.\n\nBecause OCD IDs are meant to be human-readable and at least some
what predictable, there are occasionally several identifiers for a single divisi
on. These identifiers are defined to be equivalent to one another, and one is al
ways indicated as the primary identifier. The primary identifier will be returne
d in ocd_id above, and any other equivalent valid identifiers will be returned i
n this list.\n\nFor example, if this division's OCD ID is ocd-division/country:u
s/district:dc, this will contain ocd-division/country:us/state:dc.", |
536 "items": { | 681 "items": { |
537 "type": "string" | 682 "type": "string" |
538 }, | 683 }, |
539 "type": "array" | 684 "type": "array" |
540 }, | 685 }, |
541 "name": { | 686 "name": { |
542 "description": "The name of the division.", | 687 "description": "The name of the division.", |
543 "type": "string" | 688 "type": "string" |
544 }, | 689 }, |
545 "officeIds": { | 690 "officeIndices": { |
546 "description": "List of keys in the offices object, one for
each office elected from this division. Will only be present if includeOffices w
as true (or absent) in the request.", | 691 "description": "List of indices in the offices array, one fo
r each office elected from this division. Will only be present if includeOffices
was true (or absent) in the request.", |
547 "items": { | 692 "items": { |
548 "type": "string" | 693 "format": "uint32", |
| 694 "type": "integer" |
549 }, | 695 }, |
550 "type": "array" | 696 "type": "array" |
551 }, | |
552 "scope": { | |
553 "description": "The geographic scope of the division. If uns
pecified, the division's geography is not known. One of: national, statewide, co
ngressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide
, township, countyCouncil, cityCouncil, ward, special", | |
554 "type": "string" | |
555 } | 697 } |
556 }, | 698 }, |
557 "type": "object" | 699 "type": "object" |
558 }, | 700 }, |
559 "Office": { | 701 "Office": { |
560 "description": "Information about an Office held by one or more Offi
cials.", | 702 "description": "Information about an Office held by one or more Offi
cials.", |
561 "id": "Office", | 703 "id": "Office", |
562 "properties": { | 704 "properties": { |
563 "divisionId": { | 705 "divisionId": { |
564 "description": "The OCD ID of the division with which this o
ffice is associated.", | 706 "description": "The OCD ID of the division with which this o
ffice is associated.", |
565 "type": "string" | 707 "type": "string" |
566 }, | 708 }, |
567 "level": { | 709 "levels": { |
568 "description": "The level of this elected office. One of: fe
deral, state, county, city, other", | 710 "description": "The levels of government of which this offic
e is part. There may be more than one in cases where a jurisdiction effectively
acts at two different levels of government; for example, the mayor of the Distri
ct of Columbia acts at \"locality\" level, but also effectively at both \"admini
strative-area-2\" and \"administrative-area-1\".", |
569 "type": "string" | 711 "items": { |
| 712 "type": "string" |
| 713 }, |
| 714 "type": "array" |
570 }, | 715 }, |
571 "name": { | 716 "name": { |
572 "description": "The human-readable name of the office.", | 717 "description": "The human-readable name of the office.", |
573 "type": "string" | 718 "type": "string" |
574 }, | 719 }, |
575 "officialIds": { | 720 "officialIndices": { |
576 "description": "List of keys in the officials object of peop
le who presently hold this office.", | 721 "description": "List of indices in the officials array of pe
ople who presently hold this office.", |
| 722 "items": { |
| 723 "format": "uint32", |
| 724 "type": "integer" |
| 725 }, |
| 726 "type": "array" |
| 727 }, |
| 728 "roles": { |
| 729 "description": "The roles which this office fulfills. Roles
are not meant to be exhaustive, or to exactly specify the entire set of responsi
bilities of a given office, but are meant to be rough categories that are useful
for general selection from or sorting of a list of offices.", |
577 "items": { | 730 "items": { |
578 "type": "string" | 731 "type": "string" |
579 }, | 732 }, |
580 "type": "array" | 733 "type": "array" |
581 }, | 734 }, |
582 "sources": { | 735 "sources": { |
583 "description": "A list of sources for this office. If multip
le sources are listed, the data has been aggregated from those sources.", | 736 "description": "A list of sources for this office. If multip
le sources are listed, the data has been aggregated from those sources.", |
584 "items": { | 737 "items": { |
585 "$ref": "Source" | 738 "$ref": "Source" |
586 }, | 739 }, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 "description": "The first date that this early vote site may
be used. This field is not populated for polling locations.", | 835 "description": "The first date that this early vote site may
be used. This field is not populated for polling locations.", |
683 "type": "string" | 836 "type": "string" |
684 }, | 837 }, |
685 "voterServices": { | 838 "voterServices": { |
686 "description": "The services provided by this early vote sit
e. This field is not populated for polling locations.", | 839 "description": "The services provided by this early vote sit
e. This field is not populated for polling locations.", |
687 "type": "string" | 840 "type": "string" |
688 } | 841 } |
689 }, | 842 }, |
690 "type": "object" | 843 "type": "object" |
691 }, | 844 }, |
692 "RepresentativeInfoRequest": { | 845 "RepresentativeInfoData": { |
693 "description": "A request for political geography and representative
information for an address.", | 846 "id": "RepresentativeInfoData", |
694 "id": "RepresentativeInfoRequest", | |
695 "properties": { | 847 "properties": { |
696 "address": { | 848 "divisions": { |
697 "description": "The address to look up. May only be specifie
d if the field ocdId is not given in the URL.", | 849 "additionalProperties": { |
698 "type": "string" | 850 "$ref": "GeographicDivision", |
| 851 "description": "The unique Open Civic Data identifier fo
r this division." |
| 852 }, |
| 853 "description": "Political geographic divisions that contain
the requested address.", |
| 854 "type": "object" |
| 855 }, |
| 856 "offices": { |
| 857 "description": "Elected offices referenced by the divisions
listed above. Will only be present if includeOffices was true in the request.", |
| 858 "items": { |
| 859 "$ref": "Office" |
| 860 }, |
| 861 "type": "array" |
| 862 }, |
| 863 "officials": { |
| 864 "description": "Officials holding the offices listed above.
Will only be present if includeOffices was true in the request.", |
| 865 "items": { |
| 866 "$ref": "Official" |
| 867 }, |
| 868 "type": "array" |
699 } | 869 } |
700 }, | 870 }, |
701 "type": "object" | 871 "type": "object" |
702 }, | 872 }, |
703 "RepresentativeInfoResponse": { | 873 "RepresentativeInfoResponse": { |
704 "description": "The result of a representative info lookup query.", | 874 "description": "The result of a representative info lookup query.", |
705 "id": "RepresentativeInfoResponse", | 875 "id": "RepresentativeInfoResponse", |
706 "properties": { | 876 "properties": { |
707 "divisions": { | 877 "divisions": { |
708 "additionalProperties": { | 878 "additionalProperties": { |
709 "$ref": "GeographicDivision", | 879 "$ref": "GeographicDivision", |
710 "description": "The unique Open Civic Data identifier fo
r this division." | 880 "description": "The unique Open Civic Data identifier fo
r this division." |
711 }, | 881 }, |
712 "description": "Political geographic divisions that contain
the requested address.", | 882 "description": "Political geographic divisions that contain
the requested address.", |
713 "type": "object" | 883 "type": "object" |
714 }, | 884 }, |
715 "kind": { | 885 "kind": { |
716 "default": "civicinfo#representativeInfoResponse", | 886 "default": "civicinfo#representativeInfoResponse", |
717 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"civicinfo#representativeInfoResponse\".", | 887 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"civicinfo#representativeInfoResponse\".", |
718 "type": "string" | 888 "type": "string" |
719 }, | 889 }, |
720 "normalizedInput": { | 890 "normalizedInput": { |
721 "$ref": "SimpleAddressType", | 891 "$ref": "SimpleAddressType", |
722 "description": "The normalized version of the requested addr
ess" | 892 "description": "The normalized version of the requested addr
ess" |
723 }, | 893 }, |
724 "offices": { | 894 "offices": { |
725 "additionalProperties": { | 895 "description": "Elected offices referenced by the divisions
listed above. Will only be present if includeOffices was true in the request.", |
726 "$ref": "Office", | 896 "items": { |
727 "description": "A unique identifier for this office, wit
hin the context of this request. Identifiers are *not* long-lived: the same offi
ce may get different IDs on different requests." | 897 "$ref": "Office" |
728 }, | 898 }, |
729 "description": "Elected offices referenced by the divisions
listed above. Will only be present if includeOffices was true in the request.", | 899 "type": "array" |
730 "type": "object" | |
731 }, | 900 }, |
732 "officials": { | 901 "officials": { |
733 "additionalProperties": { | 902 "description": "Officials holding the offices listed above.
Will only be present if includeOffices was true in the request.", |
734 "$ref": "Official", | 903 "items": { |
735 "description": "A unique identifier for this official, w
ithin the context of this request. Identifiers are *not* long-lived: the same of
ficial may get different IDs on different requests." | 904 "$ref": "Official" |
736 }, | 905 }, |
737 "description": "Officials holding the offices listed above.
Will only be present if includeOffices was true in the request.", | 906 "type": "array" |
738 "type": "object" | |
739 }, | |
740 "status": { | |
741 "description": "The result of the request. One of: success,
noStreetSegmentFound, addressUnparseable, noAddressParameter, multipleStreetSegm
entsFound, electionOver, electionUnknown, internalLookupFailure, RequestedBothAd
dressAndOcdId", | |
742 "type": "string" | |
743 } | 907 } |
744 }, | 908 }, |
745 "type": "object" | 909 "type": "object" |
746 }, | 910 }, |
747 "SimpleAddressType": { | 911 "SimpleAddressType": { |
748 "description": "A simple representation of an address.", | 912 "description": "A simple representation of an address.", |
749 "id": "SimpleAddressType", | 913 "id": "SimpleAddressType", |
750 "properties": { | 914 "properties": { |
751 "city": { | 915 "city": { |
752 "description": "The city or town for the address.", | 916 "description": "The city or town for the address.", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 "description": "The name of the data source.", | 951 "description": "The name of the data source.", |
788 "type": "string" | 952 "type": "string" |
789 }, | 953 }, |
790 "official": { | 954 "official": { |
791 "description": "Whether this data comes from an official gov
ernment source.", | 955 "description": "Whether this data comes from an official gov
ernment source.", |
792 "type": "boolean" | 956 "type": "boolean" |
793 } | 957 } |
794 }, | 958 }, |
795 "type": "object" | 959 "type": "object" |
796 }, | 960 }, |
797 "VoterInfoRequest": { | |
798 "description": "A request for information about a voter.", | |
799 "id": "VoterInfoRequest", | |
800 "properties": { | |
801 "address": { | |
802 "description": "The registered address of the voter to look
up.", | |
803 "type": "string" | |
804 } | |
805 }, | |
806 "type": "object" | |
807 }, | |
808 "VoterInfoResponse": { | 961 "VoterInfoResponse": { |
809 "description": "The result of a voter info lookup query.", | 962 "description": "The result of a voter info lookup query.", |
810 "id": "VoterInfoResponse", | 963 "id": "VoterInfoResponse", |
811 "properties": { | 964 "properties": { |
812 "contests": { | 965 "contests": { |
813 "description": "Contests that will appear on the voter's bal
lot", | 966 "description": "Contests that will appear on the voter's bal
lot", |
814 "items": { | 967 "items": { |
815 "$ref": "Contest" | 968 "$ref": "Contest" |
816 }, | 969 }, |
817 "type": "array" | 970 "type": "array" |
(...skipping 11 matching lines...) Expand all Loading... |
829 }, | 982 }, |
830 "kind": { | 983 "kind": { |
831 "default": "civicinfo#voterInfoResponse", | 984 "default": "civicinfo#voterInfoResponse", |
832 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"civicinfo#voterInfoResponse\".", | 985 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"civicinfo#voterInfoResponse\".", |
833 "type": "string" | 986 "type": "string" |
834 }, | 987 }, |
835 "normalizedInput": { | 988 "normalizedInput": { |
836 "$ref": "SimpleAddressType", | 989 "$ref": "SimpleAddressType", |
837 "description": "The normalized version of the requested addr
ess" | 990 "description": "The normalized version of the requested addr
ess" |
838 }, | 991 }, |
| 992 "otherElections": { |
| 993 "description": "If no election ID was specified in the query
, and there was more than one election with data for the given voter, this will
contain information about the other elections that could apply.", |
| 994 "items": { |
| 995 "$ref": "Election" |
| 996 }, |
| 997 "type": "array" |
| 998 }, |
839 "pollingLocations": { | 999 "pollingLocations": { |
840 "description": "Locations where the voter is eligible to vot
e on election day. For states with mail-in voting only, these locations will be
nearby drop box locations. Drop box locations are free to the voter and may be u
sed instead of placing the ballot in the mail.", | 1000 "description": "Locations where the voter is eligible to vot
e on election day. For states with mail-in voting only, these locations will be
nearby drop box locations. Drop box locations are free to the voter and may be u
sed instead of placing the ballot in the mail.", |
841 "items": { | 1001 "items": { |
842 "$ref": "PollingLocation" | 1002 "$ref": "PollingLocation" |
843 }, | 1003 }, |
844 "type": "array" | 1004 "type": "array" |
845 }, | 1005 }, |
| 1006 "precinctId": { |
| 1007 "type": "string" |
| 1008 }, |
846 "state": { | 1009 "state": { |
847 "description": "Local Election Information for the state tha
t the voter votes in. For the US, there will only be one element in this array."
, | 1010 "description": "Local Election Information for the state tha
t the voter votes in. For the US, there will only be one element in this array."
, |
848 "items": { | 1011 "items": { |
849 "$ref": "AdministrationRegion" | 1012 "$ref": "AdministrationRegion" |
850 }, | 1013 }, |
851 "type": "array" | 1014 "type": "array" |
852 }, | |
853 "status": { | |
854 "description": "The result of the request. One of: success,
noStreetSegmentFound, addressUnparseable, noAddressParameter, multipleStreetSegm
entsFound, electionOver, electionUnknown, internalLookupFailure", | |
855 "type": "string" | |
856 } | 1015 } |
857 }, | 1016 }, |
858 "type": "object" | 1017 "type": "object" |
859 } | 1018 } |
860 }, | 1019 }, |
861 "servicePath": "civicinfo/v1/", | 1020 "servicePath": "civicinfo/v2/", |
862 "title": "Google Civic Information API", | 1021 "title": "Google Civic Information API", |
863 "version": "v1" | 1022 "version": "v2" |
864 } | 1023 } |
OLD | NEW |