google_api_civic_info v0.2.0 GoogleApi.CivicInfo.V2.Model.PollingLocation View Source

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

  • address (SimpleAddressType): The address of the location. Defaults to: null.
  • endDate (String.t): The last date that this early vote site or drop off location may be used. This field is not populated for polling locations. Defaults to: null.
  • id (String.t): An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. Defaults to: null.
  • latitude (float()): Latitude of the location, in degrees north of the equator. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. Defaults to: null.
  • longitude (float()): Longitude of the location, in degrees east of the Prime Meridian. Only some locations -- generally, ballot drop boxes for vote-by-mail elections -- will have this set; for others, use a geocoding service like the Google Maps API to resolve the address to a geographic point. Defaults to: null.
  • name (String.t): The name of the early vote site or drop off location. This field is not populated for polling locations. Defaults to: null.
  • notes (String.t): Notes about this location (e.g. accessibility ramp or entrance to use). Defaults to: null.
  • pollingHours (String.t): A description of when this location is open. Defaults to: null.
  • sources ([Source]): A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. Defaults to: null.
  • startDate (String.t): The first date that this early vote site or drop off location may be used. This field is not populated for polling locations. Defaults to: null.
  • voterServices (String.t): The services provided by this early vote site or drop off location. This field is not populated for polling locations. 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 type

t() View Source
t() :: %GoogleApi.CivicInfo.V2.Model.PollingLocation{
  address: GoogleApi.CivicInfo.V2.Model.SimpleAddressType.t(),
  endDate: any(),
  id: any(),
  latitude: any(),
  longitude: any(),
  name: any(),
  notes: any(),
  pollingHours: any(),
  sources: [GoogleApi.CivicInfo.V2.Model.Source.t()],
  startDate: any(),
  voterServices: any()
}

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.