View Source Bonfire.Geolocate.Geolocations (bonfire v0.3.5-classic-beta.10)

Link to this section Summary

Link to this section Functions

Link to this function

ap_publish_activity(activity_name, thing)

View Source
Link to this function

ap_receive_activity(creator, activity, object)

View Source
@spec create(any(), attrs :: map()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}
Link to this function

create(creator, context, attrs)

View Source
@spec create(any(), context :: any(), attrs :: map()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}
Link to this function

indexing_object_format(u)

View Source

Retrieves a list of geolocations by arbitrary filters. Used by:

  • Various parts of the codebase that need to query for geolocations (inc. tests)

Retrieves a single geolocation by arbitrary filters. Used by:

  • GraphQL Item queries
  • ActivityPub integration
  • Various parts of the codebase that need to query for geolocations (inc. tests)
Link to this function

populate_coordinates(objects)

View Source
Link to this function

resolve_mappable_address(attrs)

View Source
@spec soft_delete(Bonfire.Geolocate.Geolocation.t(), any()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}
Link to this function

thing_add_location(user, thing, mappable_address)

View Source
Link to this function

update(user, geolocation, attrs)

View Source
@spec update(any(), Bonfire.Geolocate.Geolocation.t(), attrs :: map()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}