Chengdu Shuwei Communication Technology Co., Ltd.
Chengdu Shuwei Communication Technology Co., Ltd.
blog
Home / blog /

Company Blog About Lorawan Gateways Gain Advanced Mapping Realtime Tracking

Lorawan Gateways Gain Advanced Mapping Realtime Tracking

2026-07-09
Lorawan Gateways Gain Advanced Mapping Realtime Tracking

Have you ever wondered where those ubiquitous LoRaWAN gateways are hiding in your city, or whether they maintain a steady digital heartbeat? Imagine standing in the open Dutch countryside on a clear afternoon, where the horizon stretches uninterrupted. Now picture a magical map revealing not just the precise locations of every LoRaWAN gateway, but visually representing their antenna heights through proportional markers.

This isn't science fiction, but an innovative visualization created by developer Bertrik using the Packet Broker API. By transforming gateway listings into GeoJSON format and leveraging Leaflet.js with custom JavaScript, he built an interactive web application that brings LoRaWAN infrastructure to life.

From Static Locations to Dynamic Status

The visualization goes beyond simple mapping. Hovering or clicking any gateway marker triggers real-time data retrieval from Packet Broker API, displaying current operational status (online/offline), last update timestamp, and transmission/reception rates (TxRate/RxRate). This lightweight implementation requires only a static GeoJSON file and Leaflet JavaScript—distinct from The Things Network Mapper's coverage visualization by focusing on gateway activity rather than signal range.

Technical Challenges in Data Integration

The project soon faced integration hurdles when attempting to incorporate gateway data from The Things Stack (TTS) Cloud. While Packet Broker API theoretically supports multi-tenant access, practical implementation revealed structural inconsistencies. The JavaScript parser expected mandatory RxRate/TxRate fields—data that some TTS Cloud gateways either don't provide or transmit with different formatting.

Missing rate values caused parsing failures that cascaded into broader data loading issues. Bertrik acknowledged the need for code adjustments to handle these edge cases, while clarifying this remains an experimental demonstration rather than production-grade service.

The Protobuf Paradox

Developers hypothesized that the missing fields might stem from Google Protocol Buffers' (Protobuf) efficiency mechanisms. When serializing data, Protobuf omits fields with zero values or undefined states—an optimization that reduces payload size but creates compatibility challenges for parsers expecting fixed JSON structures.

Visibility and Data Sharing Policies

Gateway visibility in TTS Cloud depends heavily on tenant configurations. Some operators restrict rate information sharing for privacy or competitive reasons, while others don't expose gateways through Packet Broker at all. Achieving comprehensive visualization therefore requires navigating technical limitations alongside data-sharing policies—a delicate balance between transparency and protection in IoT ecosystems.

The Future of Network Visualization

This project demonstrates how generic tools like GeoJSON and Leaflet.js can transform obscure API data into actionable geographical intelligence. Future developments could incorporate additional metrics—gateway load balancing, historical performance analytics, or user-reported quality assessments—further democratizing access to network diagnostics that traditionally required specialized expertise.

Such visualizations represent crucial steps toward making complex IoT infrastructure comprehensible to broader audiences, empowering developers, enthusiasts and enterprises alike to collaboratively build smarter connected environments.

Google Analytics -->