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"> |
| 78 | <code><a href="#electionQuery">electionQuery()</a></code></p> |
| 79 | <p class="firstline">List of available elections to query.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 81 | <code><a href="#voterInfoQuery">voterInfoQuery(address, electionId=None, officialOnly=None, returnAllAvailableData=None)</a></code></p> |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 82 | <p class="firstline">Looks up information relevant to a voter based on the voter's registered address.</p> |
| 83 | <h3>Method Details</h3> |
| 84 | <div class="method"> |
| 85 | <code class="details" id="electionQuery">electionQuery()</code> |
| 86 | <pre>List of available elections to query. |
| 87 | |
| 88 | Args: |
| 89 | |
| 90 | Returns: |
| 91 | An object of the form: |
| 92 | |
| 93 | { # The list of elections available for this version of the API. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 94 | "elections": [ # A list of available elections |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 95 | { # Information about the election that was queried. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 96 | "electionDay": "A String", # Day of the election in YYYY-MM-DD format. |
| 97 | "id": "A String", # The unique ID of this election. |
| 98 | "name": "A String", # A displayable name for the election. |
| 99 | "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). |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 100 | }, |
| 101 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 102 | "kind": "civicinfo#electionsQueryResponse", # Identifies what kind of resource this is. Value: the fixed string "civicinfo#electionsQueryResponse". |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 103 | }</pre> |
| 104 | </div> |
| 105 | |
| 106 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 107 | <code class="details" id="voterInfoQuery">voterInfoQuery(address, electionId=None, officialOnly=None, returnAllAvailableData=None)</code> |
| 108 | <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] | 109 | |
| 110 | Args: |
| 111 | address: string, The registered address of the voter to look up. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 112 | 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}/electionsIf 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. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 113 | officialOnly: boolean, If set to true, only data from official state sources will be returned. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 114 | returnAllAvailableData: boolean, If set to true, the query will return the success codeand include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 115 | |
| 116 | Returns: |
| 117 | An object of the form: |
| 118 | |
| 119 | { # The result of a voter info lookup query. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 120 | "contests": [ # Contests that will appear on the voter's ballot. |
| 121 | { # Information about a contest that appears on a voter's ballot. |
| 122 | "ballotPlacement": "A String", # A number specifying the position of this contest on the voter's ballot. |
| 123 | "ballotTitle": "A String", # The official title on the ballot for this contest, only where available. |
| 124 | "candidates": [ # The candidate choices for this contest. |
| 125 | { # Information about a candidate running for elected office. |
| 126 | "candidateUrl": "A String", # The URL for the candidate's campaign web site. |
| 127 | "channels": [ # A list of known (social) media channels for this candidate. |
| 128 | { # A social media or web channel for a candidate. |
| 129 | "id": "A String", # The unique public identifier for the candidate's channel. |
| 130 | "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 |
| 131 | }, |
| 132 | ], |
| 133 | "email": "A String", # The email address for the candidate's campaign. |
| 134 | "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" |
| 135 | "orderOnBallot": "A String", # The order the candidate appears on the ballot for this contest. |
| 136 | "party": "A String", # The full name of the party the candidate is a member of. |
| 137 | "phone": "A String", # The voice phone number for the candidate's campaign office. |
| 138 | "photoUrl": "A String", # A URL for a photo of the candidate. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 139 | }, |
| 140 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 141 | "district": { # Describes the geographic scope of a contest. # Information about the electoral district that this contest is in. |
| 142 | "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. |
| 143 | "kgForeignKey": "A String", |
| 144 | "name": "A String", # The name of the district. |
| 145 | "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 |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 146 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 147 | "electorateSpecifications": "A String", # A description of any additional eligibility requirements for voting in this contest. |
| 148 | "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. |
| 149 | "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". |
| 150 | "A String", |
| 151 | ], |
| 152 | "numberElected": "A String", # The number of candidates that will be elected to office in this contest. |
| 153 | "numberVotingFor": "A String", # The number of candidates that a voter may vote for in this contest. |
| 154 | "office": "A String", # The name of the office for this contest. |
| 155 | "primaryParty": "A String", # If this is a partisan election, the name of the party it is for. |
| 156 | "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'. |
| 157 | "A String", |
| 158 | ], |
| 159 | "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'. |
| 160 | "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'. |
| 161 | "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'. |
| 162 | "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'. |
| 163 | "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'. |
| 164 | "referendumSubtitle": "A String", # A brief description of the referendum. This field is only populated for contests of type 'Referendum'. |
| 165 | "referendumText": "A String", # The full text of the referendum. This field is only populated for contests of type 'Referendum'. |
| 166 | "referendumTitle": "A String", # The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'. |
| 167 | "referendumUrl": "A String", # A link to the referendum. This field is only populated for contests of type 'Referendum'. |
| 168 | "roles": [ # The roles which this office fulfills. |
| 169 | "A String", |
| 170 | ], |
| 171 | "sources": [ # A list of sources for this contest. If multiple sources are listed, the data has been aggregated from those sources. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 172 | { # Contains information about the data source for the element containing it. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 173 | "name": "A String", # The name of the data source. |
| 174 | "official": True or False, # Whether this data comes from an official government source. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 175 | }, |
| 176 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 177 | "special": "A String", # "Yes" or "No" depending on whether this a contest being held outside the normal election cycle. |
| 178 | "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'. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 179 | }, |
| 180 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 181 | "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. |
| 182 | { # 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. |
| 183 | "address": { # A simple representation of an address. # The address of the location. |
| 184 | "city": "A String", # The city or town for the address. |
| 185 | "line1": "A String", # The street name and number of this address. |
| 186 | "line2": "A String", # The second line the address, if needed. |
| 187 | "line3": "A String", # The third line of the address, if needed. |
| 188 | "locationName": "A String", # The name of the location. |
| 189 | "state": "A String", # The US two letter state abbreviation of the address. |
| 190 | "zip": "A String", # The US Postal Zip Code of the address. |
| 191 | }, |
| 192 | "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. |
| 193 | "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. |
| 194 | "latitude": 3.14, # Latitude of the location, in degrees north of the equator. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. |
| 195 | "longitude": 3.14, # Longitude of the location, in degrees east of the Prime Meridian. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. |
| 196 | "name": "A String", # The name of the early vote site or drop off location. This field is not populated for polling locations. |
| 197 | "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use). |
| 198 | "pollingHours": "A String", # A description of when this location is open. |
| 199 | "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. |
| 200 | { # Contains information about the data source for the element containing it. |
| 201 | "name": "A String", # The name of the data source. |
| 202 | "official": True or False, # Whether this data comes from an official government source. |
| 203 | }, |
| 204 | ], |
| 205 | "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. |
| 206 | "voterServices": "A String", # The services provided by this early vote site or drop off location. This field is not populated for polling locations. |
| 207 | }, |
| 208 | ], |
| 209 | "earlyVoteSites": [ # Locations where the voter is eligible to vote early, prior to election day. |
| 210 | { # 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. |
| 211 | "address": { # A simple representation of an address. # The address of the location. |
| 212 | "city": "A String", # The city or town for the address. |
| 213 | "line1": "A String", # The street name and number of this address. |
| 214 | "line2": "A String", # The second line the address, if needed. |
| 215 | "line3": "A String", # The third line of the address, if needed. |
| 216 | "locationName": "A String", # The name of the location. |
| 217 | "state": "A String", # The US two letter state abbreviation of the address. |
| 218 | "zip": "A String", # The US Postal Zip Code of the address. |
| 219 | }, |
| 220 | "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. |
| 221 | "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. |
| 222 | "latitude": 3.14, # Latitude of the location, in degrees north of the equator. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. |
| 223 | "longitude": 3.14, # Longitude of the location, in degrees east of the Prime Meridian. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. |
| 224 | "name": "A String", # The name of the early vote site or drop off location. This field is not populated for polling locations. |
| 225 | "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use). |
| 226 | "pollingHours": "A String", # A description of when this location is open. |
| 227 | "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. |
| 228 | { # Contains information about the data source for the element containing it. |
| 229 | "name": "A String", # The name of the data source. |
| 230 | "official": True or False, # Whether this data comes from an official government source. |
| 231 | }, |
| 232 | ], |
| 233 | "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. |
| 234 | "voterServices": "A String", # The services provided by this early vote site or drop off location. This field is not populated for polling locations. |
| 235 | }, |
| 236 | ], |
| 237 | "election": { # Information about the election that was queried. # The election that was queried. |
| 238 | "electionDay": "A String", # Day of the election in YYYY-MM-DD format. |
| 239 | "id": "A String", # The unique ID of this election. |
| 240 | "name": "A String", # A displayable name for the election. |
| 241 | "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). |
| 242 | }, |
| 243 | "kind": "civicinfo#voterInfoResponse", # Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse". |
| 244 | "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). |
| 245 | "normalizedInput": { # A simple representation of an address. # The normalized version of the requested address |
| 246 | "city": "A String", # The city or town for the address. |
| 247 | "line1": "A String", # The street name and number of this address. |
| 248 | "line2": "A String", # The second line the address, if needed. |
| 249 | "line3": "A String", # The third line of the address, if needed. |
| 250 | "locationName": "A String", # The name of the location. |
| 251 | "state": "A String", # The US two letter state abbreviation of the address. |
| 252 | "zip": "A String", # The US Postal Zip Code of the address. |
| 253 | }, |
| 254 | "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. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 255 | { # Information about the election that was queried. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 256 | "electionDay": "A String", # Day of the election in YYYY-MM-DD format. |
| 257 | "id": "A String", # The unique ID of this election. |
| 258 | "name": "A String", # A displayable name for the election. |
| 259 | "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). |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 260 | }, |
| 261 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 262 | "pollingLocations": [ # Locations where the voter is eligible to vote on election day. |
| 263 | { # 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. |
| 264 | "address": { # A simple representation of an address. # The address of the location. |
| 265 | "city": "A String", # The city or town for the address. |
| 266 | "line1": "A String", # The street name and number of this address. |
| 267 | "line2": "A String", # The second line the address, if needed. |
| 268 | "line3": "A String", # The third line of the address, if needed. |
| 269 | "locationName": "A String", # The name of the location. |
| 270 | "state": "A String", # The US two letter state abbreviation of the address. |
| 271 | "zip": "A String", # The US Postal Zip Code of the address. |
| 272 | }, |
| 273 | "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. |
| 274 | "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. |
| 275 | "latitude": 3.14, # Latitude of the location, in degrees north of the equator. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. |
| 276 | "longitude": 3.14, # Longitude of the location, in degrees east of the Prime Meridian. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. |
| 277 | "name": "A String", # The name of the early vote site or drop off location. This field is not populated for polling locations. |
| 278 | "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use). |
| 279 | "pollingHours": "A String", # A description of when this location is open. |
| 280 | "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. |
| 281 | { # Contains information about the data source for the element containing it. |
| 282 | "name": "A String", # The name of the data source. |
| 283 | "official": True or False, # Whether this data comes from an official government source. |
| 284 | }, |
| 285 | ], |
| 286 | "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. |
| 287 | "voterServices": "A String", # The services provided by this early vote site or drop off location. This field is not populated for polling locations. |
| 288 | }, |
| 289 | ], |
| 290 | "precinctId": "A String", |
| 291 | "segments": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 292 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 293 | "administrationRegionIds": [ |
| 294 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 295 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 296 | "beforeGeocodeId": "A String", |
| 297 | "catalistUniquePrecinctCode": "A String", |
| 298 | "city": "A String", |
| 299 | "cityCouncilDistrict": "A String", |
| 300 | "congressionalDistrict": "A String", |
| 301 | "contestIds": [ |
| 302 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 303 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 304 | "countyCouncilDistrict": "A String", |
| 305 | "countyFips": "A String", |
| 306 | "datasetId": "A String", |
| 307 | "earlyVoteSiteByIds": [ |
| 308 | "A String", |
| 309 | ], |
| 310 | "endHouseNumber": "A String", |
| 311 | "geocodedPoint": { |
| 312 | "latE7": 42, |
| 313 | "lngE7": 42, |
| 314 | "metadata": { |
| 315 | "internal": { |
| 316 | "isAuto": True or False, |
| 317 | "sourceSummary": { |
| 318 | "dataset": "A String", |
| 319 | "provider": "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 320 | }, |
| 321 | }, |
| 322 | }, |
| 323 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 324 | "geographicDivisionOcdIds": [ |
| 325 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 326 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 327 | "id": "A String", |
| 328 | "judicialDistrict": "A String", |
| 329 | "mailOnly": True or False, |
| 330 | "municipalDistrict": "A String", |
| 331 | "ncoaAddress": "A String", |
| 332 | "oddOrEvens": [ |
| 333 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 334 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 335 | "originalId": "A String", |
| 336 | "pollinglocationByIds": [ |
| 337 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 338 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 339 | "precinctName": "A String", |
| 340 | "precinctOcdId": "A String", |
| 341 | "provenances": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 342 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 343 | "collidedSegmentSource": { |
| 344 | "segments": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 345 | # Object with schema name: StreetSegment |
| 346 | ], |
| 347 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 348 | "ctclContestUuid": "A String", |
| 349 | "ctclOfficeUuid": "A String", |
| 350 | "datasetId": "A String", |
| 351 | "precinctId": "A String", |
| 352 | "precinctSplitId": "A String", |
| 353 | "tsStreetSegmentId": "A String", |
| 354 | "vip5PrecinctId": "A String", |
| 355 | "vip5StreetSegmentId": "A String", |
| 356 | "vipStreetSegmentId": "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 357 | }, |
| 358 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 359 | "published": True or False, |
| 360 | "schoolDistrict": "A String", |
| 361 | "startHouseNumber": "A String", |
| 362 | "startLatE7": 42, |
| 363 | "startLngE7": 42, |
| 364 | "state": "A String", |
| 365 | "stateHouseDistrict": "A String", |
| 366 | "stateSenateDistrict": "A String", |
| 367 | "streetName": "A String", |
| 368 | "subAdministrativeAreaName": "A String", |
| 369 | "surrogateId": "A String", |
| 370 | "targetsmartUniquePrecinctCode": "A String", |
| 371 | "townshipDistrict": "A String", |
| 372 | "unitNumber": "A String", |
| 373 | "unitType": "A String", |
| 374 | "vanPrecinctCode": "A String", |
| 375 | "voterGeographicDivisionOcdIds": [ |
| 376 | "A String", |
| 377 | ], |
| 378 | "wardDistrict": "A String", |
| 379 | "wildcard": True or False, |
| 380 | "zip": "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 381 | }, |
| 382 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 383 | "state": [ # Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 384 | { # Describes information about a regional election administrative area. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 385 | "electionAdministrationBody": { # Information about an election administrative body (e.g. County Board of Elections). # The election administration body for this area. |
| 386 | "absenteeVotingInfoUrl": "A String", # A URL provided by this administrative body for information on absentee voting. |
| 387 | "addressLines": [ |
| 388 | "A String", |
| 389 | ], |
| 390 | "ballotInfoUrl": "A String", # A URL provided by this administrative body to give contest information to the voter. |
| 391 | "correspondenceAddress": { # A simple representation of an address. # The mailing address of this administrative body. |
| 392 | "city": "A String", # The city or town for the address. |
| 393 | "line1": "A String", # The street name and number of this address. |
| 394 | "line2": "A String", # The second line the address, if needed. |
| 395 | "line3": "A String", # The third line of the address, if needed. |
| 396 | "locationName": "A String", # The name of the location. |
| 397 | "state": "A String", # The US two letter state abbreviation of the address. |
| 398 | "zip": "A String", # The US Postal Zip Code of the address. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 399 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 400 | "electionInfoUrl": "A String", # A URL provided by this administrative body for looking up general election information. |
| 401 | "electionOfficials": [ # The election officials for this election administrative body. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 402 | { # Information about individual election officials. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 403 | "emailAddress": "A String", # The email address of the election official. |
| 404 | "faxNumber": "A String", # The fax number of the election official. |
| 405 | "name": "A String", # The full name of the election official. |
| 406 | "officePhoneNumber": "A String", # The office phone number of the election official. |
| 407 | "title": "A String", # The title of the election official. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 408 | }, |
| 409 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 410 | "electionRegistrationConfirmationUrl": "A String", # A URL provided by this administrative body for confirming that the voter is registered to vote. |
| 411 | "electionRegistrationUrl": "A String", # A URL provided by this administrative body for looking up how to register to vote. |
| 412 | "electionRulesUrl": "A String", # A URL provided by this administrative body describing election rules to the voter. |
| 413 | "hoursOfOperation": "A String", # A description of the hours of operation for this administrative body. |
| 414 | "name": "A String", # The name of this election administrative body. |
| 415 | "physicalAddress": { # A simple representation of an address. # The physical address of this administrative body. |
| 416 | "city": "A String", # The city or town for the address. |
| 417 | "line1": "A String", # The street name and number of this address. |
| 418 | "line2": "A String", # The second line the address, if needed. |
| 419 | "line3": "A String", # The third line of the address, if needed. |
| 420 | "locationName": "A String", # The name of the location. |
| 421 | "state": "A String", # The US two letter state abbreviation of the address. |
| 422 | "zip": "A String", # The US Postal Zip Code of the address. |
| 423 | }, |
| 424 | "voter_services": [ # A description of the services this administrative body may provide. |
| 425 | "A String", |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 426 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 427 | "votingLocationFinderUrl": "A String", # A URL provided by this administrative body for looking up where to vote. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 428 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 429 | "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. |
| 430 | "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. |
| 431 | "name": "A String", # The name of the jurisdiction. |
| 432 | "sources": [ # A list of sources for this area. If multiple sources are listed the data has been aggregated from those sources. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 433 | { # Contains information about the data source for the element containing it. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 434 | "name": "A String", # The name of the data source. |
| 435 | "official": True or False, # Whether this data comes from an official government source. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 436 | }, |
| 437 | ], |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 438 | }, |
| 439 | ], |
| 440 | }</pre> |
| 441 | </div> |
| 442 | |
| 443 | </body></html> |