All insights

Real time vehicle tracking: how a live map works

Real time vehicle tracking explained: the delay at each step from record to map, how a device decides when to record, what happens without coverage, how GNSS errors are filtered, and how a live map judges status.

Technology 13 minutes

Key points

  • Real time means a recorded position plus the delay of sending, processing and drawing. The interval at which the device records is usually the largest part.
  • A device records on time, distance and angle. PING's profiles record every 30 seconds while moving and on a turn of 30 degrees, and use no distance trigger. At 90 km/h, 30 seconds is 750 m of road between two points.
  • Without coverage the device stores its records and sends them later, oldest first. The map then shows the past: it must say that a position is late, not draw it as current.
  • A satellite fix can be wrong: too few satellites, a tunnel or tall buildings cause jumps and repeated coordinates. A fix that is flagged must be kept for the record but kept off the trip.
  • Status is a judgement from the last position and its age: moving, idling, parked, or no signal. A parked vehicle is expected to be quiet; a moving one is not.
  • A late record changes the past, so trips and stops are rebuilt when one arrives. A report that counted a trip yesterday can differ slightly today.

Real time vehicle tracking is a position that was recorded a few seconds to a few minutes before you see it, never at the instant you look. A live map is the last step of a chain: the device records a position, sends it over the mobile network, the server checks and stores it, and the screen draws it. Each step adds delay and each can lose accuracy. This article follows a position along that chain, explains what the intervals mean for a vehicle on the road, and shows what the map does when the signal fails.

Vehicle status on a live map
StateHow the map decidesWhat it meansWhat to do
MovingA good fix at 5 km/h or more, heard within 3 minutesThe position is current to the last recordUse it for dispatch and arrival times
IdlingIgnition on, not movingEngine running at a stopWatch the time; end the stop or move the job
ParkedIgnition off, not movingQuiet between hourly sends is normalNo action; wait for the next send
No signalWas moving, quiet over 3 minutesOut of coverage, records storedCall the driver if needed; the route fills in later
OfflineMoving and quiet 30 minutes, or two parked sends missedDevice off, unplugged or out of rangeOpen a case; check power and the SIM

What real time means for vehicle tracking

A tracker does not stream. It records a position at a moment, packs it with the other readings it took, and sends the record. The platform stores the record and draws it. The word real time describes how short that chain is, not an absence of delay.

Four steps stand between the vehicle and the screen: the device records, the device sends, the server processes, and the screen draws. The first is a decision of the device's settings. The second depends on coverage. The third and fourth take seconds. For the full path of one record, see how a vehicle tracker works.

From record to map: the delay at each step

Each step has its own delay and its own failure:

  • Record: the device writes a point with time, position, speed, heading, satellite count and the other inputs it reads. How often is a setting, and it is the largest delay for a moving vehicle.
  • Send: the record travels over the mobile network to the server. With coverage this takes seconds. Without it, the record waits in the device's memory.
  • Process: the server checks the record, drops nothing, flags a bad fix, updates the vehicle's last position and works out trips and stops.
  • Draw: the screen reads the last position and its age and shows the vehicle with a status.

A position on screen is therefore never the vehicle's position now. It is the last position the chain delivered, and the useful question is how old it is.

How often a device records: time, distance and angle

A device decides when to write a record by its triggers, and a profile sets each:

  • Time: a record every fixed number of seconds. PING's profiles use 30 seconds while a vehicle moves, and 10 minutes while it is parked.
  • Distance: a record after the vehicle has travelled a set distance. PING's profiles switch this trigger off (0) and use time and angle. A school bus profile sets 20 m, because the educational bus specification asks for a report every 30 s at most or after 20 m.
  • Angle: a record when the heading changes by a set number of degrees. PING's profiles use 30 degrees while moving, which catches a turn between two timed records.
  • Parked: nothing changes, so PING's profiles record every 10 minutes and send hourly; a refrigerated vehicle's cold variant sends each record as made, as a cargo reading cannot wait an hour.
  • Event: a record at once when something happens, such as ignition, an unplugged device or a crash. High priority records are sent immediately.

The triggers are Teltonika's data acquisition settings; Teltonika's data protocol lists the angle and satellites in each record. At 90 km/h a vehicle covers 25 m a second, so a 30-second record is 750 m of road, and a turn trigger is what keeps a corner from being cut.

What happens when coverage drops: store and forward

A tunnel, a remote road or a roaming gap takes a vehicle out of coverage, and the device does not stop recording:

  • The device keeps the records it could not send, in its memory.
  • On reconnecting it sends them oldest first. PING's profiles set this order, because newest first would make every earlier packet arrive late.
  • The server stamps each record with the time of its fix and the time it arrived, so a late record is known to be late.
  • The map shows the last known position, and the vehicle's route fills in once the stored records arrive.
  • A device that replays a week of records sends about 20,000 at once, and the server accepts them in order.

A stored-and-forwarded record keeps the time of its fix. An alarm that depends on that time, such as overspeed, is judged on the time the vehicle was there, not on the time the record arrived.

GNSS accuracy, map matching and bad fixes

A satellite fix is a calculation, and it can be wrong. The causes are known:

  • Satellites and geometry: a receiver needs several satellites well spread across the sky. When they cluster, the horizontal dilution of precision (HDOP) rises and the error grows.
  • Urban canyons: tall buildings block satellites and reflect signals, so a position can slide to the next street.
  • Tunnels and covered parking: with no sky the receiver has no fix, and the device repeats its last coordinates.
  • Jumps: a fix that implies an impossible speed, such as 300 km/h or more over more than 1 km, is flagged as a jump. After three consistent fixes it is accepted as a relocation.
  • Map matching: a map can snap a point to the nearest road, which hides noise but is a choice of the map. A raw point sits where the receiver put it, and the route between two points 30 seconds apart is a straight line, so judge a fleet by the sequence of valid points and speed, not the side of the road.
  • Clock errors: a fix time ahead of the server, or before 2020, shows a device clock that was reset.

PING flags these fixes and keeps them stored with the reason, so the history stays complete and a bad fix never counts as a trip. The US government states a global range error of 2.0 m or less at 95% for the signal, and phones reach about 4.9 m in open sky (GPS accuracy). A receiver in a street does worse, and each tracker model has its own.

How a live map judges vehicle status

The map colours a vehicle from its last position and how old that position is. PING separates these states:

  • Moving: a good fix at 5 km/h or more.
  • Idling: the ignition is on and the vehicle is not moving. The console shows how long it has idled.
  • Parked: the ignition is off and the vehicle is still.
  • No signal: a vehicle that was moving and has been quiet for more than 3 minutes. It is not parked; the unit may be storing positions.
  • Offline: a moving vehicle quiet for 30 minutes, or a parked one that missed two sends, which is two hours at the hourly send.

A reason can sit beside the status, such as speeding against the vehicle's limit, a cargo out of range, or heading to the next stop with an arrival estimate. The statistics, such as late positions, use the same thresholds: a position received more than 120 seconds after its fix, while moving, was stored and forwarded.

What makes a live map useful for dispatch

A map helps dispatch when it answers four questions without a call:

  • Where each vehicle is, and which is nearest to a new job, from the last position.
  • Whether a vehicle is on its way: the job's next stop and the estimated arrival, which become less certain as the position ages.
  • Which vehicles are idling at a customer, and for how long, so that a stop can be ended or a job moved.
  • Which have gone quiet while moving, so the dispatcher calls the driver instead of trusting a stale point.
  • When a vehicle enters or leaves a site, from a geofence, so arrival does not depend on someone looking at the map.

A live map is for the present, and the alarm for the exception. PING's alert rules fire on events, so a dispatcher need not watch the map to learn that a vehicle left its zone.

Why trips are rebuilt when late records arrive

Trips and stops are worked out from the ordered records, not from the live position:

  • A trip starts when a vehicle moves and ends after 5 minutes stationary; a reporting gap of that length also splits a trip.
  • Leaving a stop becomes a trip only after 100 m, so satellite drift while parked never creates one.
  • When a late record arrives, with a fix time earlier than the live state, the server stores it as outdated and rebuilds the trips and stops it falls in. The live position only moves forward.
  • A trip count or a distance for a day can therefore change by a little until the last stored record arrives.
  • Reports read the rebuilt trips, so a vehicle that came back into coverage appears with its full route.

Read what GPS tracking is for the signal itself, and the common tracking mistakes for what goes wrong in practice.

A check for a live map you can rely on

  • The update interval is known for each vehicle: seconds while moving, minutes while parked, and how often parked records are sent.
  • The map shows the age of a position, and a position older than the moving interval is marked as such.
  • Operators know the difference between a vehicle that is parked and one that has gone quiet while moving.
  • A vehicle that left coverage shows its route filled in once the device reconnects, and nobody judges its trip before then.
  • Alarms are judged on the time of the position, not on the time it arrived.
  • New units are checked on the road: the gaps between reports while moving, and the share of valid fixes.
  • Vehicles that stay in tunnels, underground car parks or covered yards are known, so a gap there is not read as a fault.
  • Dispatchers use the live map for the position and the reason for the status, and the trip history for what already happened.

Questions

Is real time vehicle tracking truly instant?

No. A position is recorded, sent, processed and drawn, and each step takes time. PING's profiles make a record every 30 seconds while a vehicle moves, so the map is at best that interval behind the road plus the time to send and process it. For a parked vehicle the interval is much longer.

How often does a live map update a vehicle's position?

A position is as fresh as the last record the device made and sent. While moving, PING's profiles record every 30 seconds and on a turn of 30 degrees. A parked vehicle records every 10 minutes and sends hourly, and a record that matters, such as unplugging the device, is sent at once.

What happens to the position when a vehicle loses mobile coverage?

The device stores records in its memory and sends them when the network returns. PING's profiles send the oldest first, so the history arrives in order. The map shows the vehicle's last known position meanwhile, and trips are rebuilt once the records arrive.

Why does a vehicle jump on the map or appear in the wrong street?

The mobile network reaches the server, but the satellite signal is what fixes the position. In a tunnel or among tall buildings the receiver sees few satellites or reflected signals, so a record can repeat the last coordinates or jump. Such a fix is flagged and not used for the trip.

Why does a parked vehicle show an old position?

Both are possible and neither is a fault. A moving vehicle that has been quiet for more than a few minutes is stored and forwarded or has lost coverage; one that is parked sends rarely by design. PING's console marks the first as no signal and treats the second as quiet only after two missed sends.

Can a live map be used to dispatch vehicles?

Yes. A live map shows where each vehicle is, whether it is moving or idling, and how far it is from the next stop, so a dispatcher can reassign a job. It is a picture of the last position, so keep the interval in mind when promising a customer an arrival time.

Can the update interval be shortened?

Yes. A shorter interval gives more points and a finer route, and costs more data and more storage. The setting is the unit's, set per profile. A school bus profile, for example, records at least every 30 seconds or after 20 m, whichever comes first.

To see how positions reach the screen on PING, read about tracking. For a plan to match the update rate to your vehicles, contact us.

Sources

  1. Teltonika wiki: data sending protocols (AVL record fields)
  2. GPS.gov: GPS accuracy