Sites & geofencing

Define a site once — the field app resolves the job by itself
Offline map

Site map

Move the map to a site centre, set the radius, and save the geofence.

Offline map — the geofence math below still works with no signal. Add a Mapbox token to load live tiles.

Sites

Tap a site to centre the map on it

Geofence check

How the field app decides the job — runs on the phone, offline

Operator position
No fix
Active job
Outside every site
Drop the operator inside a geofence to auto-resolve the job.
Nearest site
Distance to centre

On a phone this reads real GPS via navigator.geolocation. Here, the buttons stand in for a live fix.

Why this matters

The field stays brutally simple

1
Define each pit, plant, and drop site once — centre + radius. Saved to the site config.
2
An operator opens the field app on site. Their GPS position is matched against every geofence — pure math, no signal needed.
3
Inside a fence, the job auto-resolves — material and locations pre-filled. The operator taps once and starts tracking. No list to scroll, no wrong-site mistakes.
4
Every load is stamped with where it happened — which feeds the client’s delivery map.