mobilizon.chapril.org-mobil.../lib/service/geospatial/geospatial.ex

18 lines
499 B
Elixir
Raw Permalink Normal View History

defmodule Mobilizon.Service.Geospatial do
@moduledoc """
2019-09-22 16:26:23 +02:00
Module to load the service adapter defined inside the configuration.
2019-09-22 16:26:23 +02:00
See `Mobilizon.Service.Geospatial.Provider`.
"""
@doc """
2019-09-22 16:26:23 +02:00
Returns the appropriate service adapter.
2019-09-22 16:26:23 +02:00
According to the config behind
`config :mobilizon, Mobilizon.Service.Geospatial,
service: Mobilizon.Service.Geospatial.Module`
"""
2019-09-22 16:26:23 +02:00
@spec service :: module
def service, do: get_in(Application.get_env(:mobilizon, __MODULE__), [:service])
end