google_api_civic_info v0.1.0 GoogleApi.CivicInfo.V2.Model.VoterInfoResponse View Source

The result of a voter info lookup query.

Attributes

  • contests ([Contest]): Contests that will appear on the voter's ballot. Defaults to: null.
  • dropOffLocations ([PollingLocation]): 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. Defaults to: null.
  • earlyVoteSites ([PollingLocation]): Locations where the voter is eligible to vote early, prior to election day. Defaults to: null.
  • election (Election): The election that was queried. Defaults to: null.
  • kind (String.t): Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse". Defaults to: null.
  • mailOnly (boolean()): Specifies whether voters in the precinct vote only by mailing their ballots (with the possible option of dropping off their ballots as well). Defaults to: null.
  • normalizedInput (SimpleAddressType): The normalized version of the requested address Defaults to: null.
  • otherElections ([Election]): 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. Defaults to: null.
  • pollingLocations ([PollingLocation]): Locations where the voter is eligible to vote on election day. Defaults to: null.
  • precinctId (String.t): Defaults to: null.
  • state ([AdministrationRegion]): Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.