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

Civicinfo

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

Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.

class Civicinfo {
constructor(client?: CredentialsClient, baseUrl?: string);
async divisionsQueryDivisionByAddress(opts?: DivisionsQueryDivisionByAddressOptions): Promise<CivicinfoApiprotosV2DivisionByAddressResponse>;
async electionsElectionQuery(opts?: ElectionsElectionQueryOptions): Promise<CivicinfoApiprotosV2ElectionsQueryResponse>;
async electionsVoterInfoQuery(opts?: ElectionsVoterInfoQueryOptions): Promise<CivicinfoApiprotosV2VoterInfoResponse>;
}

§Constructors

§
new Civicinfo(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§

Lookup OCDIDs and names for divisions related to an address.

§

Searches for political divisions by their natural name or OCD ID.

§

List of available elections to query.

§

Looks up information relevant to a voter based on the voter's registered address.