# `ExAws.Location.Geofences.GeofenceGeometry`

Contains the geofence geometry details.

A geofence geometry can be a circle, a polygon, or a multipolygon. `Polygon` and
`MultiPolygon` geometries can be defined using their respective parameters, or encoded in
Geobuf format using the `Geobuf` parameter. Including multiple geometry types in the same
request will return a validation error.

Amazon Location doesn't currently support polygons that cross the antimeridian.

## Fields

* `:circle` - A circle on the earth, as defined by a center point and a radius.

* `:geobuf` - Geobuf is a compact binary encoding for geographic data that provides lossless
  compression of GeoJSON polygons. Pass the raw Geobuf binary: it is Base64-encoded for you
  when the request is built.

* `:multi_polygon` - A `MultiPolygon` is a list of up to 250 `Polygon` elements which
  represent the shape of a geofence. The `Polygon` components of a `MultiPolygon` geometry can
  define separate geographical areas that are considered part of the same geofence, perimeters
  of larger exterior areas with smaller interior spaces that are excluded from the geofence,
  or some combination of these use cases to form complex geofence boundaries.

* `:polygon` - A `Polygon` is a list of up to 250 linear rings which represent the shape of a
  geofence. This list must include 1 exterior ring (representing the outer perimeter of the
  geofence), and can optionally include up to 249 interior rings (representing polygonal
  spaces within the perimeter, which are excluded from the geofence area).

See https://docs.aws.amazon.com/location/previous/APIReference/API_GeofenceGeometry.html

# `t`

```elixir
@type t() :: %ExAws.Location.Geofences.GeofenceGeometry{
  circle: ExAws.Location.Geofences.Circle.t() | nil,
  geobuf: binary() | nil,
  multi_polygon: [[[[number()]]]] | nil,
  polygon: [[[number()]]] | nil
}
```

---

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