API Reference google_api_civic_info v0.26.0
View SourceModules
API client metadata for GoogleApi.CivicInfo.V2.
API calls for all endpoints tagged Divisions
.
API calls for all endpoints tagged Elections
.
API calls for all endpoints tagged Representatives
.
Handle Tesla connections for GoogleApi.CivicInfo.V2.
The result of a division search query.
Represents a political geographic division that matches the requested query.
The list of elections available for this version of the API.
Attributes
-
divisions
(type:%{optional(String.t) => GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2GeographicDivision.t}
, default:nil
) - A map of political geographic divisions that contain the requested address, keyed by the unique Open Civic Data identifier for this division. -
offices
(type:list(GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Office.t)
, default:nil
) - Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request. -
officials
(type:list(GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Official.t)
, default:nil
) - Officials holding the offices listed above. Will only be present if includeOffices was true in the request.
The result of a representative info lookup query.
The result of a voter info lookup query.
Describes information about a regional election administrative area.
Information about an election administrative body (e.g. County Board of Elections).
Information about a candidate running for elected office.
A social media or web channel for a candidate.
Information about a contest that appears on a voter's ballot.
Information about the election that was queried.
Information about individual election officials.
Describes the geographic scope of a contest.
Describes a political geography.
Information about an Office held by one or more Officials.
Information about a person holding an elected office.
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.
Attributes
-
administrationRegionId
(type:String.t
, default:nil
) - ID of the AdministrationRegion message for this precinct. Corresponds to LocalityId xml tag. -
contestId
(type:list(String.t)
, default:nil
) - ID(s) of the Contest message(s) for this precinct. -
datasetId
(type:String.t
, default:nil
) - Required. Dataset ID. What datasets our Precincts come from. -
earlyVoteSiteId
(type:list(String.t)
, default:nil
) - ID(s) of the PollingLocation message(s) for this precinct. -
electoralDistrictId
(type:list(String.t)
, default:nil
) - ID(s) of the ElectoralDistrict message(s) for this precinct. -
id
(type:String.t
, default:nil
) - Required. A unique identifier for this precinct. -
mailOnly
(type:boolean()
, default:nil
) - Specifies if the precinct runs mail-only elections. -
name
(type:String.t
, default:nil
) - Required. The name of the precinct. -
number
(type:String.t
, default:nil
) - The number of the precinct. -
ocdId
(type:list(String.t)
, default:nil
) - Encouraged. The OCD ID of the precinct -
pollingLocationId
(type:list(String.t)
, default:nil
) - ID(s) of the PollingLocation message(s) for this precinct. -
spatialBoundaryId
(type:list(String.t)
, default:nil
) - ID(s) of the SpatialBoundary message(s) for this precinct. Used to specify a geometrical boundary of the precinct. -
splitName
(type:String.t
, default:nil
) - If present, this proto corresponds to one portion of split precinct. Other portions of this precinct are guaranteed to have the samename
. If not present, this proto represents a full precicnt. -
ward
(type:String.t
, default:nil
) - Specifies the ward the precinct is contained within.
A simple representation of an address.
Contains information about the data source for the element containing it.