View Source LibLatLon.Provider behaviour (LibLatLon v0.6.1)
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
@callback 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
@callback name() :: binary()
Returns a name of this provider to display