Logistics and delivery

Circle, polygon or corridor: choosing the right geofence shape

The three geofence types compared: circles for single addresses, polygons for yards and odd-shaped sites, corridors for roads. With a rule for size, GPS accuracy and reporting interval, and the mistakes that make arrival events misfire.

Ashish Srivastava6 min read

An aerial view of a delivery van entering an industrial estate with irregular yards and a winding access road

There are three geofence types in Alongpin: a circle (a centre and a radius), a polygon (an outline you click corner by corner) and a route corridor (a line with a width on each side). The rule of thumb: a circle for a single address, a polygon for a yard, an estate or any odd-shaped site, and a corridor for a road. Most arrival events that misfire come from zones that are too small for the tracker's reporting interval or that overlap their neighbours, not from the choice of shape, so size matters as much as shape.

Key takeaways

  • Circle for one point: a customer's door, a shop, a fuel station.
  • Polygon for an area whose boundary you want to follow: a depot yard, an industrial estate, a port terminal.
  • Route for a road: a planned delivery route or a haul road, with Width each side.
  • A zone needs at least one reported position inside it to raise an event. Size it for the reporting interval and for GPS drift.
  • Overlapping zones each raise their own events. Avoid overlaps unless you want both.

The three shapes at a glance

Circle Polygon Route corridor
Best for One address A site or area with a real boundary A road or a planned route
How it is drawn Click the centre, then the edge Click each corner, then the first corner again Click each point, double-click to finish
What you adjust The radius Each corner; a click on a side adds a point The points and Width each side (25 m if left empty)
Typical mistake Too small for the reporting interval, or so big it covers the neighbours Edge drawn through the car park Too narrow for the road and for GPS drift
Arrival events When a vehicle reaches the address When a vehicle enters the site When a vehicle joins the road; an exit when it leaves it

All three are made under Geofences with New geofence, and all three can carry a Speed limit inside, a Calendar and a Colour. Zones can also be imported from GPX, KML, KMZ, GeoJSON or CSV files with Import geofences.

An illustration of the three geofence shapes on a simple map: a circle around a shop, a polygon around a yard and a corridor along a road
Circle for an address, polygon for a site, corridor for a road.

Circles for single addresses

A circle is the fastest zone to draw: two clicks on the map, then drag the edge or type the radius. It suits places that are one point on the map for your purposes: a customer's shop, a school, a fuel station, a small depot in a street.

Circles go wrong in two ways. Too small, and a vehicle that drives in, unloads and leaves between two reported positions never produces a position inside it. Too large, and the circle takes in the houses and businesses next door, so a vehicle parked at the neighbour counts as arrived. For an address on a straight street, a circle large enough to catch the vehicle in front of the door is usually also large enough to catch the vehicles in front of the two doors on either side.

Choose a circle when the site is compact and roughly as deep as it is wide, and when a few metres of overlap with the neighbours do not matter.

Polygons for yards, estates and odd-shaped sites

A polygon follows the boundary you actually care about. Click each corner of the yard, the estate or the site, and click the first corner again to close it. Afterwards you can drag any corner, and clicking the middle of a side adds a new point.

Use a polygon for:

  • a depot yard with an entrance on one side and a building along another;
  • an industrial estate or business park, where a circle would include the motorway junction next to it;
  • a port terminal, a quarry or a farm, which are long, thin or irregular;
  • a district of a city for a delivery area.

A polygon has a single outer ring and no holes. If you need to leave a building out of a yard, draw two zones. And if three customers share one business park, draw three polygons, one around each customer's car park, rather than one around the park: one big zone merges visits to all three into one. Drawing a polygon geofence around a yard or district walks through it step by step.

Choose a polygon when the site has a boundary you can see on the map and a circle would either miss part of it or take in something else.

Corridors for roads

A route corridor is a line you draw along a road, clicking each point and double-clicking to finish, with a Width each side. A position counts as inside when it is within that distance of the line. Leave the width empty and it is 25 m each side.

Corridors answer a different question from the other two shapes. A circle or polygon tells you a vehicle arrived somewhere; a corridor tells you a vehicle left the road it should be on. Use it for a fixed delivery run, a haul road between a quarry and a plant, or a route that avoids a low bridge. The exit event is the useful one.

The width is where corridors fail. A dual carriageway is wide, positions near tall buildings wander, and a vehicle on the far lane can drift outside a tight corridor and back, which reads as an exit and an entry. Start wider than you think and narrow it once you have seen a week of events. The platform does not plan routes or warn about the road ahead; it compares each reported position with the corridor you drew.

Choose a corridor when the question is "did the vehicle stay on this road?" rather than "did it arrive?".

Size, GPS accuracy and reporting interval

How big should a geofence be? Big enough that the tracker reports at least one position inside it on every real visit, and small enough to leave out what is not part of the visit. Three things decide that:

  • The reporting interval. A zone event happens when a reported position is inside and the previous one was not, or the other way round. Between two positions the platform does not know where the vehicle was. A vehicle at 60 km/h covers a kilometre a minute, so a tracker that reports once a minute can carry a vehicle straight through a small circle without a single position inside it. Zones that vehicles pass through need to be larger than zones where they stop.
  • GPS accuracy. Positions wander by a few metres in the open and more between tall buildings or under a roof. Keep the edge of a zone away from where vehicles stand, or a parked truck will seem to go in and out.
  • Where vehicles stop. For a customer site, the zone only has to contain the place where the vehicle stops, plus a margin for drift. That is often the car park or the loading area, not the building the address belongs to.

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 was in. It is off by default.

The geofences map with several zones of different shapes and colours, and the list of zones beside it
Zones of different shapes on the geofences map, each with its own colour.

Common mistakes

  • Zones too tight. The commonest reason an arrival is missing. Make the zone bigger or have the tracker report more often while moving; why a geofence alert did not arrive lists the other causes.
  • Overlapping zones. A vehicle inside two zones raises events for both: two arrival alerts, two rows in the geofence report. Where overlapping zones both have a speed limit, the highest of them applies. Overlap on purpose (a depot inside a district) or not at all.
  • One zone for several customers. Visits to different customers merge into one stay.
  • Zones not attached. A zone raises events only for the devices and groups it is attached to.
  • Zones drawn after the fact. Positions know only the zones that existed when they were processed, so a zone drawn today does not produce events for last week.
  • Edges through the parking. Vehicles parked at the edge flap in and out.

Which shape for which job

For field teams visiting many customers, circles at small addresses and polygons at larger sites are the usual mix; the field service page shows how visit times are used. For logistics, polygons around depots and distribution centres and corridors on fixed runs cover most needs. The geofences page describes what each zone can carry, and the vehicle trackers page what trackers report, including how often.

How Alongpin helps

Alongpin (alongpin.com) is a GPS tracking platform you open in a browser or on your phone. Dispatch sees every vehicle on the live map, geofences record arrivals and time on site at depots and customers, and a share link lets a customer follow one delivery without an account. Trip history and reports settle questions after the fact. See how it works for fleets, check your trackers in the device check, or sign up.

Frequently asked questions

Can I turn a circle into a polygon?

Not by editing it. Draw the new shape as a new zone, attach it where the old one was, and delete the old one.

What size should a circle around a customer be?

There is no single number. Start with a radius that covers the place where vehicles stop plus a margin, check a week of arrivals, and adjust.

Do corridors follow the road automatically?

No. The corridor follows the points you click. Add more points on bends so the line stays on the road.

Newsletter

Get new posts by email

About one email a month. Product news and practical guides. Unsubscribe any time.

We use your address only to send the newsletter. Privacy policy.

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