StrawHat.Map v0.3.1 StrawHat.Map.Place View Source

Defines functionality for places management.

Link to this section Summary

Link to this section Functions

Create a place.

Destroy a place.

Link to this function find_place(place_id) View Source
find_place(String.t()) ::
  {:ok, StrawHat.Map.Schema.Place.t()} | {:error, StrawHat.Error.t()}

Get a place by id.

Get a place by id.

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

Get the list of places.

Link to this function get_places_by_ids(place_ids) View Source
get_places_by_ids([integer()]) :: [StrawHat.Map.Schema.Place.t()] | no_return()

Get list of places.

Link to this function get_places_by_owner(owner_id, pagination \\ []) View Source
get_places_by_owner(integer(), Scrivener.Config.t()) :: Scrivener.Page.t()

Update a place.