Geofences

Circle, polygon or route corridor: which geofence to use

The three types of geofence in Alongpin, a circle, a polygon and a route with a width, when each one fits, and how big to make a zone so that enter and exit events come reliably.

Ashish Srivastava4 min read

A flat illustration of a town seen from above with a round zone around a building, an outlined industrial yard and a band following a winding road

There are three types of geofence in Alongpin: a circle (a centre and a radius), a polygon (an outline of three or more points) and a route (a line of two or more points with a width on each side). Use a circle around a single address, a polygon for a site with an irregular boundary such as a yard or a district, and a route corridor for a planned road. Whatever the shape, make the zone big enough that the tracker reports at least one position inside it.

Key takeaways

  • Circle for a point, polygon for an area, route for a road.
  • A zone raises enter and exit events only when a position falls inside it, so size it for how often the tracker reports.
  • Name and colour zones so that people tell them apart on the map at a glance.
  • The shape can be drawn on the map, typed as coordinates, or imported from a GPX, KML, GeoJSON or CSV file.

Circle: a point and a radius

A circle is drawn with two clicks: the centre, then the edge. Use it for a customer's door, a school, a home or a fuel station: places that are one point on the map. Afterwards you can drag the centre or the edge dot, or type the radius.

A circle is quick but rough: around a long, thin site it either misses the ends or takes in the neighbours.

Polygon: the outline of a site

A polygon is drawn by clicking each corner and clicking the first corner again to finish. Use it for a depot yard, a construction site, a farm, a port terminal or a district of a city: any area whose boundary you want to follow closely. A polygon has a single outer ring, with no holes; to leave out a building inside a yard, draw two zones.

Points can be moved afterwards, and clicking the midpoint of a side adds a point.

Route corridor: a line with a width

A route is drawn by clicking each point along the road and double-clicking to finish. Then set Width each side: how far from the line a position still counts as inside (25 m when left empty). Use it for a planned delivery route, a school bus route or a haul road, to be told when a vehicle leaves it.

The width matters more than the line: on a dual carriageway or where the GPS reading wanders between buildings, a narrow corridor raises false exits.

The geofences map editor with circle, polygon and route zones in different colours and the drawing tools for each shape
The map editor draws circles, polygons and routes; choose the tool, then click on the map.

Size the zone for the reporting interval and GPS accuracy

A geofence event happens when a position falls inside the zone and the previous one did not (enter), or the other way round (exit). Between two positions the portal does not know where the vehicle was. So:

  • Reporting interval: a vehicle at 60 km/h covers a kilometre a minute. If the tracker reports once a minute, a 100 m circle that the vehicle drives straight through may have no position inside it, and no event comes. Make zones that vehicles pass through larger, or report more often while moving.
  • GPS accuracy: positions wander by a few metres in the open and more between tall buildings, under roofs or indoors. A zone whose edge runs through a car park will see vehicles parked near the edge go in and out. Keep the edge clear of where vehicles stand.
  • Stops: for a place where vehicles stop, such as a customer site, the zone only needs to contain the stop, plus a margin for GPS drift.

Your administrator can also switch on crossing detection, which raises an event when the straight line between two positions passes through a zone that neither position is in. It is off by default.

Colour and name so zones are easy to tell apart

Give every zone a name people will search for ("Depot North", "Customer: City Hospital") and a Colour. Use one colour per kind of place (depots blue, customers green, no-go areas red) so the map reads at a glance. Zones you no longer want on the live map can be set to Hide on the map; they still raise events.

The geofences list showing each zone's name and colour, its shape, calendar, speed limit and what it is attached to
The list shows each zone's shape and colour, so similar zones are easy to tell apart.

What every zone can also have

Any shape can carry a Speed limit inside, which overspeed events use instead of the vehicle's limit, and a Calendar, so that enter and exit events happen only at the times you choose. A zone raises events only for the devices and groups it is attached to, and the events reach people through alert rules.

The geofences feature page shows what zones are used for, and the fleet solution how they fit a fleet's working day.

Frequently asked questions

Can I change a circle into a polygon?

Not by dragging. Draw the new shape as a new geofence, attach it where the old one was, then delete the old one.

Can I import zones from another system?

Yes. Import on the geofences list reads GPX, KML, KMZ, GeoJSON and CSV files; GPX tracks become routes and points become circles.

Geofences

Setting a home zone for a person or pet

Draw a zone around the home and choose it as the home geofence of a pet's or elder's care profile, for a left-home alert and the time at home in the daily view. Sized so the garden and GPS drift don't raise alerts.

Ashish Srivastava3 min read

Geofences

Sharing a geofence with another user

How to share a geofence with a colleague or family member so they see it and can use it on their own devices. Shared zones are read-only for the person who receives them.

Ashish Srivastava3 min read

Geofences

Why a geofence alert did not arrive

A checklist for a missing enter or exit alert: the zone isn't attached, no rule covers it, a calendar or quiet hours held it back, the trip was private, or the tracker reported too rarely to be seen inside.

Ashish Srivastava4 min read

Put your first device on the map today

Book a demo if you would rather see it with your own use case first. Choose a package in the portal; you see the first invoice before you confirm.

Chat with us