Bonfire.Geolocate.Geolocations (Bonfire v0.9.12-social-beta.71)

View Source

Summary

Functions

ap_publish_activity(subject, activity_name, thing)

ap_receive_activity(creator, activity, object)

create(creator, attrs)

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

create(creator, context, attrs, opts \\ [])

cursor(atom)

extract_coordinates(geom)

extract_geojson_geometry(arg1)

federation_module()

Callback implementation for Bonfire.Federate.ActivityPub.FederationModules.federation_module/0.

indexing_object_format(u)

many(filters \\ [])

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

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

many!(filters \\ [])

many_paginated(filters \\ [])

one(filters)

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)

populate_coordinates(objects)

resolve_mappable_address(attrs)

search(search, opts \\ [])

soft_delete(geo, opts)

@spec soft_delete(Bonfire.Geolocate.Geolocation.t(), any()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}

test_cursor(atom)

thing_add_location(user, thing, mappable_address)

update(user, geolocation, attrs)

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