StrawHat.Map v0.3.0 StrawHat.Map.County View Source

Defines functionality for counties management.

Link to this section Summary

Functions

Create a county

Destroy a county

Get a county by id

Get list of cities

Get the list of counties

Get list of counties

Get a county by id

Link to this section Functions

Create a county.

Destroy a county.

Link to this function find_county(county_id) View Source
find_county(String.t()) ::
  {:ok, StrawHat.Map.Schema.County.t()} | {:error, StrawHat.Error.t()}

Get a county by id.

Link to this function get_cities(county_ids) View Source
get_cities([integer()]) :: [State.t()] | no_return()

Get list of cities.

Link to this function get_counties(pagination \\ []) View Source
get_counties(Scrivener.Config.t()) :: Scrivener.Page.t()

Get the list of counties.

Link to this function get_counties_by_ids(county_ids) View Source
get_counties_by_ids([integer()]) ::
  [StrawHat.Map.Schema.County.t()] | no_return()

Get list of counties.

Get a county by id.

Update a county.