# `NervesHubLink.Extensions.Geo.Resolver`
[🔗](https://github.com/nerves-hub/nerves_hub_link/blob/v2.12.0/lib/nerves_hub_link/extensions/geo/resolver.ex#L6)

Geo extension behaviour for writing custom resolvers.

For example to support your GPS or LTE modem's means of geo-location.

Default implementation is `NervesHubLink.Extensions.Geo.DefaultResolver`.

# `error_information`

```elixir
@type error_information() :: %{error_code: String.t(), error_description: String.t()}
```

Formatted error response from a failed location resolution

# `location_information`

```elixir
@type location_information() :: %{
  :latitude =&gt; float(),
  :longitude =&gt; float(),
  :source =&gt; String.t(),
  optional(:accuracy) =&gt; pos_integer()
}
```

Location information from a successful location resolution

# `location_responses`

```elixir
@type location_responses() ::
  {:ok, location_information()} | {:error, error_information()}
```

Supported responses from `resolve_location/0`

# `resolve_location`

```elixir
@callback resolve_location() :: location_responses()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
