Overview
A zone always has a centre point (lat_center, lng_center). You can also give it a boundary: a polygon made of GPS points that traces the exact area the zone covers.
The boundary is stored with the zone and returned by the zone endpoints. The dashboard draws it on the zone map and on each team’s zone map, so dispatchers see at a glance which area a zone and its teams cover.
If you use the optional teams and dispatch module, the boundary also counts when wede ranks teams for an event. See Boundaries and team ranking.
Defining a boundary
In the dashboard, open Zones, edit a zone and click on the map to place the points of the polygon. Through the API, send the boundary as an array of{ lat, lng } points when you update the zone:
zones:manage permission (company_admin, company_tech or country_admin). A tenant cannot change the boundary of a zone shared with other tenants (403 shared_zone).
Use at least three points so the boundary forms an area. Points are joined in the order you send them and the last point connects back to the first.
GET /v1/tenant/zones and GET /v1/tenant/zones/:zone_code return the zone with its boundary.
