Attendance · Glossary

Geofence

Also called: geo-fence, virtual perimeter, site boundary, geofence zone

Definition

A geofence is a virtual boundary defined on a map – most often a circle described by a centre coordinate and a radius in metres, sometimes a polygon drawn along a plot boundary – that software uses to decide whether a GPS position is inside or outside a place. In attendance systems, each work site has a geofence and punches are tested against it.

Anatomy of a geofence

The simplest geofence is a point and a radius: latitude 28.4595, longitude 77.0266, radius 120 m. The system computes the straight-line distance from the punch coordinate to the centre and compares it with the radius. Polygon geofences store an ordered list of corner coordinates and use a point-in-polygon test; they suit L-shaped plots, long industrial sheds and campuses with a public road cutting through.

A geofence record in an attendance system usually also carries a name, an address for humans, the list of employees or shifts allowed to punch there, and an action on breach – block, flag or ask for a reason. The action belongs to geofencing attendance policy; the geofence itself is only the shape.

Setting the centre and radius correctly

Set the centre where people actually punch, not at the postal address pin. For a housing society the guard cabin at the main gate is the right centre; for a warehouse it is mid-plot so both gates fall inside. Drop the pin from the admin console's map view, or capture it by standing at the spot with the app.

The radius must absorb GPS drift. Phones under clear sky report 5–15 m accuracy but the reported point still wanders by that much between punches; under a shed roof or between towers drift rises to 30–50 m. A radius smaller than roughly twice the typical drift at that site will reject honest punches. The bands in the geofencing entry (50–75 m for offices up to 200–300 m for factories) are a starting point, not a rule.

  • Centre on the actual punch point (gate, cabin, time office), not the address
  • Radius at least 2x typical GPS drift at that site
  • Use a polygon for long or irregular plots rather than one huge circle
  • Name geofences the way supervisors talk about sites (e.g. 'Sector 62 Tower B gate')

Indoor, industrial-estate and multi-tenant considerations

GPS does not reach basements or deep interiors, so a geofence cannot be tested reliably there. Options are to place the punch point at the entrance (guards punch at the gate before going to the basement post), to allow an offline punch with the last known fix, or to use a QR code fixed at the post as a second location proof.

In industrial estates and commercial towers, several clients may sit within 100 m of each other. Separate geofences with overlapping circles will both accept a punch; the fix is to assign each guard to a specific site so the punch is tested only against the rostered site's fence. This is also how guard deployment records stay honest when one agency serves neighbouring units.

Example: three fences for one campus

An IT campus in Whitefield has a main gate, a service gate 350 m away, and an underground parking post. The agency creates three geofences: main gate 80 m, service gate 80 m, and a 120 m fence at the parking ramp entrance where the basement guard punches before descending. Each post is assigned only its own fence, so a guard cannot cover a colleague's post from across the campus.

How Attend Mitra handles this

Attend Mitra lets admins create multiple geofences per company from a map view, set a radius per site, assign employees or shifts to sites, and see every punch's distance from the fence on the live monitor and in reports.

Frequently asked questions

What is a geofence in attendance software?
It is the virtual boundary drawn around a workplace – usually a circle with a centre coordinate and a radius in metres, or a polygon along the plot edge. Attendance software tests each GPS punch against the geofence of the employee's assigned site and accepts, flags or rejects the punch depending on whether it falls inside.
Circle or polygon: which should I use?
Use a circle for compact sites: shops, offices, society gates, small warehouses. Use a polygon when the site is long or irregular – a 400 m factory shed, an L-shaped campus, or a plot split by a road – because a single circle large enough to cover it would also cover neighbouring premises.
Why do honest employees get 'outside geofence' errors?
Almost always because the radius is too small for the GPS drift at that spot, or the centre was set at the address pin rather than the gate. Check where accepted punches actually land on the map, move the centre to the punch point, and widen the radius to at least twice the typical accuracy figure.
Can one geofence serve multiple sites in the same building?
It can, but you lose the ability to tell which post a punch belongs to. Better to keep one geofence per site or post and assign employees to their rostered site, so a punch is tested against the right fence even when fences overlap.

Related terms

Geofencing Attendance
Geofencing attendance is a rule applied at punch time that accepts an employee's check-in or check-out only if the phone's GPS location falls inside a virtual boundary drawn around the workplace. The boundary, or geofence, is usually a circle of 50–200 metres around a site's coordinates. Punches from outside are rejected or flagged for supervisor review.
GPS Attendance
GPS attendance is a mobile attendance method that records the phone's satellite location coordinates at the moment an employee punches in or out, so the employer knows not only when but where the punch was made. It is usually paired with a geofence rule that accepts the punch only inside a defined area, and with selfie or face verification to prove who punched.
GPS Spoofing / Mock Location
GPS spoofing, or mock location, is the practice of making a phone report a false position so that a GPS or geofenced attendance punch appears to come from the work site when the employee is somewhere else. It is usually done with a free 'fake GPS' app and Android's developer-options mock-location setting, and it is the main fraud risk in mobile attendance for field and security staff.
QR Code Attendance
QR code attendance is a method where a punch is recorded by scanning a QR code – either a code fixed at the work site that employees scan with their own phone, or a personal code on the employee's ID that a kiosk or supervisor scans. The scan proves presence at a specific place and time and is usually paired with a GPS stamp or a selfie to prevent proxy marking.
Offline Attendance
Offline attendance is the ability of an attendance app or kiosk to accept a punch when there is no internet, store it on the device with the original time, location and photo, and upload it automatically once a connection returns. The server records the punch at the time it was captured, not the time it was synced, so employees in basements, warehouses and remote sites are not marked late or absent because of network failure.
Guard Deployment
Guard deployment is the process of assigning security guards to client sites, posts and shifts so that the contracted strength is met every day. It covers the deployment plan agreed with the client, the reliever pool that absorbs weekly offs and leave, the deployment letter that records who is posted where, and the daily check that the posted strength matches the billed strength.

Go deeper

See how this works inside Attend Mitra

Verified attendance, shift rosters, leave, and payroll-ready reports in one platform built for Indian teams.

Browse all terms