# `ExGram.Model.Location`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L4130)

This object represents a point on the map.

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#location)

- `latitude`: Latitude as defined by the sender
- `longitude`: Longitude as defined by the sender
- `horizontal_accuracy (optional)`: Optional. The radius of uncertainty for the location, measured in meters; 0-1500
- `live_period (optional)`: Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
- `heading (optional)`: Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
- `proximity_alert_radius (optional)`: Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.

# `t`

```elixir
@type t() :: %ExGram.Model.Location{
  heading: integer() | nil,
  horizontal_accuracy: float() | nil,
  latitude: float(),
  live_period: integer() | nil,
  longitude: float(),
  proximity_alert_radius: integer() | nil
}
```

# `decode_as`

---

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