Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="civicinfo_v2.html">Google Civic Information API</a> . <a href="civicinfo_v2.elections.html">elections</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 81 | <code><a href="#electionQuery">electionQuery(x__xgafv=None)</a></code></p> |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 82 | <p class="firstline">List of available elections to query.</p> |
| 83 | <p class="toc_element"> |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 84 | <code><a href="#voterInfoQuery">voterInfoQuery(address, electionId=None, returnAllAvailableData=None, officialOnly=None, x__xgafv=None)</a></code></p> |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 85 | <p class="firstline">Looks up information relevant to a voter based on the voter's registered address.</p> |
| 86 | <h3>Method Details</h3> |
| 87 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 88 | <code class="details" id="close">close()</code> |
| 89 | <pre>Close httplib2 connections.</pre> |
| 90 | </div> |
| 91 | |
| 92 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 93 | <code class="details" id="electionQuery">electionQuery(x__xgafv=None)</code> |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 94 | <pre>List of available elections to query. |
| 95 | |
| 96 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 97 | x__xgafv: string, V1 error format. |
| 98 | Allowed values |
| 99 | 1 - v1 error format |
| 100 | 2 - v2 error format |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 101 | |
| 102 | Returns: |
| 103 | An object of the form: |
| 104 | |
| 105 | { # The list of elections available for this version of the API. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 106 | "kind": "civicinfo#electionsQueryResponse", # Identifies what kind of resource this is. Value: the fixed string "civicinfo#electionsQueryResponse". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 107 | "elections": [ # A list of available elections |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 108 | { # Information about the election that was queried. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 109 | "id": "A String", # The unique ID of this election. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 110 | "ocdDivisionId": "A String", # The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 111 | "electionDay": "A String", # Day of the election in YYYY-MM-DD format. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 112 | "name": "A String", # A displayable name for the election. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 113 | }, |
| 114 | ], |
| 115 | }</pre> |
| 116 | </div> |
| 117 | |
| 118 | <div class="method"> |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 119 | <code class="details" id="voterInfoQuery">voterInfoQuery(address, electionId=None, returnAllAvailableData=None, officialOnly=None, x__xgafv=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 120 | <pre>Looks up information relevant to a voter based on the voter's registered address. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 121 | |
| 122 | Args: |
| 123 | address: string, The registered address of the voter to look up. (required) |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 124 | electionId: string, The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/elections. If no election ID is specified in the query and there is more than one election with data for the given voter, the additional elections are provided in the otherElections response field. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 125 | returnAllAvailableData: boolean, If set to true, the query will return the success code and include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 126 | officialOnly: boolean, If set to true, only data from official state sources will be returned. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 127 | x__xgafv: string, V1 error format. |
| 128 | Allowed values |
| 129 | 1 - v1 error format |
| 130 | 2 - v2 error format |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 131 | |
| 132 | Returns: |
| 133 | An object of the form: |
| 134 | |
| 135 | { # The result of a voter info lookup query. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 136 | "normalizedInput": { # A simple representation of an address. # The normalized version of the requested address |
| 137 | "line3": "A String", # The third line of the address, if needed. |
| 138 | "line2": "A String", # The second line the address, if needed. |
| 139 | "city": "A String", # The city or town for the address. |
| 140 | "state": "A String", # The US two letter state abbreviation of the address. |
| 141 | "zip": "A String", # The US Postal Zip Code of the address. |
| 142 | "locationName": "A String", # The name of the location. |
| 143 | "line1": "A String", # The street name and number of this address. |
| 144 | }, |
| 145 | "election": { # Information about the election that was queried. # The election that was queried. |
| 146 | "id": "A String", # The unique ID of this election. |
| 147 | "ocdDivisionId": "A String", # The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us). |
| 148 | "electionDay": "A String", # Day of the election in YYYY-MM-DD format. |
| 149 | "name": "A String", # A displayable name for the election. |
| 150 | }, |
| 151 | "otherElections": [ # When there are multiple elections for a voter address, the otherElections field is populated in the API response and there are two possibilities: 1. If the earliest election is not the intended election, specify the election ID of the desired election in a second API request using the electionId field. 2. If these elections occur on the same day, the API doesn?t return any polling location, contest, or election official information to ensure that an additional query is made. For user-facing applications, we recommend displaying these elections to the user to disambiguate. A second API request using the electionId field should be made for the election that is relevant to the user. |
| 152 | { # Information about the election that was queried. |
| 153 | "id": "A String", # The unique ID of this election. |
| 154 | "ocdDivisionId": "A String", # The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us). |
| 155 | "electionDay": "A String", # Day of the election in YYYY-MM-DD format. |
| 156 | "name": "A String", # A displayable name for the election. |
| 157 | }, |
| 158 | ], |
| 159 | "precinctId": "A String", |
| 160 | "dropOffLocations": [ # Locations where a voter is eligible to drop off a completed ballot. The voter must have received and completed a ballot prior to arriving at the location. The location may not have ballots available on the premises. These locations could be open on or before election day as indicated in the pollingHours field. |
| 161 | { # A location where a voter can vote. This may be an early vote site, an election day voting location, or a drop off location for a completed ballot. |
| 162 | "address": { # A simple representation of an address. # The address of the location. |
| 163 | "line3": "A String", # The third line of the address, if needed. |
| 164 | "line2": "A String", # The second line the address, if needed. |
| 165 | "city": "A String", # The city or town for the address. |
| 166 | "state": "A String", # The US two letter state abbreviation of the address. |
| 167 | "zip": "A String", # The US Postal Zip Code of the address. |
| 168 | "locationName": "A String", # The name of the location. |
| 169 | "line1": "A String", # The street name and number of this address. |
| 170 | }, |
| 171 | "voterServices": "A String", # The services provided by this early vote site or drop off location. This field is not populated for polling locations. |
| 172 | "latitude": 3.14, # Latitude of the location, in degrees north of the equator. Note this field may not be available for some locations. |
| 173 | "endDate": "A String", # The last date that this early vote site or drop off location may be used. This field is not populated for polling locations. |
| 174 | "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use). |
| 175 | "longitude": 3.14, # Longitude of the location, in degrees east of the Prime Meridian. Note this field may not be available for some locations. |
| 176 | "name": "A String", # The name of the early vote site or drop off location. This field is not populated for polling locations. |
| 177 | "startDate": "A String", # The first date that this early vote site or drop off location may be used. This field is not populated for polling locations. |
| 178 | "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 179 | { # Contains information about the data source for the element containing it. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 180 | "official": True or False, # Whether this data comes from an official government source. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 181 | "name": "A String", # The name of the data source. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 182 | }, |
| 183 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 184 | "pollingHours": "A String", # A description of when this location is open. |
| 185 | }, |
| 186 | ], |
| 187 | "mailOnly": True or False, # Specifies whether voters in the precinct vote only by mailing their ballots (with the possible option of dropping off their ballots as well). |
| 188 | "state": [ # Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array. |
| 189 | { # Describes information about a regional election administrative area. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 190 | "electionAdministrationBody": { # Information about an election administrative body (e.g. County Board of Elections). # The election administration body for this area. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 191 | "voter_services": [ # A description of the services this administrative body may provide. |
| 192 | "A String", |
| 193 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 194 | "votingLocationFinderUrl": "A String", # A URL provided by this administrative body for looking up where to vote. |
| 195 | "hoursOfOperation": "A String", # A description of the hours of operation for this administrative body. |
| 196 | "absenteeVotingInfoUrl": "A String", # A URL provided by this administrative body for information on absentee voting. |
| 197 | "electionRulesUrl": "A String", # A URL provided by this administrative body describing election rules to the voter. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 198 | "electionNoticeUrl": "A String", # A URL provided by this administrative body for additional information related to the last minute or emergency notification. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 199 | "electionNoticeText": "A String", # A last minute or emergency notification text provided by this administrative body. |
| 200 | "electionInfoUrl": "A String", # A URL provided by this administrative body for looking up general election information. |
| 201 | "electionOfficials": [ # The election officials for this election administrative body. |
| 202 | { # Information about individual election officials. |
| 203 | "title": "A String", # The title of the election official. |
| 204 | "officePhoneNumber": "A String", # The office phone number of the election official. |
| 205 | "faxNumber": "A String", # The fax number of the election official. |
| 206 | "emailAddress": "A String", # The email address of the election official. |
| 207 | "name": "A String", # The full name of the election official. |
| 208 | }, |
| 209 | ], |
| 210 | "name": "A String", # The name of this election administrative body. |
| 211 | "electionRegistrationConfirmationUrl": "A String", # A URL provided by this administrative body for confirming that the voter is registered to vote. |
| 212 | "physicalAddress": { # A simple representation of an address. # The physical address of this administrative body. |
| 213 | "line3": "A String", # The third line of the address, if needed. |
| 214 | "line2": "A String", # The second line the address, if needed. |
| 215 | "city": "A String", # The city or town for the address. |
| 216 | "state": "A String", # The US two letter state abbreviation of the address. |
| 217 | "zip": "A String", # The US Postal Zip Code of the address. |
| 218 | "locationName": "A String", # The name of the location. |
| 219 | "line1": "A String", # The street name and number of this address. |
| 220 | }, |
| 221 | "electionRegistrationUrl": "A String", # A URL provided by this administrative body for looking up how to register to vote. |
| 222 | "correspondenceAddress": { # A simple representation of an address. # The mailing address of this administrative body. |
| 223 | "line3": "A String", # The third line of the address, if needed. |
| 224 | "line2": "A String", # The second line the address, if needed. |
| 225 | "city": "A String", # The city or town for the address. |
| 226 | "state": "A String", # The US two letter state abbreviation of the address. |
| 227 | "zip": "A String", # The US Postal Zip Code of the address. |
| 228 | "locationName": "A String", # The name of the location. |
| 229 | "line1": "A String", # The street name and number of this address. |
| 230 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 231 | "ballotInfoUrl": "A String", # A URL provided by this administrative body to give contest information to the voter. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 232 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 233 | "sources": [ # A list of sources for this area. If multiple sources are listed the data has been aggregated from those sources. |
| 234 | { # Contains information about the data source for the element containing it. |
| 235 | "official": True or False, # Whether this data comes from an official government source. |
| 236 | "name": "A String", # The name of the data source. |
| 237 | }, |
| 238 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 239 | "local_jurisdiction": # Object with schema name: AdministrationRegion # The city or county that provides election information for this voter. This object can have the same elements as state. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 240 | "name": "A String", # The name of the jurisdiction. |
| 241 | }, |
| 242 | ], |
| 243 | "earlyVoteSites": [ # Locations where the voter is eligible to vote early, prior to election day. |
| 244 | { # A location where a voter can vote. This may be an early vote site, an election day voting location, or a drop off location for a completed ballot. |
| 245 | "address": { # A simple representation of an address. # The address of the location. |
| 246 | "line3": "A String", # The third line of the address, if needed. |
| 247 | "line2": "A String", # The second line the address, if needed. |
| 248 | "city": "A String", # The city or town for the address. |
| 249 | "state": "A String", # The US two letter state abbreviation of the address. |
| 250 | "zip": "A String", # The US Postal Zip Code of the address. |
| 251 | "locationName": "A String", # The name of the location. |
| 252 | "line1": "A String", # The street name and number of this address. |
| 253 | }, |
| 254 | "voterServices": "A String", # The services provided by this early vote site or drop off location. This field is not populated for polling locations. |
| 255 | "latitude": 3.14, # Latitude of the location, in degrees north of the equator. Note this field may not be available for some locations. |
| 256 | "endDate": "A String", # The last date that this early vote site or drop off location may be used. This field is not populated for polling locations. |
| 257 | "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use). |
| 258 | "longitude": 3.14, # Longitude of the location, in degrees east of the Prime Meridian. Note this field may not be available for some locations. |
| 259 | "name": "A String", # The name of the early vote site or drop off location. This field is not populated for polling locations. |
| 260 | "startDate": "A String", # The first date that this early vote site or drop off location may be used. This field is not populated for polling locations. |
| 261 | "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. |
| 262 | { # Contains information about the data source for the element containing it. |
| 263 | "official": True or False, # Whether this data comes from an official government source. |
| 264 | "name": "A String", # The name of the data source. |
| 265 | }, |
| 266 | ], |
| 267 | "pollingHours": "A String", # A description of when this location is open. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 268 | }, |
| 269 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 270 | "kind": "civicinfo#voterInfoResponse", # Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse". |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 271 | "contests": [ # Contests that will appear on the voter's ballot. |
| 272 | { # Information about a contest that appears on a voter's ballot. |
| 273 | "referendumBrief": "A String", # Specifies a short summary of the referendum that is typically on the ballot below the title but above the text. This field is only populated for contests of type 'Referendum'. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 274 | "special": "A String", # "Yes" or "No" depending on whether this a contest being held outside the normal election cycle. |
| 275 | "referendumPassageThreshold": "A String", # The threshold of votes that the referendum needs in order to pass, e.g. "two-thirds". This field is only populated for contests of type 'Referendum'. |
| 276 | "referendumSubtitle": "A String", # A brief description of the referendum. This field is only populated for contests of type 'Referendum'. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 277 | "sources": [ # A list of sources for this contest. If multiple sources are listed, the data has been aggregated from those sources. |
| 278 | { # Contains information about the data source for the element containing it. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 279 | "official": True or False, # Whether this data comes from an official government source. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 280 | "name": "A String", # The name of the data source. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 281 | }, |
| 282 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 283 | "candidates": [ # The candidate choices for this contest. |
| 284 | { # Information about a candidate running for elected office. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 285 | "party": "A String", # The full name of the party the candidate is a member of. |
| 286 | "photoUrl": "A String", # A URL for a photo of the candidate. |
| 287 | "candidateUrl": "A String", # The URL for the candidate's campaign web site. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 288 | "channels": [ # A list of known (social) media channels for this candidate. |
| 289 | { # A social media or web channel for a candidate. |
| 290 | "id": "A String", # The unique public identifier for the candidate's channel. |
| 291 | "type": "A String", # The type of channel. The following is a list of types of channels, but is not exhaustive. More channel types may be added at a later time. One of: GooglePlus, YouTube, Facebook, Twitter |
| 292 | }, |
| 293 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 294 | "email": "A String", # The email address for the candidate's campaign. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 295 | "phone": "A String", # The voice phone number for the candidate's campaign office. |
| 296 | "orderOnBallot": "A String", # The order the candidate appears on the ballot for this contest. |
| 297 | "name": "A String", # The candidate's name. If this is a joint ticket it will indicate the name of the candidate at the top of a ticket followed by a / and that name of candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan" |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 298 | }, |
| 299 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 300 | "ballotTitle": "A String", # The official title on the ballot for this contest, only where available. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 301 | "referendumProStatement": "A String", # A statement in favor of the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'. |
| 302 | "referendumUrl": "A String", # A link to the referendum. This field is only populated for contests of type 'Referendum'. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 303 | "referendumText": "A String", # The full text of the referendum. This field is only populated for contests of type 'Referendum'. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 304 | "referendumTitle": "A String", # The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'. |
| 305 | "type": "A String", # The type of contest. Usually this will be 'General', 'Primary', or 'Run-off' for contests with candidates. For referenda this will be 'Referendum'. For Retention contests this will typically be 'Retention'. |
| 306 | "ballotPlacement": "A String", # A number specifying the position of this contest on the voter's ballot. |
| 307 | "office": "A String", # The name of the office for this contest. |
| 308 | "primaryParty": "A String", # [DEPRECATED] If this is a partisan election, the name of the party it is for. This field as deprecated in favor of the array "primaryParties", as contests may contain more than one party. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 309 | "level": [ # The levels of government of the office for this contest. 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 District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1". |
| 310 | "A String", |
| 311 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 312 | "referendumConStatement": "A String", # A statement in opposition to the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'. |
| 313 | "primaryParties": [ # If this is a partisan election, the name of the party/parties it is for. |
| 314 | "A String", |
| 315 | ], |
| 316 | "numberElected": "A String", # The number of candidates that will be elected to office in this contest. |
| 317 | "numberVotingFor": "A String", # The number of candidates that a voter may vote for in this contest. |
| 318 | "roles": [ # The roles which this office fulfills. |
| 319 | "A String", |
| 320 | ], |
| 321 | "district": { # Describes the geographic scope of a contest. # Information about the electoral district that this contest is in. |
| 322 | "scope": "A String", # The geographic scope of this district. If unspecified the district's geography is not known. One of: national, statewide, congressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide, township, countyCouncil, cityCouncil, ward, special |
| 323 | "id": "A String", # 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. |
| 324 | "name": "A String", # The name of the district. |
| 325 | }, |
| 326 | "referendumBallotResponses": [ # The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include "yes" or "no" for referenda. This field is only populated for contests of type 'Referendum'. |
| 327 | "A String", |
| 328 | ], |
| 329 | "electorateSpecifications": "A String", # A description of any additional eligibility requirements for voting in this contest. |
| 330 | "referendumEffectOfAbstain": "A String", # Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether abstaining is considered a vote against it). This field is only populated for contests of type 'Referendum'. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 331 | }, |
| 332 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 333 | "pollingLocations": [ # Locations where the voter is eligible to vote on election day. |
| 334 | { # A location where a voter can vote. This may be an early vote site, an election day voting location, or a drop off location for a completed ballot. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 335 | "address": { # A simple representation of an address. # The address of the location. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 336 | "line3": "A String", # The third line of the address, if needed. |
| 337 | "line2": "A String", # The second line the address, if needed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 338 | "city": "A String", # The city or town for the address. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 339 | "state": "A String", # The US two letter state abbreviation of the address. |
| 340 | "zip": "A String", # The US Postal Zip Code of the address. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 341 | "locationName": "A String", # The name of the location. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 342 | "line1": "A String", # The street name and number of this address. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 343 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 344 | "voterServices": "A String", # The services provided by this early vote site or drop off location. This field is not populated for polling locations. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 345 | "latitude": 3.14, # Latitude of the location, in degrees north of the equator. Note this field may not be available for some locations. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 346 | "endDate": "A String", # The last date that this early vote site or drop off location may be used. This field is not populated for polling locations. |
| 347 | "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use). |
| 348 | "longitude": 3.14, # Longitude of the location, in degrees east of the Prime Meridian. Note this field may not be available for some locations. |
| 349 | "name": "A String", # The name of the early vote site or drop off location. This field is not populated for polling locations. |
| 350 | "startDate": "A String", # The first date that this early vote site or drop off location may be used. This field is not populated for polling locations. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 351 | "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. |
| 352 | { # Contains information about the data source for the element containing it. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 353 | "official": True or False, # Whether this data comes from an official government source. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 354 | "name": "A String", # The name of the data source. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 355 | }, |
| 356 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 357 | "pollingHours": "A String", # A description of when this location is open. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 358 | }, |
| 359 | ], |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 360 | }</pre> |
| 361 | </div> |
| 362 | |
| 363 | </body></html> |