IT Glossary
What is geofencing (a virtual perimeter)?
Geofencing is the technique by which a virtual perimeter drawn on a map automatically triggers an action when a phone or vehicle enters the zone, leaves it, or stays in it past a set time.
- 6
- sections
- 6
- questions answered
Geofencing (from English geo + fence; in Romanian, perimetru virtual) means a zone drawn on a map, a circle or polygon, that automatically triggers an action when a phone or vehicle enters it, leaves it or stays in it beyond a time threshold. It can run in two places: a tracker fitted to a vehicle sends positions to a server that compares them with the zones, or the phone uses the operating system's geofencing service, which wakes the app on a crossing. Phones have hard limits: on Android, at most 100 active geofences per app; on iPhone, 20.
A van leaves the yard at two in the morning and a message reaches the fleet manager's phone before it gets to the main road. Nobody was watching a screen; a boundary was crossed and a rule fired. The same mechanism confirms that a team arrived at a client site, alerts on machinery leaving a depot outside working hours, and starts preparing an order when a customer nears a pickup point. Unlike geolocation, which tells you where something is when you check, geofencing reacts on its own at the crossing. When the zone concerns employees, workplace monitoring rules apply, explained below.
Why it matters for your business
Field attendance without disputes
Arrival and departure at a client site are recorded automatically at the perimeter, so timesheets rest on events rather than on memory and good faith.
Active protection for vehicles and machinery
An alert fires as soon as machinery leaves the depot outside working hours or a vehicle leaves its work zone, shortening the gap between theft and response.
Marketing with genuine geographic precision
An offer can go out when a customer enters or stays in a zone around a branch, but only if they granted background location permission and consent for notifications.
How it works: entry, exit, dwell
A geofence produces crossing events. Android calls them ENTER, EXIT and DWELL, and for dwell you set a loitering delay, the time the device must stay inside the zone. Android's documentation recommends the DWELL type to reduce alert spam when someone only passes through without stopping.
A zone is a circle (centre and radius) or a polygon. The phone APIs, Android and iOS, accept circles only; a polygon is computed by a server or by the app itself, comparing received positions with the outline.
On the phone or on the server: two kinds of geofencing
On the server: a vehicle or machinery tracker sends its position at intervals and the platform compares each position with the defined zones. It works without the driver's phone and without operating-system limits; the alert delay is at most the reporting interval.
On the phone: the app registers perimeters with the operating system, which wakes it on a crossing. On Android 10 or later it needs the ACCESS_BACKGROUND_LOCATION permission, meaning location allowed even when the app is closed, plus network data. The simple choice: trackers for vehicles and machinery, an app for people and customers.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
Android and iPhone limits
Android: at most 100 active geofences per app per device user. Latency is usually under 2 minutes, about 2 to 3 minutes when background location limits apply, and can reach 6 minutes if the device is stationary. Perimeters must be registered again after a reboot, an app reinstall or cleared app data. In rural areas without Wi-Fi, accuracy can drop to hundreds of metres or kilometres.
iPhone: at most 20 conditions monitored at once per app. The system tries to launch a closed app on a crossing, but after a reboot monitoring resumes only once the user unlocks the phone, and timely reports need a network connection. For a business app with more than 20 sites: keep only the nearest 20 active (a design choice, not an Apple rule) or move the check to a server.
Geofencing for employees: what Law 190/2018 requires
Article 5 of Law 190/2018 applies to monitoring systems using electronic communications at the workplace. It requires five things: well-founded interests that prevail over the employee's rights, prior, complete and explicit information, consultation of the union or representatives before introduction, proof that less intrusive forms did not work, and proportionate storage of at most 30 days, with the exceptions in the law. That a phone or tracker geofence falls under it is our reading; confirm with a lawyer.
An event at the perimeter (arrival, departure), or a position read only at the start of the shift, is in our reading a less intrusive form than a continuous track, so easier to justify. Coordinates are not kept beyond 30 days, while the hours record is kept separately under Labour Code article 119; for mobile employees, article 119(2) requires it to follow the conditions set by written agreement with the employee.
Frequently asked questions
What does geofencing mean?
Geofencing means a virtual perimeter, a circle or polygon drawn on a map, plus a rule that fires automatically when a phone or vehicle enters the zone, leaves it, or stays in it beyond a set time. The rule can send a notification, record an arrival or raise an alert.
How does geofencing differ from geolocation?
Geolocation answers where a device is at a given moment. Geofencing builds a reaction on top of it: perimeters defined in advance and actions triggered automatically on entry, exit or dwell. Tracking produces a map somebody has to watch, while fencing produces events that reach the right person unprompted.
How small can a geofence be on a phone?
On Android, the documentation recommends a radius of at least 100 to 150 metres, because Wi-Fi accuracy is usually 20 to 50 metres. A tracker fitted to a vehicle reports GPS fixes to a server, so it can work with smaller zones, but the achievable precision depends on the provider.
Does geofencing drain the phone battery?
Less than continuous GPS tracking, because the operating system monitors the perimeters and wakes the app only on a crossing, mostly using network location. Android's documentation says a larger radius and a slower notification responsiveness setting reduce power consumption.
Is it legal to use geofencing on employees?
Yes, if you meet article 5 of Romania's Law 190/2018: an overriding justified interest, full prior information, consultation of the union or representatives, proof that less intrusive means did not work, and storage of at most 30 days. For mobile employees, Labour Code article 119(2) requires working hours to be recorded by written agreement.
What must a customer accept to receive location-based notifications?
The customer must allow location in the background (Android: “Allow all the time”; iPhone: “Always”) and allow the app's notifications. Because a person's position is personal data, the app must inform them and ask for consent, and withdrawing it must be as easy as giving it.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851