LibLatLon.Provider behaviour (LibLatLon v0.5.0) View Source

The default behaviour for all the geo providers.

Implementations known:

Contributions are very welcome.

Link to this section Summary

Callbacks

Performs either a normal lookup by any string or a reverse lookup by latitude and longitude

Returns a name of this provider to display

Link to this section Callbacks

Specs

lookup(LibLatLon.Coords.t() | String.t(), %{}) ::
  {:ok, LibLatLon.Info.t()} | {:error, any()}

Performs either a normal lookup by any string or a reverse lookup by latitude and longitude

Specs

name() :: binary()

Returns a name of this provider to display