Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VoterInfoResponse

import type { VoterInfoResponse } from "https://googleapis.deno.dev/v1/civicinfo:v2.ts";

The result of a voter info lookup query.

interface VoterInfoResponse {
contests?: Contest[];
dropOffLocations?: PollingLocation[];
earlyVoteSites?: PollingLocation[];
election?: Election;
kind?: string;
mailOnly?: boolean;
normalizedInput?: SimpleAddressType;
otherElections?: Election[];
pollingLocations?: PollingLocation[];
precinctId?: string;
precincts?: Precinct[];
}

§Properties

§
contests?: Contest[]
[src]

Contests that will appear on the voter's ballot.

§
dropOffLocations?: PollingLocation[]
[src]

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.

§
earlyVoteSites?: PollingLocation[]
[src]

Locations where the voter is eligible to vote early, prior to election day.

§
election?: Election
[src]

The election that was queried.

§
kind?: string
[src]

Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse".

§
mailOnly?: boolean
[src]

Specifies whether voters in the precinct vote only by mailing their ballots (with the possible option of dropping off their ballots as well).

§
normalizedInput?: SimpleAddressType
[src]

The normalized version of the requested address

§
otherElections?: Election[]
[src]

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.

§
pollingLocations?: PollingLocation[]
[src]

Locations where the voter is eligible to vote on election day.

§
precinctId?: string
[src]
§
precincts?: Precinct[]
[src]

The precincts that match this voter's address. Will only be returned for project IDs which have been allowlisted as "partner projects".

§

Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array.