In-House RTK/NTRIP Correction Service for GNSS
An in-house RTK/NTRIP correction service delivering centimeter-level GNSS positioning to field devices.

- cmlevel positioning
- 131automated tests
Context
At a construction-tech company building quality-control hardware and software for utility-scale solar farms, our GNSS pile-measurement device needs centimeter-level accuracy to tell whether a pile is in the right place. That accuracy depends on RTK corrections, delivered over the NTRIP protocol.
The challenge
We relied on a free third-party NTRIP caster. It worked, but it was a single point of failure we did not control: no say over availability, no fine-grained access for our own devices and no clean way to manage credentials per customer or site.
For a product whose core promise is measurement accuracy, positioning infrastructure had to be ours.
What I built: an NTRIP proxy with per-mountpoint access control
An in-house RTK correction service made of two parts.
NTRIP proxy with an admin API (Python, FastAPI, PostgreSQL, Docker):
- Relays correction streams from upstream sources to field devices.
- Stores upstream credentials encrypted with AES-256-GCM.
- Enforces per-mountpoint access control, so each device or account only reaches the streams it is allowed to use.
- Exposes an admin API to manage users, mountpoints and permissions.
- Serves encrypted NTRIP over TLS for modern rovers and plain NTRIP for the 4G field devices.
- Hardened for real field conditions: TCP keepalive, an idle watchdog on the data direction and cleanup of ghost rover sessions.
Management UI (React, Tailwind, shadcn/ui):
- A separate application for operating the service day to day, with a live map of base stations and rovers and a real-time RTCM/NMEA monitor.
- Designed so the upstream token never reaches the browser: all sensitive calls go through the backend.
- Covered by Playwright end-to-end tests, including a full stack run against an emulated NTRIP base.
Impact: centimeter-level positioning backed by 131 automated tests
- Went from first commit to production in weeks and removed the dependency on a free external caster for a business-critical function.
- 131 automated tests protect the service.
- Gave the team direct control over who can access which correction streams.
- Kept credentials encrypted at rest and out of the client side.
My role
I was the main author. I designed the architecture and the security model — encryption, access control and keeping secrets server-side — implemented the proxy and admin API, and set up the management UI and its end-to-end test suite.

