GPS Fleet Tracking

How to connect GPS tracking to your transport management system (TMS)

How GPS positions reach a TMS: device protocols, provider APIs and webhooks, trip matching, geofence events and data retention. A guide for UAE fleet operators.

A S CodeLabsUpdated: 13 min readاقرأ بالعربية
How to connect GPS tracking to your transport management system (TMS)

Quick answer

GPS tracking connects to a transport management system (TMS) through the GPS provider’s API or webhooks. The TMS stores each position against a dated vehicle-to-tracker link, matches it to the trip that vehicle is serving, and uses geofences at loading and delivery points to update trip status and customer ETAs. Push delivery is preferred over polling. As of November 2026, location is personal data under the UAE PDPL, so set retention early.

Key takeaways

  • A GPS integration is useful only when positions are tied to trips: the key is a maintained link between each vehicle, its tracker and the trip it is serving.
  • Push delivery (webhooks, MQTT or a stream) gives lower latency and uses less provider quota than polling a REST API; polling is best kept for back-fill and reconciliation.
  • Geofences at loading, delivery and border points turn raw positions into events (arrival, departure, delay) that update trip status without a dispatcher’s phone call.
  • Store each position with three timestamps (device time, fix time, server time) and deduplicate on device plus fix time, because trackers resend data after a network gap.
  • The UAE Personal Data Protection Law (Federal Decree-Law No. 45 of 2021) lists geographical location among identifiers of personal data, so set retention and role-based access from day one.
  • Before buying hardware, check the provider’s API, data export and device support; Abu Dhabi’s approved device list (21 April 2026) is dominated by Teltonika and Ruptela models.

Why connect GPS tracking to a TMS at all?

Connecting GPS tracking to a transport management system (TMS) means a truck’s position is read in the context of the trip it is serving, not shown as a dot on a separate map. A stand-alone tracking screen answers “where is the truck?”. An integrated TMS also answers “which customer is waiting, is the trip late, and can we invoice it?”. For the wider picture of rules, costs and setup, see the GPS fleet tracking in the UAE guide.

The duplicate-work cost is concrete. Without integration, a dispatcher keeps one screen for the tracker and another for trips, then copies arrival times by hand into the trip record. With integration, the arrival time is captured from the position stream and the trip record updates itself. The same data later supports statements of account, delay disputes and driver reports.

An integration does not replace the tracker provider. The provider still receives data from the device and holds the raw history. The TMS consumes a feed of positions and events from that provider and links them to its own records of vehicles, drivers, customers and trips. For a short list of operational benefits beyond this one, read why UAE transport companies need GPS tracking.

How does location data travel from the truck to your software?

Location data travels in four hops from truck to TMS. The tracker reads its GPS fix, sends it over a mobile network to a tracking server, the server decodes the vendor protocol, and the server passes the decoded record to the TMS through an API, webhook or message stream. Each hop can add delay or lose data, so each hop needs a named owner. In practice the GPS provider owns the first two hops and the TMS vendor owns the last, which is why the contract with the provider decides what the TMS can receive.

From the device to the tracking server

A tracker sends records to a tracking server over TCP or UDP using a vendor protocol. Teltonika’s Codec 8 is a common example: the device first sends its IMEI, the server answers with a one-byte accept, and then the device sends packets of records. The server must report back how many records it received, otherwise the device resends them, so duplicates are normal. According to the Traccar project, the open-source server supports more than 200 GPS protocols and over 2,000 device models.

The mobile network matters as much as the device. The UAE’s 2G (GSM) networks were shut down by the end of 2023, according to e&, and the Telecommunications and Digital Government Regulatory Authority (TDRA) stopped sales of 2G-only devices in June 2022, so 2G-only trackers can no longer connect. Buy LTE-capable hardware, and note that 3G fallback may not work on trips into Saudi Arabia or Qatar.

From the tracking server to the TMS

The tracking server can be the provider’s platform or a server you run, such as Traccar, which is released under the Apache License 2.0 (version 6.17.0 was published on 1 November 2026). Either way, the TMS receives decoded positions, not raw device bytes. The alternative, where the TMS decodes every device protocol itself, gives full control but means maintaining each protocol and each firmware change.

Where each part of the data path normally runs
HopTypical technologyWho normally owns it
Device to tracking serverVendor protocol over TCP or UDP on a mobile data SIMGPS provider or hardware installer
Tracking server to TMSREST API, webhook, MQTT or streamGPS provider, with the TMS consuming it
TMS to dispatcher and customerLive map, trip status, tracking linkTMS vendor

Should you poll an API or receive webhooks?

Webhooks are the better default: the provider sends each position or event to the TMS the moment it arrives, so the TMS does not ask repeatedly. Polling means the TMS calls the provider’s REST API on a timer. Polling is simple but adds latency up to the polling interval and consumes API quota even when nothing has changed.

A push feed can use HTTP/JSON webhooks, MQTT (an OASIS standard messaging protocol for the Internet of Things) or a stream such as Kafka. Traccar, for example, can forward events to a URL as JSON and can add an authorisation header to the request. A practical design uses push for live data and a scheduled poll to back-fill any gap after an outage.

Polling compared with push delivery
CriterionREST pollingWebhook or stream (push)
LatencyUp to the polling intervalNear real time
Provider quotaConsumed on every call, even with no changeConsumed only when data exists
Failure handlingNext poll can back-fill the gapNeeds retries and a queue on your side
Best useBack-fill, reconciliation, historyLive map, events, customer links

Webhook receivers need a few safeguards. Acknowledge a message only after it is written to storage, validate the shared secret or token on every request, and keep the endpoint idempotent so a resent message does not create a second record.

How are positions matched to trips?

A TMS matches positions to trips through three dated links: tracker to vehicle, vehicle to trip, and trip to its stops. Each link carries start and end dates, because a tracker can be moved to another truck during a repair and one truck serves many trips in a month. A position without a valid link is stored but not shown on any trip, so link maintenance is the main operational task of the integration.

The vehicle and device link is a table that maps each tracker’s unique ID to a vehicle, with a start and end date. Every incoming position is stored against the device, then resolved to the vehicle valid at that fix time. When a tracker is swapped during a repair, closing the old link and opening a new one keeps old trips correct. The same pattern links drivers through an ID tag or key, again with effective dates.

The trip window and stops

A trip owns the positions recorded between its start and end status, plus a small buffer. Each stop on the trip is linked to a geofence around the customer site, warehouse, port or free zone. An arrival event inside the right geofence can move the trip to “arrived”, and an exit event can mark it “departed”. A dispatcher still confirms disputed cases.

Traccar’s defaults give a useful starting point for detecting stops: a trip needs at least 300 seconds and 500 metres of movement, and a parking stop is 300 seconds or longer. Tune these values to your fleet, since a yard with slow shunting behaves differently from long-haul driving.

Which events matter most to dispatchers and customers?

Five events matter most: arrival at a stop, departure from a stop, delay against the plan, ignition on and off, and overspeed. Arrival and departure drive customer updates, while delay and ignition events help the dispatcher act before a customer calls.

A geofence event is generated when a position enters or leaves a defined area. Traccar’s API describes geofence areas as text in the WKT format and lists geofence enter and exit, ignition on and off, and overspeed among its event types. In a TMS, each event should carry a time, a position reference and the trip it belongs to.

ETAs and customer tracking links

An ETA is the current time plus the routed travel time to the next stop plus the planned time at the stop. Recalculate it when an event occurs, such as leaving a geofence, a deviation or a delay, instead of on a fixed timer. A routing service with traffic-aware durations suits customer ETAs, while a static estimate is enough for planning.

A customer tracking link is a web page that shows one trip’s position, status and ETA without the customer logging in. Build it on a long, random, expiring token tied to a single trip, show only that vehicle, and switch it off after delivery. Never expose driver names, phone numbers or other trips on the page.

Example: a dispatcher plans a Jebel Ali to Dubai Investments Park trip. The trip has two geofences. When the truck leaves the port geofence, the TMS marks the trip “in transit”, recalculates the ETA and sends the customer a tracking link. When the truck enters the customer geofence, the status changes to “arrived”. This is an illustration, not customer data.

What data model and retention should you plan?

A TMS needs five groups of GPS data: positions, trips and stops, geofences, events, and the links between vehicles, devices, drivers and jobs. Positions are the largest group by volume and the others are derived from them or from TMS records. Designing the five groups before the first import avoids rewrites when fleet size and history grow.

Field-by-field outline of a GPS data model
TableKey fieldsNotes
Positionsdevice ID, device time, fix time, server time, latitude, longitude, speed, heading, valid flag, ignition, odometer, raw IO values as JSONStore speed in km/h, because Traccar reports it in knots; partition by month and index on device and fix time
Trips and stopsvehicle, start, end, stop type, linked geofenceDerived from positions and TMS trip status
Geofencesarea as WKT or GeoJSON, linked customer site, optional scheduleOne record per loading, delivery or border site
Eventstype, time, position reference, geofence reference, payloadDrives trip status and customer messages
Linksvehicle to device, driver to ID tag, trip to stopsEach with start and end dates

Retention and personal data

Retention is a design decision, not an afterthought. The UAE Personal Data Protection Law (Federal Decree-Law No. 45 of 2021), in force since 2 January 2022, lists a person’s geographical location among the identifiers that make information personal data. A truck position linked to a named driver is therefore personal data. As of November 2026, the law’s Executive Regulations had not been published on the UAE Legislation portal, so detailed penalties and breach-notification deadlines are not yet set.

Keep raw positions only as long as the business needs them, keep aggregated trip and delay records longer, and restrict who can see live driver locations. The PDPL does not apply in free zones with their own data-protection laws, such as DIFC and ADGM. Read whether it is legal to track drivers with GPS in the UAE and take legal advice for your own policy.

How much data does one truck produce?

Example: at one position every 30 seconds for 10 hours a day, a truck produces about 1,200 records a day. At roughly 64 bytes a record, the payload is under 100 KB a day, and the monthly mobile data is in the single-digit megabytes. These figures are an estimate derived from the Codec 8 record layout, not a provider figure. Video from dashcams is far heavier and belongs outside the GPS database.

What can go wrong and how to avoid it?

GPS-to-TMS integrations most often fail in six ways: gaps in the track, duplicate positions, clock differences, a wrong vehicle link, provider lock-in and exposed endpoints. Each failure has a known remedy, and most remedies are design choices made before go-live rather than fixes made afterwards. The table below lists the cause and the fix for each one.

Common problems and fixes

A GPS integration problem is a fault in the data feed that later appears as a wrong trip record, a wrong ETA or a dispute with a customer. The six problems below share that pattern. Use the table as a review checklist when testing a new provider connection, and run it again after any firmware or provider change.

Common integration problems and fixes
ProblemCauseFix
Gaps in the trackPoor mobile coverage, tunnels, device offTrackers buffer records and send them later; accept late data and rebuild trips from fix time
Duplicate positionsDevice resends until the server acknowledgesDeduplicate on device plus fix time; acknowledge only after a durable write
Wrong timesDevice clock differs from server clockStore device time, fix time and server time, and use fix time for trips
Positions on the wrong tripTracker moved between trucks, link not updatedKeep dated vehicle-to-device links and review them after each repair
Provider lock-inProprietary API, no exportAsk for a full data export and API documentation before signing
Exposed endpointsOpen decoder ports, weak tokensUse a private APN or IP allow-list, TLS at a reverse proxy, and rotate tokens

Hardware and permits

Hardware choice affects integration because the TMS can only receive what the tracker and its provider send. According to Abu Dhabi Mobility’s approved device list (status 21 April 2026), the listed on-board units include Teltonika and Ruptela models, and all 29 supplier entries offer the Teltonika FMC130. Abu Dhabi freight permits require an ITC-approved device linked to ITC’s electronic tracking system; see Abu Dhabi Asateel permits and GPS tracking. For a rollout plan, read how to add GPS tracking to your fleet.

Where the A S CodeLabs TMS fits

The A S CodeLabs transport management system is built for UAE and GCC trucking companies and includes live GPS tracking. The feature shows every truck on one map with positions from the customer’s GPS provider, matched to trips, with a tracking link to share with customers. GoFleet GPS is supported today, and other GPS providers are added on request. The TMS also has a REST API and webhooks. Details are on the product site, and the Transport Management Software guide covers the wider system.

Frequently asked questions

What is a telematics API?

A telematics API is a programming interface that lets one software system read vehicle data held by another, such as positions, ignition status, speed and events. A TMS uses a provider’s telematics API to pull history or to receive pushed data. Ask the provider for its documentation, authentication method, rate limits and webhook options before choosing hardware or signing a contract.

Can I connect more than one GPS provider to one TMS?

Yes. A TMS can connect to more than one GPS provider if it maps each provider’s device IDs to its own vehicle records and converts every feed into one internal position format. Fleets that bought trackers from different suppliers or took over vehicles need this. Each provider still needs its own connector, so check the integration list of your TMS.

How often should GPS positions update?

Trucks commonly log a GPS position every 30 seconds while moving, or by distance or turn angle, with a heartbeat every 30 to 60 minutes when parked. These intervals are a rule of thumb, not a regulation or a vendor default. Shorter intervals give smoother maps but increase data volume, provider quota use and storage cost.

What is a geofence event?

A geofence event is a record created when a vehicle’s position enters or leaves a virtual boundary drawn around a place such as a warehouse, port or customer site. Traccar, for example, supports geofence enter and exit events. A TMS can use the event to mark a trip arrived or departed and to notify the customer.

Can customers see live tracking without logging in?

Yes. A TMS can issue a customer tracking link that shows one trip’s position and ETA without a login. The link should use a long random token, expire after delivery and show only that trip. The UAE Personal Data Protection Law treats a driver’s location as personal data, so the page should not show driver names or other trips.

Do I need new trackers to connect GPS to a TMS?

Usually not. If the existing tracker’s provider offers an API or webhook and allows data export, the TMS connects to the provider platform, not to the device. New hardware is needed when the tracker is 2G-only, which no longer connects in the UAE, or when an Abu Dhabi freight permit requires an approved device.

Read more from our blogs