View Source GoogleApi.CivicInfo.V2.Model.PollingLocation (google_api_civic_info v0.24.0)

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 (type: GoogleApi.CivicInfo.V2.Model.SimpleAddressType.t, default: nil) - The address of the location.
  • endDate (type: String.t, default: nil) - The last date that this early vote site or drop off location may be used. This field is not populated for polling locations.
  • latitude (type: float(), default: nil) - Latitude of the location, in degrees north of the equator. Note this field may not be available for some locations.
  • longitude (type: float(), default: nil) - Longitude of the location, in degrees east of the Prime Meridian. Note this field may not be available for some locations.
  • name (type: String.t, default: nil) - The name of the early vote site or drop off location. This field is not populated for polling locations.
  • notes (type: String.t, default: nil) - Notes about this location (e.g. accessibility ramp or entrance to use).
  • pollingHours (type: String.t, default: nil) - A description of when this location is open.
  • sources (type: list(GoogleApi.CivicInfo.V2.Model.Source.t), default: nil) - A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources.
  • startDate (type: String.t, default: nil) - The first date that this early vote site or drop off location may be used. This field is not populated for polling locations.
  • voterServices (type: String.t, default: nil) - The services provided by this early vote site or drop off location. This field is not populated for polling locations.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CivicInfo.V2.Model.PollingLocation{
  address: GoogleApi.CivicInfo.V2.Model.SimpleAddressType.t() | nil,
  endDate: String.t() | nil,
  latitude: float() | nil,
  longitude: float() | nil,
  name: String.t() | nil,
  notes: String.t() | nil,
  pollingHours: String.t() | nil,
  sources: [GoogleApi.CivicInfo.V2.Model.Source.t()] | nil,
  startDate: String.t() | nil,
  voterServices: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.