Module for handling Urban Agglomeration (Aglomeração Urbana) queries from IBGE.
This module provides functions to fetch Urban Agglomerations.
Summary
Functions
@spec all(Keyword.t()) :: {:ok, [ExIbge.Geography.UrbanAgglomeration.t()]} | {:error, any()}
Get all urban agglomerations.
Parameters
query- Optional parameters supported by the API (e.g.,order_by: :name,municipality: 2611101).
Examples
iex> ExIbge.Locality.UrbanAgglomeration.all()
{:ok, [%ExIbge.Geography.UrbanAgglomeration{id: "00301", name: "Aglomeração Urbana de Franca", ...}, ...]}See Also
@spec all!(Keyword.t()) :: [ExIbge.Geography.UrbanAgglomeration.t()]
Same as all/1, but raises an error on failure.
Examples
iex> ExIbge.Locality.UrbanAgglomeration.all!()
[%ExIbge.Geography.UrbanAgglomeration{id: "00301", name: "Aglomeração Urbana de Franca", ...}, ...]
@spec find(integer() | String.t() | [integer() | String.t()], Keyword.t()) :: {:ok, [ExIbge.Geography.UrbanAgglomeration.t()]} | {:error, any()}
Get urban agglomeration(s) by identifier(s).
Parameters
ids- A single integer ID or a list of integer IDs.query- Optional parameters supported by the API.
Examples
iex> ExIbge.Locality.UrbanAgglomeration.find("00301")
{:ok, [%ExIbge.Geography.UrbanAgglomeration{id: "00301", name: "Aglomeração Urbana de Franca", ...}]}See Also
@spec find!(integer() | String.t() | [integer() | String.t()], Keyword.t()) :: [ ExIbge.Geography.UrbanAgglomeration.t() ]
Same as find/2, but raises an error on failure.
Examples
iex> ExIbge.Locality.UrbanAgglomeration.find!("00301")
[%ExIbge.Geography.UrbanAgglomeration{id: "00301", name: "Aglomeração Urbana de Franca", ...}]