View Source GoogleApi.CivicInfo.V2.Model.ElectoralDistrict (google_api_civic_info v0.22.0)

Describes the geographic scope of a contest.

Attributes

  • id (type: String.t, default: nil) - An identifier for this district, relative to its scope. For example, the 34th State Senate district would have id "34" and a scope of stateUpper.
  • name (type: String.t, default: nil) - The name of the district.
  • scope (type: String.t, default: nil) - The geographic scope of this district. If unspecified the district's geography is not known. One of: national, statewide, congressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide, township, countyCouncil, cityCouncil, ward, special

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CivicInfo.V2.Model.ElectoralDistrict{
  id: String.t() | nil,
  name: String.t() | nil,
  scope: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.