GoogleCivicApi.Impl.Representatives (GoogleCivicApi v0.1.1) View Source

Documentation for GoogleCivicApi.

Link to this section Summary

Functions

Looks up political geography and representative information for a single address.

Link to this section Types

Specs

address() ::
  {city :: String.t(), line1 :: String.t(), state :: String.t(),
   zip :: String.t()}

Specs

official() ::
  {locations :: [address()], phones :: [String.t()], name :: String.t(),
   party :: String.t()}

Link to this section Functions

Specs

by_address(String.t()) :: [official()]

Looks up political geography and representative information for a single address.

Examples

iex> GoogleCivicApi.Impl.Representatives.byAddress()
  [ %{
      locations: [
      %{
          address: %{
          city: "Baltimore",
          line1: "111 North Calvert Street",
          state: "MD"
          }
      }
      ],
      name: "Marilyn Bentley",
      party: "Democratic Party",
      phones: ["(410) 333-3733"]
  }]