Quoting a fence is easy if the boundary is a straight line on paper. On real ground — uneven, sloped, fenced in 2010 and moved twice since — it isn't. FenceHub is my answer: walk the boundary with your phone, and get the area and perimeter numbers your quote depends on. This post is about the measurement pipeline, which is where the whole product lives.
The capture experience
The app is an Expo / React Native client organized into five tabs — Dashboard, Projects, Measure, Docs, and More — with an auth group for login and onboarding. The Measure screen is the heart:
- Two capture modes: Walk (continuous GPS trace as you move) and Corners (tap at each vertex) — because sometimes you pace the line, and sometimes you drive it
- Draft resume, undo, and discard, so a dropped phone or a wrong turn never costs a full boundary walk
- An accuracy gate (default 20 m maximum error) with 1 m minimum point spacing and a poor-signal skip counter — the app refuses to record points it doesn't trust
- A live SVG shape preview with GPS signal arcs, so the operator sees the fence forming as they walk
- A confidence badge (High / Medium / Low) stamped on every saved measurement
The math
Area is computed with the equirectangular projection + shoelace formula; perimeter uses haversine distances. Neither is fancy — they're the right tools for kilometer-scale boundaries at phone-GPS precision, and both run on-device.
Offline-first by necessity
Fencing sites in Zimbabwe don't promise signal. Core capture has no dependency on map tiles or network: drafts persist in Zustand on-device, and saved measurements sync to the server when connectivity allows. The Express 5 + Prisma 7 backend (deployed on Vercel) handles clients, projects, and the mobile auth/sync contract.
42 releases of discipline
The design language — cards, StatusBadge components, a lime primary, Manrope and Sora type, a floating tab bar — stayed stable while the pipeline improved underneath. Every release is a versioned APK on GitHub Releases (v3.1.01 through v3.1.42), each one cut for real users walking real fences. Release notes over vibes: that's the whole methodology.