> ## Documentation Index
> Fetch the complete documentation index at: https://docs.manta.education/llms.txt
> Use this file to discover all available pages before exploring further.

# Zone Priority

> How Manta works out which attendance zone a family's address falls in, and how a school is matched to a zone.

Zone priority gives families a higher priority at a school when their home address falls inside that school's attendance zone. This page explains how Manta matches an address to a zone. The boundary files themselves are uploaded as described in [Attendance Boundaries](https://docs.manta.education/it-admin/enrollment/attendance-boundaries.md).

> [!WARNING]
>
> Zone matching and the school Zone Preference field are **Planned**. This page describes the intended design and may change. \[TO CONFIRM: release status and final behavior.]

## How it works

```mermaid theme={null}
sequenceDiagram
    participant F as Family
    participant P as Family Portal
    participant M as Manta
    F->>P: Enters home address
    P->>M: Address coordinates and student grade
    M->>M: Choose boundary file by school level
    M->>M: Check which zone the address falls in
    M-->>P: Zone result
```

1. When a family reaches the school selection step, Manta looks up the zone for **each student** on the application, using that student's own grade.
2. The grade decides which boundary file is used:

| Student's grade | Boundary file used |
| - | - |
| Kindergarten to grade 5 | Elementary |
| Grades 6 to 8 | Middle school |
| Grades 9 to 12 | High school |

3. The lookup runs every time the family enters school selection.

## Matching a zone to a school

Each school has an optional **Zone Preference** field on its profile, below the address. Enter the identifier that matches the boundary zone for that school, for example `20`, `ES-274`, or `NORTH`.

* The field accepts letters and numbers.
* It is optional. Schools without a value are left out of zone priority matching.
* Only staff with permission to edit school configuration can change it.

## What happens if the lookup cannot run

* If the family's address has no coordinates, the lookup is skipped and the application continues.
* If the zone service returns an error or times out, the failure is logged and the application continues. There is no automatic retry.

## Not yet defined

* \[TO CONFIRM: whether and how the zone result is stored on the application and shown to staff.]
* \[TO CONFIRM: how zone priority is ranked against other priorities, such as sibling priority.]
* \[TO CONFIRM: whether the lookup re-runs automatically when a family changes their address.]
* \[TO CONFIRM: whether families see a zone indicator on the school selection page.]

## Related pages

* [School Configuration](https://docs.manta.education/it-admin/enrollment/school-configuration.md)
* [Attendance Boundaries](https://docs.manta.education/it-admin/enrollment/attendance-boundaries.md)
