| OLD | NEW |
| 1 { | 1 { |
| 2 "basePath": "/civicinfo/v2/", | 2 "basePath": "/civicinfo/v2/", |
| 3 "baseUrl": "https://www.googleapis.com/civicinfo/v2/", | 3 "baseUrl": "https://www.googleapis.com/civicinfo/v2/", |
| 4 "batchPath": "batch", | 4 "batchPath": "batch", |
| 5 "canonicalName": "Civic Info", | 5 "canonicalName": "Civic Info", |
| 6 "description": "Provides polling places, early vote locations, contest data,
election officials, and government representatives for U.S. residential address
es.", | 6 "description": "Provides polling places, early vote locations, contest data,
election officials, and government representatives for U.S. residential address
es.", |
| 7 "discoveryVersion": "v1", | 7 "discoveryVersion": "v1", |
| 8 "documentationLink": "https://developers.google.com/civic-information", | 8 "documentationLink": "https://developers.google.com/civic-information", |
| 9 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/JbLtR8qm6OXKJtUgWtmtjItfF8U\"", | 9 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/0RRptSlHJI7MXoKAqjNEurqVvHk\"", |
| 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:v2", | 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": { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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", | 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", | 114 "format": "int64", |
| 115 "location": "query", | 115 "location": "query", |
| 116 "type": "string" | 116 "type": "string" |
| 117 }, | 117 }, |
| 118 "officialOnly": { | 118 "officialOnly": { |
| 119 "default": "false", | 119 "default": "false", |
| 120 "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.", |
| 121 "location": "query", | 121 "location": "query", |
| 122 "type": "boolean" | 122 "type": "boolean" |
| 123 }, |
| 124 "returnAllAvailableData": { |
| 125 "default": "false", |
| 126 "description": "If set to true, the query will retur
n the success codeand include any partial information when it is unable to deter
mine a matching address or unable to determine the election for electionId=0 que
ries.", |
| 127 "location": "query", |
| 128 "type": "boolean" |
| 123 } | 129 } |
| 124 }, | 130 }, |
| 125 "path": "voterinfo", | 131 "path": "voterinfo", |
| 126 "response": { | 132 "response": { |
| 127 "$ref": "VoterInfoResponse" | 133 "$ref": "VoterInfoResponse" |
| 128 } | 134 } |
| 129 } | 135 } |
| 130 } | 136 } |
| 131 }, | 137 }, |
| 132 "representatives": { | 138 "representatives": { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 300 } |
| 295 }, | 301 }, |
| 296 "path": "representatives/{ocdId}", | 302 "path": "representatives/{ocdId}", |
| 297 "response": { | 303 "response": { |
| 298 "$ref": "RepresentativeInfoData" | 304 "$ref": "RepresentativeInfoData" |
| 299 } | 305 } |
| 300 } | 306 } |
| 301 } | 307 } |
| 302 } | 308 } |
| 303 }, | 309 }, |
| 304 "revision": "20160707", | 310 "revision": "20160823", |
| 305 "rootUrl": "https://www.googleapis.com/", | 311 "rootUrl": "https://www.googleapis.com/", |
| 306 "schemas": { | 312 "schemas": { |
| 307 "AdministrationRegion": { | 313 "AdministrationRegion": { |
| 308 "description": "Describes information about a regional election admi
nistrative area.", | 314 "description": "Describes information about a regional election admi
nistrative area.", |
| 309 "id": "AdministrationRegion", | 315 "id": "AdministrationRegion", |
| 310 "properties": { | 316 "properties": { |
| 311 "electionAdministrationBody": { | 317 "electionAdministrationBody": { |
| 312 "$ref": "AdministrativeBody", | 318 "$ref": "AdministrativeBody", |
| 313 "description": "The election administration body for this ar
ea." | 319 "description": "The election administration body for this ar
ea." |
| 314 }, | 320 }, |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 }, | 516 }, |
| 511 "office": { | 517 "office": { |
| 512 "description": "The name of the office for this contest.", | 518 "description": "The name of the office for this contest.", |
| 513 "type": "string" | 519 "type": "string" |
| 514 }, | 520 }, |
| 515 "primaryParty": { | 521 "primaryParty": { |
| 516 "description": "If this is a partisan election, the name of
the party it is for.", | 522 "description": "If this is a partisan election, the name of
the party it is for.", |
| 517 "type": "string" | 523 "type": "string" |
| 518 }, | 524 }, |
| 519 "referendumBallotResponses": { | 525 "referendumBallotResponses": { |
| 520 "description": "The set of ballot responses for the referend
um. A ballot response represents a line on the ballot. Common examples might inc
lude \"yes\" or \"no\" for referenda, or a judge's name for a retention contest.
This field is only populated for contests of type 'Referendum'.", | 526 "description": "The set of ballot responses for the referend
um. A ballot response represents a line on the ballot. Common examples might inc
lude \"yes\" or \"no\" for referenda. This field is only populated for contests
of type 'Referendum'.", |
| 521 "items": { | 527 "items": { |
| 522 "type": "string" | 528 "type": "string" |
| 523 }, | 529 }, |
| 524 "type": "array" | 530 "type": "array" |
| 525 }, | 531 }, |
| 526 "referendumBrief": { | 532 "referendumBrief": { |
| 527 "description": "Specifies a short summary of the referendum
that is typically on the ballot below the title but above the text. This field i
s only populated for contests of type 'Referendum'.", | 533 "description": "Specifies a short summary of the referendum
that is typically on the ballot below the title but above the text. This field i
s only populated for contests of type 'Referendum'.", |
| 528 "type": "string" | 534 "type": "string" |
| 529 }, | 535 }, |
| 530 "referendumConStatement": { | 536 "referendumConStatement": { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 "items": { | 577 "items": { |
| 572 "$ref": "Source" | 578 "$ref": "Source" |
| 573 }, | 579 }, |
| 574 "type": "array" | 580 "type": "array" |
| 575 }, | 581 }, |
| 576 "special": { | 582 "special": { |
| 577 "description": "\"Yes\" or \"No\" depending on whether this
a contest being held outside the normal election cycle.", | 583 "description": "\"Yes\" or \"No\" depending on whether this
a contest being held outside the normal election cycle.", |
| 578 "type": "string" | 584 "type": "string" |
| 579 }, | 585 }, |
| 580 "type": { | 586 "type": { |
| 581 "description": "The type of contest. Usually this will be 'G
eneral', 'Primary', or 'Run-off' for contests with candidates. For referenda thi
s will be 'Referendum'.", | 587 "description": "The type of contest. Usually this will be 'G
eneral', 'Primary', or 'Run-off' for contests with candidates. For referenda thi
s will be 'Referendum'. For Retention contests this will typically be 'Retention
'.", |
| 582 "type": "string" | 588 "type": "string" |
| 583 } | 589 } |
| 584 }, | 590 }, |
| 585 "type": "object" | 591 "type": "object" |
| 586 }, | 592 }, |
| 587 "DivisionSearchResponse": { | 593 "DivisionSearchResponse": { |
| 588 "description": "The result of a division search query.", | 594 "description": "The result of a division search query.", |
| 589 "id": "DivisionSearchResponse", | 595 "id": "DivisionSearchResponse", |
| 590 "properties": { | 596 "properties": { |
| 591 "kind": { | 597 "kind": { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 "type": "object" | 701 "type": "object" |
| 696 }, | 702 }, |
| 697 "ElectoralDistrict": { | 703 "ElectoralDistrict": { |
| 698 "description": "Describes the geographic scope of a contest.", | 704 "description": "Describes the geographic scope of a contest.", |
| 699 "id": "ElectoralDistrict", | 705 "id": "ElectoralDistrict", |
| 700 "properties": { | 706 "properties": { |
| 701 "id": { | 707 "id": { |
| 702 "description": "An identifier for this district, relative to
its scope. For example, the 34th State Senate district would have id \"34\" and
a scope of stateUpper.", | 708 "description": "An identifier for this district, relative to
its scope. For example, the 34th State Senate district would have id \"34\" and
a scope of stateUpper.", |
| 703 "type": "string" | 709 "type": "string" |
| 704 }, | 710 }, |
| 711 "kgForeignKey": { |
| 712 "type": "string" |
| 713 }, |
| 705 "name": { | 714 "name": { |
| 706 "description": "The name of the district.", | 715 "description": "The name of the district.", |
| 707 "type": "string" | 716 "type": "string" |
| 708 }, | 717 }, |
| 709 "scope": { | 718 "scope": { |
| 710 "description": "The geographic scope of this district. If un
specified the district's geography is not known. One of: national, statewide, co
ngressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide
, township, countyCouncil, cityCouncil, ward, special", | 719 "description": "The geographic scope of this district. If un
specified the district's geography is not known. One of: national, statewide, co
ngressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide
, township, countyCouncil, cityCouncil, ward, special", |
| 711 "type": "string" | 720 "type": "string" |
| 712 } | 721 } |
| 713 }, | 722 }, |
| 714 "type": "object" | 723 "type": "object" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 "type": "array" | 1075 "type": "array" |
| 1067 } | 1076 } |
| 1068 }, | 1077 }, |
| 1069 "type": "object" | 1078 "type": "object" |
| 1070 } | 1079 } |
| 1071 }, | 1080 }, |
| 1072 "servicePath": "civicinfo/v2/", | 1081 "servicePath": "civicinfo/v2/", |
| 1073 "title": "Google Civic Information API", | 1082 "title": "Google Civic Information API", |
| 1074 "version": "v2" | 1083 "version": "v2" |
| 1075 } | 1084 } |
| OLD | NEW |