Technology·15 min read

How to Build an Asset Tracking IoT App With Real-Time GPS

Off-the-shelf asset tracking tools force you into rigid workflows and charge per-device fees that balloon as you scale. Here is how to build a custom IoT tracking platform that fits your operations and actually pays for itself.

Nate Laquis

Nate Laquis

Founder & CEO

Why Custom Asset Tracking Beats Off-the-Shelf Solutions

The global asset tracking market is projected to exceed $36 billion by 2028, according to Fortune Business Insights. Vendors like Tile, Apple AirTag, Tracki, and CalAmp dominate the consumer and small-business segments. They work fine for finding luggage or tracking a handful of company laptops. But the moment you manage thousands of construction tools across job sites, monitor cold-chain pharmaceutical shipments, or track returnable containers across a multi-warehouse logistics network, those products fall apart.

Generic trackers fail for three reasons. First, proprietary hardware with monthly per-device fees becomes punishing at scale. Tracking 5,000 pallets at $8/month/device is $480,000 per year. Second, shallow integration. Your ERP, WMS, and dispatch platform need real-time asset data, but most trackers expose basic APIs with rate limits that throttle serious automation. Third, surface-level analytics. You get a dot on a map, not utilization rates, dwell-time analysis, or predictive maintenance signals.

Building a custom asset tracking IoT app gives you control over hardware selection, data ownership, and integration depth. The per-unit economics flip in your favor once you pass a few hundred tracked assets. Custom tracking software also becomes proprietary IP that compounds in value as you train models on your own operational data.

Global network visualization representing IoT asset tracking infrastructure and GPS connectivity

Choosing the Right IoT Hardware for Asset Tracking

Hardware selection is the most consequential early decision. The right tracker depends on what you are tracking, where it moves, and how often you need updates.

GPS Trackers for Mobile Assets

GPS trackers are the default choice for assets that move outdoors: vehicles, trailers, heavy equipment, shipping containers, and rental machinery. Modern GPS modules from Queclink (GL300MA, GL520), CalAmp (LMU-3640), and Teltonika (FMB920, FMC130) provide 2.5-meter accuracy under open sky. They combine GPS with GLONASS and Galileo satellite constellations for faster fixes and better coverage in urban canyons.

For unpowered assets like trailers and containers, battery-powered GPS trackers are essential. Expect 1 to 5 years of battery life depending on reporting frequency. A tracker pinging once per hour can last 3+ years on a single lithium-thionyl chloride battery. Bump that to every 5 minutes and you are looking at 6 to 12 months.

BLE Beacons for Indoor and Yard Tracking

GPS does not work indoors. For warehouses, factories, and hospitals, Bluetooth Low Energy (BLE) beacons provide zone-level tracking at a fraction of the cost. Beacons from Kontakt.io, Estimote, and Minew cost $5 to $25 per unit with 2 to 5 year battery life. They broadcast their identifier to nearby gateways, and your software triangulates position based on signal strength (RSSI). Accuracy ranges from 1 to 3 meters with dense gateway deployments to 5 to 10 meters in typical setups. For sub-meter indoor accuracy, look at Ultra-Wideband (UWB) tags from Decawave or Sewio, though these cost 3x to 5x more per tag.

LoRaWAN Sensors for Wide-Area, Low-Power Tracking

LoRaWAN sits between GPS and BLE. It provides kilometer-range connectivity with extremely low power consumption, ideal for assets spread across large campuses, ports, and rural areas. A single gateway covers 2 to 10 km in urban environments and up to 15 km in rural conditions. Sensor modules from Dragino, Browan, and Digital Matter cost $20 to $60 and last 5+ years on AA batteries.

The catch: LoRaWAN provides coarse location via gateway triangulation (50 to 200 meter accuracy) unless combined with onboard GPS. For many use cases, knowing that equipment is at "Job Site B" is perfectly adequate. Use LoRaWAN for presence detection, then layer GPS only on high-value mobile assets where precise coordinates matter.

Hybrid Hardware Strategies

Most real deployments combine all three technologies. A logistics company might use GPS trackers on trailers, BLE beacons on pallets inside distribution centers, and LoRaWAN sensors on returnable containers. Your software should abstract the hardware layer so an asset shows up on the map with a position, a last-seen timestamp, and a confidence radius regardless of the underlying tracking technology.

Connectivity Options: Cellular, Satellite, and LPWAN

Your tracker is only as good as its ability to send data back to your servers. Connectivity decisions affect cost, coverage, and power consumption. Match the connectivity layer to your asset's environment and movement patterns.

Cellular (LTE-M and NB-IoT)

LTE Cat-M1 and NB-IoT are purpose-built for IoT devices. They offer wide coverage piggybacking on existing LTE towers, low power consumption, and monthly data costs of $1 to $5 per device through MVNO providers like Hologram, Soracom, or 1NCE. LTE-M supports tower handoff for mobile assets. NB-IoT is optimized for stationary assets with infrequent updates. If your assets operate exclusively in metro areas, cellular is the clear choice. If they travel through rural corridors or spend time in RF-hostile environments (underground, inside metal containers), you need a fallback.

Satellite Connectivity

For assets with zero cellular coverage (mining operations, maritime shipping, remote agriculture), satellite fills the gap. Globalstar, Iridium, and Swarm (acquired by SpaceX) offer IoT-specific satellite modems. Swarm's $5/month data plan has made satellite tracking viable for mid-market companies. Latency is higher and bandwidth is severely limited, so satellite connections should transmit only essentials: GPS coordinates, battery level, and critical alerts.

LPWAN (LoRaWAN and Sigfox)

If you control the physical environment, deploying your own LoRaWAN network with gateways from RAK Wireless or Kerlink gives you zero per-device data costs after the upfront gateway investment. The Things Network (TTN) provides a community-operated LoRaWAN network in many urban areas. For new deployments, LoRaWAN is the safer bet over Sigfox given its open standard and broader ecosystem.

The best architectures use cellular as the primary path with LoRaWAN or satellite as secondary. The device attempts cellular first. If it fails to connect within a timeout window, it falls back to the alternative.

Mobile devices displaying real-time IoT asset tracking and GPS location data

Real-Time Data Ingestion Architecture

Your platform ingests a continuous stream of location pings and sensor readings from thousands of devices. The architecture must handle bursty traffic, tolerate disconnections, and deliver data with minimal latency.

MQTT as the Device Protocol

MQTT is the de facto standard for IoT telemetry. It is lightweight (2 bytes of overhead per publish), supports three QoS levels, and handles intermittent connectivity with persistent sessions and retained messages. Devices publish to topics like tracking/{orgId}/asset/{assetId}/location. Use AWS IoT Core, Azure IoT Hub, or HiveMQ Cloud as your managed broker. Self-hosting Mosquitto or EMQX works for smaller deployments but adds operational burden.

Stream Processing Layer

Raw MQTT messages flow into a stream processor that handles validation, enrichment, and routing. Apache Kafka is the industry standard, but for most asset tracking apps, AWS Kinesis or Redis Streams offers sufficient throughput with less operational complexity. Your stream processor should validate payloads, enrich location data with reverse geocoding (Mapbox or Google Geocoding API), detect geofence enter/exit events, calculate derived metrics like speed and heading from consecutive points, and route events to downstream consumers (database writers, notification services, analytics pipelines).

Storage Architecture

You need three storage layers. A hot cache (Redis or DragonflyDB) stores the latest position for every asset, powering your live map with sub-millisecond lookups. A time-series database (TimescaleDB, InfluxDB, or ClickHouse) stores full location history with efficient range queries. A relational database (PostgreSQL with PostGIS) stores asset metadata, geofence definitions, and alert configurations. PostGIS enables spatial queries like "find all assets within 500 meters of this warehouse" using GiST-indexed geometry columns.

Scaling Considerations

At 10,000 assets reporting every 30 seconds, you process roughly 333 messages per second and store about 29 million location records per day. That is well within the capacity of a single Kafka partition. At 100,000 assets, you hit 3,300 messages/second and 288 million records/day. Now you need partitioned Kafka topics, a TimescaleDB cluster or ClickHouse, and careful index management. Plan your architecture for 10x your current asset count.

Geofencing, Alerts, and Automated Workflows

Geofencing transforms raw location data into actionable intelligence. Define boundaries and rules, and the system tells you when something needs attention.

Geofence Types and Implementation

Support three geofence shapes at minimum. Circular geofences (center point plus radius) cover 80% of use cases. Polygon geofences handle complex boundaries like warehouse footprints and restricted zones. Corridor geofences (a polyline with a buffer width) monitor whether assets follow expected routes. Store geometries in PostGIS and evaluate positions using ST_Contains and ST_DWithin. With GiST spatial indexing, PostGIS handles tens of thousands of evaluations per second.

Alert Rules Engine

Build a configurable rules engine that lets operations managers create alert conditions without developer involvement. Common alert types include geofence entry/exit ("Forklift 12 left Warehouse B at 11:47 PM"), motion detection ("Generator #4 moved outside business hours"), dwell-time violations ("Trailer at the dock for over 4 hours"), battery warnings ("Asset X below 15%"), temperature excursions for cold-chain tracking, and connectivity loss ("No data from Asset Y for 6 hours"). Each rule should specify the condition, notification channels (push, SMS via Twilio, email, webhook to Slack or PagerDuty), the recipients, and a cooldown period to prevent alert fatigue.

Automated Workflow Triggers

Go beyond notifications. When an asset enters a geofence, automatically update its status in your WMS or ERP. When rental equipment leaves a job site, start the billing clock. When a delivery vehicle arrives at a customer, trigger proof-of-delivery. These automations eliminate manual status updates that your team forgets or enters hours late. If you are building a broader fleet management GPS app, geofence-triggered automations become the backbone of dispatch and billing.

Battery Management for Remote and Unpowered Assets

Battery life is the single biggest constraint for tracking unpowered assets. A GPS tracker with a dead battery is an expensive piece of plastic. Hardware, firmware, and software all need to prioritize power efficiency.

Power-Efficient Reporting Strategies

The most effective approach is adaptive reporting. When an asset is stationary (detected via accelerometer), reduce GPS reporting to once per hour or once per day. When motion is detected, switch to 30-second or 1-minute intervals. This alone extends battery life by 5x to 10x compared to fixed-interval reporting. Some trackers support "store and forward" mode, collecting GPS fixes locally and transmitting in batches to reduce radio on-time.

Modern low-power GPS chipsets from Sony (CXD5610GF) draw under 25mA during acquisition and get a fix in under 2 seconds with assisted GPS (A-GPS). Older modules draw 40 to 60mA and take 30+ seconds for a cold start. The chipset choice alone can double your battery life.

Battery Monitoring and Predictive Replacement

Your software should track battery voltage over time for every asset. Build a predictive model that estimates remaining life based on current voltage, historical drain rate, and reporting frequency. Generate proactive replacement alerts 2 to 4 weeks before expected depletion. Display battery health with clear visual indicators (green above 50%, yellow at 20 to 50%, red below 20%) and group assets by battery status so technicians can plan efficient replacement routes.

Solar and Energy Harvesting

For outdoor assets (trailers, containers, construction equipment), solar-powered trackers eliminate battery replacement entirely. Digital Matter's Oyster3 Solar and CalAmp's solar-equipped trackers include small photovoltaic panels that keep a rechargeable battery topped up. Budget $80 to $150 per unit versus $30 to $60 for battery-only trackers. The premium pays for itself within a year when you factor in the labor cost of battery replacements at scale.

Mapping, Visualization, and the User Experience

The map is the centerpiece of any asset tracking app. Get it wrong and adoption suffers regardless of how solid your backend is.

Mapping Platform Selection

Mapbox and Google Maps Platform are the two serious options. Mapbox gives you more customization: custom map styles, smooth vector tile rendering, and competitive pricing at scale (charged per map load, not per marker). Google Maps offers familiarity and the best geocoding data globally. For most asset tracking apps, Mapbox is the better fit because you will want custom layer styling for different asset types, heatmaps, and styled geofence overlays.

Clustering and Performance

Rendering 10,000 markers simultaneously will choke any browser. Implement clustering that groups nearby assets at low zoom levels and reveals individual assets as users zoom in. Supercluster (open-source from Mapbox) handles this client-side for up to 50,000 points. Beyond that, push clustering to the backend using PostGIS ST_ClusterKMeans. Each cluster marker should display the count and a color indicating aggregate status.

Key Visualization Features

Beyond the live map, build these views. A trip replay feature lets users scrub through an asset's location history on a timeline, watching it move across the map. A heatmap view shows where assets spend the most time, revealing utilization patterns. A list view with sortable columns (asset name, last seen, battery, zone, status) serves users who prefer tabular data. A dashboard with KPI cards (total assets, assets in motion, alert counts) gives managers an at-a-glance operational picture.

If your tracking app feeds into a broader smart home or IoT ecosystem, maintain consistent design patterns for sensor data visualization across platforms. Users should not have to relearn how to read a temperature graph or battery gauge every time they switch between apps.

Dashboard analytics interface showing real-time asset tracking data and performance metrics

Warehouse vs. Fleet vs. Equipment: Tracking Patterns That Differ

Asset tracking is three related but distinct problems, and your architecture needs to accommodate all of them.

Warehouse and Indoor Tracking

Warehouses care about zone-level accuracy: which aisle, which bay, which staging area. BLE beacons on assets and gateways mounted on ceilings provide this with 10 to 30 second update intervals. The biggest challenge is RF interference from metal racking and concrete. Plan for a site survey and budget 1 gateway per 500 to 1,000 square feet.

Warehouse tracking integrates tightly with your WMS. When a pallet enters the "Outbound Staging" zone, the system verifies it matches a pending shipment. This closed-loop feedback eliminates cycle counting and manual scans that consume warehouse labor.

Fleet and Vehicle Tracking

Fleet tracking requires continuous outdoor GPS with cellular connectivity, frequent updates (5 to 30 seconds), and hardwired power. The data model is richer: beyond location, you capture engine diagnostics via OBD-II, driver behavior metrics, and fuel consumption. Fleet tracking apps need trip detection (segment continuous movement into discrete trips), driver assignment via ID fobs or app login, and maintenance scheduling based on mileage thresholds. For a deeper dive into fleet-specific features, see our guide on building a fleet management GPS app.

Equipment and Tool Tracking

Construction tools, medical devices, and rental equipment present a unique challenge: they spend most of their time stationary, move unpredictably, and often lack power sources. Battery-powered GPS with motion-activated reporting is the standard approach. You need check-in/check-out tracking, utilization analysis (what percentage of time is this $50,000 piece of equipment actually in use), maintenance scheduling, and depreciation tracking tied to usage hours. The key value proposition is not real-time location but knowing where everything is and whether it is being used, returned, and maintained properly.

Data Retention, Analytics, and Long-Term Value

The historical location data you accumulate becomes a strategic asset for optimizing operations and reducing costs.

Data Retention Strategy

Raw GPS pings at 30-second intervals generate roughly 2,880 records per asset per day. At 5,000 assets, that is 14.4 million records daily. You cannot keep all of it at full resolution forever. Implement a tiered retention policy: raw data for 90 days, downsampled to 5-minute intervals for 90 days to 1 year, hourly summaries for 1 to 3 years, and daily summaries indefinitely. TimescaleDB's continuous aggregates or ClickHouse's materialized views automate this downsampling.

Operational Analytics

Surface these analytics in your dashboard. Asset utilization rates show what percentage of your pool is actively in use versus idle or unaccounted for. Most companies discover 20 to 30% of tracked assets are underutilized. Dwell-time analysis reveals how long assets spend at each location, highlighting bottlenecks. Route efficiency scoring compares actual travel paths against optimal routes. Geofence activity reports show throughput at key locations: arrivals, departures, average time on site, and peak activity periods.

Predictive Insights

With 6 to 12 months of historical data, you can build predictive models. Forecast equipment failures based on usage patterns and maintenance history. Predict demand for assets at specific locations based on seasonal trends. Identify theft risk by scoring assets based on location, time of day, and historical theft patterns. These models do not require complex ML infrastructure. A well-tuned gradient-boosted tree running on your existing data warehouse handles most predictive use cases for asset tracking.

Cost Justification and ROI

Quantifying ROI is critical for ongoing investment. Track these metrics: reduction in lost or stolen assets (most companies see 30 to 50% decrease in the first year), improved asset utilization, reduction in unauthorized after-hours activity, labor savings from automated check-in/check-out, and maintenance cost reduction from usage-based scheduling. For a detailed breakdown of financial considerations, review our analysis on how much it costs to build a mobile app to frame your tracking platform's budget against industry benchmarks.

Timeline, Team, and Getting Started

Building a production-ready asset tracking IoT app is a 4 to 8 month effort. Here is a realistic breakdown.

Weeks 1 to 4: Hardware evaluation and connectivity setup. Order evaluation kits from 2 to 3 vendors (Queclink, Digital Matter, Teltonika for GPS; Kontakt.io or Minew for BLE). Set up your MQTT broker and build the device onboarding flow. Validate GPS accuracy, battery life claims, and connectivity reliability in your actual environment. Do not skip field testing.

Weeks 5 to 10: Core platform development. Build the data ingestion pipeline, storage layers, live map, and basic geofencing. You need 2 to 3 backend engineers comfortable with MQTT and geospatial databases, plus 1 to 2 frontend engineers for the map interface. A mobile developer joins if you need a companion app for field workers.

Weeks 11 to 16: Alert engine, analytics, and integrations. Build the rules engine, notification system, and analytics dashboards. Integrate with existing systems (ERP, WMS, dispatch, billing). This phase is driven by your specific operational requirements.

Weeks 17 to 20: Pilot deployment and iteration. Deploy tracking hardware to a subset of assets (100 to 500 units). Gather feedback from field operations and managers. Fix the issues that only surface in production: GPS drift in urban canyons, connectivity dead zones, alert rules that fire too often. The insights from pilot users are worth more than months of spec-driven development.

Weeks 21 to 32: Full rollout and scale. Expand to your full asset base. Monitor system performance under production load and refine analytics models with real operational data.

Working with a team that has built IoT tracking platforms before will cut weeks off your timeline and help you avoid pitfalls that derail first-time builds. Book a free strategy call and let's scope out what your asset tracking platform should look like.

Need help building this?

Our team has launched 50+ products for startups and ambitious brands. Let's talk about your project.

build asset tracking IoT app GPSasset tracking appIoT GPS trackingfleet trackingreal-time location tracking

Ready to build your product?

Book a free 15-minute strategy call. No pitch, just clarity on your next steps.

Get Started