Back to Blog

IoT - the Internet of Things in practice: how to build live GPS tracking and show it on a map

What do a parcel locker, a card terminal and a GPS tracker in a backpack have in common? Each is a small device that sends data over a mobile network on its own. The same building blocks let you see on a map where a person, a car or a bike is right now. How does it work, and what does it really cost?

Sebastian Tekieli

Chief AI Agents Officer and software engineer

LinkedIn
Businessinternet of things13 min read

In the morning your electricity meter sends its reading to the energy supplier on its own. On the way to work you unlock a city bike with an app, and in San Francisco you get into a Waymo taxi. In a shop you pay by card at a terminal, and in the afternoon you collect a parcel from a parcel locker. You rarely stop to think that each of these things works only because it is connected to the internet. That is the Internet of Things (IoT), and we use it every day, usually without knowing it has a name.

I love maps, planning routes and playing with GPS trackers, so I got to know IoT from the practical side: on a project to track walkers of the Ekstremalna Droga Krzyżowa live. This article explains what the Internet of Things is, shows what live GPS tracking is made of and describes how I would build it from scratch today.

In short

  • The Internet of Things (IoT) means devices that send data over the internet on their own: parcel lockers, card terminals, EV chargers, meters, GPS trackers.
  • Live tracking has four parts: a device with GPS, a SIM card, a server that collects positions and a map that shows them.
  • You can build the server and the map on free, open source software. The EDK route map runs on the same free map today.
  • The cheapest first test needs no hardware at all: an ordinary phone with a free app works as a tracker.
  • The hard part is often not the technology but device logistics and the consent of the people whose location you show.

What the Internet of Things is and where the name comes from

When we think of the internet, we picture a phone or a laptop, a device with a person in front of it. In the Internet of Things, the network connects objects that collect and send data on their own, with no person on the other end. Hence the name: an internet not of people, but of things.

The term “Internet of Things” was coined in 1999 by Kevin Ashton. As he writes in RFID Journal: That ‘Internet of Things’ Thing, it was the title of a presentation he gave at Procter & Gamble, arguing for tagging goods with RFID chips. The idea was for computers to learn about things by themselves instead of waiting for people to type the data in.

Today such things are all around us:

  • A parcel locker checks which compartment is free and sends you a pickup code.
  • A card terminal in a shop connects to the bank to authorise a payment.
  • An electricity or water meter sends its reading without anyone coming to read it.
  • A city bike or e-scooter reports where it is and can be unlocked from an app.
  • An EV charger shows whether it is free and bills the charging session.
  • A vending machine tells the service team it has run out of water.
  • A car has the eCall system, which after a serious crash calls the 112 emergency number on its own and sends the car’s location. Since 31 March 2018 every new passenger car type approved in the European Union must have it (Regulation (EU) 2015/758 on the eCall system).

Each device sends small pieces of data to a server, and when the connection drops it usually stops working the way we expect. A parcel locker may not release your parcel, and a terminal may decline some payments.

The scale is huge. According to the Ericsson Mobility Report: IoT connections outlook, there were around 4.5 billion IoT connections on mobile networks alone at the end of 2025, with close to 8 billion expected by the end of 2031.

Waymo: a driverless taxi as an IoT device

The most amazing IoT device I have come across was a Waymo taxi from Google in San Francisco. You order a ride in an app, a white Jaguar with a spinning sensor on the roof pulls up, you get in, and the steering wheel turns by itself. The screen shows what the car sees: other cars, pedestrians and the route with your arrival time. The first few minutes are pure “wow”.

A white Waymo driverless taxi with sensors on the roof and by the wheel arches on a San Francisco street

Is it the Internet of Things at all? Yes, although the most important work happens inside the car. According to the Waymo: The Waymo Driver page, the car has lidar, cameras and radar that see all around it, and an onboard computer that uses them to recognise other cars and pedestrians and plan the drive in real time. It also uses highly detailed maps built in advance by sensor-equipped cars. So the car does not wait for a decision from the internet to brake for a pedestrian.

The internet connects it to the rest of the service:

  • the app takes your booking and sends a free car to you,
  • you in the app and the passenger on the in-car screen can see where the car is and when it will arrive,
  • when the car meets an unusual situation, it asks a Waymo team member for guidance but still does the driving itself (Waymo: Fleet response).

This is what my ride looked like:

It is the same pattern as a parcel locker or a GPS tracker: a device out in the world, an internet connection, a server and a map. The difference is the scale and how much the device can do on its own.

How did I get into IoT?

For the Ekstremalna Droga Krzyżowa (EDK), a night walk of several dozen kilometres, I work on the websites and apps, including the EDK route map. While working on it, I proposed something more: EDK Live, a live view of where each walker is right now. Families sleep better when they can watch a dot moving across the map.

I bought two GPS trackers and SIM cards, set them up and started testing. The project eventually stopped, but not because of the technology. That part turned out to be surprisingly simple. While looking for SIM cards for two trackers, I also saw how big the IoT market is and how many services exist for devices that send small amounts of data.

Two GPS trackers labelled 1 and 2 and a SIM card on a wooden table

What live GPS tracking is made of

Live tracking over a mobile network, whether of a person, a car or a city bike, needs four parts:

  1. A device with a GPS receiver and a modem. At set intervals it works out its position and sends it.
  2. A SIM card. It gives the device access to the mobile network.
  3. A server. It receives positions, stores them and makes them available.
  4. A map. It shows the last position and the route so far on a website or in an app.

A tracker message is tiny: device ID, time, latitude and longitude, sometimes speed and battery level. By my estimate, reporting once a minute through one night adds up to a few hundred kilobytes, not megabytes. The amount of data is rarely the problem. The cost depends more on how the operator bills, which is why the choice of SIM card matters so much.

The device: what to look for in a tracker

For my tests I chose the Queclink GL320MG. The manufacturer describes it on the Queclink GL320MG LTE-M Real-Time GPS Asset Tracker page as a device with LTE Cat M1 and NB-IoT connectivity, 2G fallback, and a battery that lasts 300 hours when reporting every 10 minutes. What won me over was that it is small, fits in a backpack pocket and charges quickly. Today the manufacturer already has a newer model in the same series, the Queclink GL330MG, which according to its description uses less power and adds Bluetooth and Wi-Fi. You will find the manufacturer’s full list of trackers on the Queclink: GPS Asset Trackers page. Teltonika makes devices in a similar class, such as the Teltonika ATM700. This is not a ranking. These are examples, and the right choice depends on the use case.

Check four things when you choose:

  • Battery life at your reporting interval. Manufacturers quote battery life for reports every 10 minutes or less often. Reporting every minute makes the battery last much shorter, and manufacturers rarely give an exact figure. Measure it yourself before the event: charge the device, set the target interval and leave it running for a full day.
  • Type of connectivity. Think about where the device will work: in a city, in a forest or in small villages where coverage can be weak. LTE-M and NB-IoT are flavours of mobile network designed for IoT devices. They use little power and reach further where coverage is weak (GSMA: Mobile IoT). LTE-M copes better with devices on the move, while NB-IoT suits devices that stay in one place. For a route through forests and villages, choose a device that supports several network types and switches by itself to whichever is available, for example from LTE-M to 2G. Avoid devices that only work on 2G or 3G. In Poland, Orange has switched off its 3G network (in Polish), and the other operators are doing the same or have already done it. 2G still works, but it will be phased out too.
  • Charging and casing. A USB-C port means a walker can charge the device with the same cable as their phone. Rain resistance matters when the device spends the night in a backpack.
  • Whether your software will understand the device. Every tracker manufacturer sends data in its own format. Someone has to handle that: you, the developer building your app, or a ready-made tracking server. Before you buy a device, check that the software you plan to use supports that model. More on this in the section on the server.

The SIM card: skip the phone contract

The first instinct is to buy a card from a local operator. It works, but multiply the monthly plan by the number of devices and the bill grows fast, while most of the data allowance goes unused.

That is why there are SIM cards built for IoT. Terms vary between providers, but some offer things that suit seasonal events: no activation fee, no long contract, no charge for a card that sent nothing that month, and one shared data pool for all devices. For an event that happens once a year, that makes a big difference. Before you sign, ask about the minimum charge per session and about LTE-M or NB-IoT coverage in the area where the devices will work.

The server: free software that supports hundreds of models

Here is good news for anyone thinking about their own solution. You do not have to write a server from scratch. Traccar is a free, open source GPS tracking server. According to the Traccar list of supported devices, it understands more than 200 protocols, meaning the ways different manufacturers’ trackers send data. The list includes the GL320MG and Teltonika devices.

Traccar also has something that solves the starting problem: the Traccar Client app for Android and iOS. Install it on an ordinary phone and the phone starts sending its position to the server just like a tracker. For the first test you need no hardware at all.

How do you show the data on a map?

The map is the only part of the whole system the user actually sees. It has two layers: the base map with roads, forests and towns, and the points with positions that come from the server. The EDK route map uses free, open maps based on OpenStreetMap data.

An EDK walker on a forest trail at night with a GPS tracker on the backpack sending a signal to a mobile network mast

You do not need to write a single line of code to start. Traccar has its own web panel that shows devices on a map straight away, with the route travelled and the time of the last reading. For a test, or for one coordinator watching over an event, that is enough.

When other people need to see the map, such as walkers’ families or customers waiting for a technician, it is better to build a separate, simple page. Every few seconds the page asks the server for the latest positions and moves the markers, and you decide what it shows:

  • the last position with the time of the reading, so it is clear when a device lost signal,
  • the route travelled against the planned route, so you can see straight away that someone has left the path,
  • only selected people, for example a family sees their own walker, not everyone.

Traccar can also send a notification when a device enters or leaves a defined area, for example when a walker reaches the finish. You can show other data on the same map too. I described that in the article on how we added railway stations to the EDK route map.

How to test the idea before you buy hardware

You can run the first test with an ordinary phone. Three steps are enough.

Step 1. Set up a trial server and map

An AI agent such as Claude Code, Codex or Grok can build all of it on your computer. A phone out on a walk has to reach the server on your computer somehow, so for the duration of the test the agent will expose it through a temporary, encrypted tunnel. I wrote about this in the article on exposing a local server safely. If this is your first time working with an agent, help from someone technical will be useful for the first run. Create an empty working folder and paste this instruction into the agent:

I want to find out whether live GPS tracking makes sense for my project.
In this folder, build a prototype I can run on my own computer:

1. A Traccar server running locally. Tell me the address a phone running
   Traccar Client should send its position to, and explain step by step
   how to set up the app.
2. A simple page with a MapLibre GL JS map and an OpenFreeMap base map
   that fetches the latest device positions from Traccar every 15 seconds
   and shows them as markers with the device name and the time of the last
   reading, with the route travelled underneath.
3. Credit the data sources on the map: OpenFreeMap and OpenStreetMap.
4. The phone will be outside my Wi-Fi network. Expose the server only for
   the test through Cloudflare Tunnel, protect the panel and the map with a
   password, do not store passwords in files and tell me how to shut the
   tunnel down after the test.

When you finish, tell me briefly: how to start the prototype, how to stop it
and what would need to change for it to work for 100 people at once.

Step 2. Go for a walk with your phone

Install Traccar Client, set it to report every minute, turn off Wi-Fi on the phone and go for an hour’s walk. Have someone else watch the map. You will see straight away how often the position refreshes, what happens where coverage is weak and how much battery the phone uses.

Step 3. Check it yourself before you show anyone

You are responsible for the result, not the agent. Before you show the prototype to anyone, check:

  • that the position on the map matches where you really were,
  • what the family sees when the device loses signal: the last known position with a time, not a dot pretending everything is fine,
  • who can see the map. A person’s location is personal data (GDPR, Article 4). Walkers must know who can see their position and how long you keep the data. Settle the legal basis. If you rely on consent, it has to be freely given and possible to withdraw.

Why EDK Live stopped and what I would do today

The technology worked. Logistics beat us. Devices had to be shipped to walkers before the event, then collected and checked. For a walk that starts the same night in many towns, that is a project of its own.

Today I would start with the phone. Walkers carry one anyway and the app costs nothing. The downside is the battery of a phone that is also used at night for navigation and for calling for help, so a power bank is a must. I would keep trackers as an extra for people who want them.

The same pattern works well beyond EDK. A trail race organiser, a company with field service teams, an equipment rental business, a carrier: they all need the same four parts.

Frequently asked questions

What is IoT, the Internet of Things?

IoT, the Internet of Things, means devices that connect to the internet on their own and send data without a person involved. Examples include parcel lockers, card terminals, electricity meters, EV chargers, city bikes and GPS trackers.

How does live GPS tracking work?

A tracker works out its position with GPS and sends it over a mobile network to a server at set intervals. The server stores the positions, and a website or app shows them on a map. You need four parts: a device with GPS, a SIM card, a server and a map.

Do I need to buy a GPS tracker to get started?

No. You can run the first test with an ordinary phone and the free Traccar Client app, which sends its position just like a tracker. A tracker makes sense when a phone is not good enough: the battery is too weak, the device has to be waterproof, or it travels with goods rather than a person.

How much data does a GPS tracker use?

Very little. One position is tens to a few hundred bytes. What drives the cost is how the operator bills, for example a minimum charge per session, more than the amount of data itself.

Which SIM card should I use for a GPS tracker?

Ideally a SIM card built for IoT devices rather than an ordinary phone plan. Some providers do not charge for a card that sent nothing that month, and all devices share one data pool.

What is the difference between LTE-M and NB-IoT?

Both are flavours of mobile network for IoT devices that use little power. LTE-M copes better with devices on the move, such as a tracker carried by a person or in a car, while NB-IoT suits devices that stay in one place, such as meters.

Is Waymo an IoT device?

Yes. A Waymo taxi drives itself using its sensors and onboard computer, but it connects over the internet to the rest of the service: it takes bookings from the app, shows where it is and when it will arrive, and asks a Waymo team member for guidance in unusual situations.

How long does a GPS tracker battery last?

It depends mainly on how often the tracker sends its position. The manufacturer of the Queclink GL320MG quotes up to 300 hours when reporting every 10 minutes. Reporting every minute makes the battery last much shorter, so measure it yourself before the event: charge the device, set the target interval and leave it running for a full day.

Will a free map cope with heavy traffic?

Usually yes. Free base maps built on OpenStreetMap, such as OpenFreeMap, which the EDK route map uses, have no limit on map views. For an event where a map outage is not acceptable, keep a backup base map or a paid service with an uptime guarantee.

Summary

The Internet of Things sounds like something for large companies, but in practice it is small devices sending very small amounts of data to a server. Live GPS tracking is a device, a SIM card, a server and a map, and you can build the server and the map on free software. Most of the work is around the technology: device logistics, battery life and the consent of the people whose location you show.

Do you have an idea for tracking devices, vehicles or people in your project? Get in touch and tell me what you want to track, how many devices you plan and where they will work. I will help you scope a first test that we can run in days, not months.

P.S. Thank you to Visuality for making my trip to the SF Ruby Conference in San Francisco possible. That is how I got to try Waymo first-hand :-)

Want to discuss this topic?

Let us turn the idea into a practical architecture and implementation plan.

Book a Consultation