Geofences

Geofences are geographical zones used to track device movement. Traccar can generate events about entering and exiting to these zones.

Geometry

There are three supperted geometry types:

Circle

Polygon

Polyline

Permissions

Geofences relationships with other objects is very flexible.

If geofence is linked to a device, it means that Traccar will monitor device entering and exiting that geofence.

If geofence is linked to a group, it means that Traccar will monitor all devices in that group entering and exiting the geofence.

If user has access to a geofence, it means that the user can edit/remove the geofence and can subscribe to the geofence events.

Calendars

Calendars can be linked to geofences. This will limit events generation to the calendar schedule.

Tips and Tricks

Distance around polyline geofence when device considered "inside geofence" can be configured with geofence.polylineDistance configuration parameter (25 meters by default).

Color of a geofence on the map can be set in the geofence attribute color. Any valid HTML colors are accepted.

If you need control device movement along a pre-defined route, you can use polyline geofence. Also, if you need control when device started and ended the route, you can add additional geofences at the source and at the destination.