LibLatLon v0.4.1 LibLatLon.Provider behaviour 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

Link to this callback lookup(arg0, %{}) View Source
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

Link to this callback name() View Source
name() :: binary()

Returns a name of this provider to display