All posts
TraccarGeofencesFleetAlerts

Traccar geofences: depots, customer sites and route alerts

Nov 25, 20264 min read

A geofence is an area on the map. When a vehicle enters or leaves it, Traccar creates an event. That simple idea answers a lot of everyday fleet questions: did the truck reach the customer, when did the bus leave the depot, who went somewhere they shouldn't?

Shapes you can draw

In the Traccar web interface, open Geofences and draw:

Shape Good for
Circle Depots, customer sites, bus stops, fuel stations
Polygon Industrial areas, city zones, a whole port or yard
Line (polyline) A route: alerts when the vehicle leaves the road it should follow

For a line, Traccar treats the area within a set distance of the line as "inside". The distance is a server setting (geofence.polylineDistance, in metres), so a truck a few metres off the line isn't counted as off-route.

Link geofences to vehicles

A geofence does nothing until it's linked. You can link geofences to:

  • A single device
  • A group of devices, for example all trucks at one branch

Linking to groups saves time: a new truck added to the group gets all its geofences automatically.

Alerts that fleet owners use

Create notifications for Geofence entered and Geofence exited, then choose who gets them and how (web, mobile app push, email, SMS).

Useful examples:

  • Arrived at customer: enter the customer's site geofence. Send it to the sales or dispatch team.
  • Left the depot: exit the depot geofence in the morning. Shows real departure times.
  • No-go zone: enter a geofence you've drawn around an area vehicles shouldn't visit.
  • Off route: exit a line geofence along the planned route.
  • School bus near the stop: enter a small geofence around each stop. Send it to parents (see school bus tracking with Traccar).

Too many alerts and people stop reading them. Start with two or three that answer real questions.

Only during working hours

A truck parked at the depot overnight doesn't need to trigger alerts. Traccar lets you attach a calendar to a geofence or a notification, so alerts only fire during the hours you choose, for example Monday to Saturday, 8 am to 8 pm.

Speed limits per zone

Speed rules are often different inside a site or town than on the highway. Add a speedLimit attribute to a geofence, and Traccar uses that limit for overspeed events while the vehicle is inside it.

Examples:

  • 20 km/h inside a factory or port
  • 40 km/h near schools
  • The normal vehicle limit everywhere else

Reports from geofence events

The Events report, filtered to geofence events, gives you a timeline per vehicle:

  • When each truck arrived and left each customer site
  • How long it spent there
  • Which vehicles never reached a site they were supposed to

Export it to Excel for billing disputes ("your driver only stayed 10 minutes") or to check delivery promises.

Tips for accurate geofences

  • Don't make them too small. GPS positions can be off by 10 to 20 metres. A 30-metre circle around a gate may miss arrivals. 100 to 200 metres is safer for most sites.
  • Match the reporting interval. A vehicle reporting every 2 minutes can drive through a small geofence without a single position inside it. Shorter intervals while moving help.
  • Name them clearly. "Ambattur Warehouse" is better than "Geofence 12" in an alert at midnight.

For tracking businesses

If you sell tracking to customers, geofences are a great feature to set up during onboarding: draw their depot and top customer sites on day one, and they'll see value immediately.

Summary

  1. Draw circles for sites, polygons for areas and lines for routes.
  2. Link geofences to groups so new vehicles inherit them.
  3. Create a few useful enter and exit alerts, limited to working hours.
  4. Use geofence speed limits and event reports for real answers.

Want geofences, alerts and reports set up for your fleet or your customers? See Traccar installation and setup or the white-label Traccar platform.

Keep reading

Need help with your Traccar server?

I offer Traccar setup and maintenance, GPS tracking apps and Flutter development.