StrawHat.Map v0.3.0 StrawHat.Map.City View Source

Defines functionality for cities management.

Link to this section Summary

Functions

Create a city

Destroy a city

Get a city by id

Get the list of cities

Get list of cities

Get a city by id

Link to this section Functions

Create a city.

Destroy a city.

Link to this function find_city(city_id) View Source
find_city(String.t()) ::
  {:ok, StrawHat.Map.Schema.City.t()} | {:error, StrawHat.Error.t()}

Get a city by id.

Link to this function get_cities(pagination \\ []) View Source

Get the list of cities.

Link to this function get_cities_by_ids(city_ids) View Source
get_cities_by_ids([integer()]) :: [StrawHat.Map.Schema.City.t()] | no_return()

Get list of cities.

Get a city by id.