civicinfo/v2 library

Google Civic Information API - v2

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

For more information, see developers.google.cn/civic-information/

Create an instance of CivicInfoApi to access these resources:

Classes

CivicInfoApi
Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.
CivicinfoApiprotosV2DivisionByAddressResponse
CivicinfoApiprotosV2DivisionSearchResponse
The result of a division search query.
CivicinfoApiprotosV2DivisionSearchResult
Represents a political geographic division that matches the requested query.
CivicinfoApiprotosV2ElectionsQueryResponse
The list of elections available for this version of the API.
CivicinfoApiprotosV2VoterInfoResponse
The result of a voter info lookup query.
CivicinfoSchemaV2AdministrationRegion
Describes information about a regional election administrative area.
CivicinfoSchemaV2AdministrativeBody
Information about an election administrative body (e.g. County Board of Elections).
CivicinfoSchemaV2Candidate
Information about a candidate running for elected office.
CivicinfoSchemaV2Channel
A social media or web channel for a candidate.
CivicinfoSchemaV2Contest
Information about a contest that appears on a voter's ballot.
CivicinfoSchemaV2Election
Information about the election that was queried.
CivicinfoSchemaV2ElectionOfficial
Information about individual election officials.
CivicinfoSchemaV2ElectoralDistrict
Describes the geographic scope of a contest.
CivicinfoSchemaV2GeographicDivision
Describes a political geography.
CivicinfoSchemaV2PollingLocation
A location where a voter can vote.
CivicinfoSchemaV2Precinct
CivicinfoSchemaV2SimpleAddressType
A simple representation of an address.
CivicinfoSchemaV2Source
Contains information about the data source for the element containing it.
DivisionsResource
ElectionsResource

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.