RangeCalc - Full Triangulation Edition
A modern, offline-capable Progressive Web App (PWA) for calculating range to a target using two compass bearings.

✨ Features
- Simple Mode — Fast calculation using the classic cotangent method
- Full Triangulation Mode — More accurate calculation using Law of Sines
- Baseline Bearing Input — Maximum accuracy when you provide the direction from Ref1 to Ref2
- Responsive Modern UI — Works great on phones and tablets
- Dark / Light Mode — Automatic or manual toggle
- Calculation History — View previous results
- Offline Support — Installable as a real app (PWA)
- No Installation Required — Works directly in any modern browser
How to Use
- Open the app in Chrome (or any modern browser)
- Enter:
- Bearing from Ref One to Target
- Bearing from Ref Two to Target
- Baseline Distance (meters)
- Choose calculation method:
- Simple → Quick field estimate
- Full Triangulation → Enter Baseline Bearing (direction from Ref1 → Ref2) for best accuracy
- Tap Calculate
- View results from both reference points + angle at target
Installation (Recommended)
As a Progressive Web App (PWA)
- Open the app in Chrome on your Android phone
- Tap the three-dot menu → “Add to Home screen” (or “Install app”)
- Name it “Range Calculator” and tap Add
The app will now appear as a native-like icon on your home screen and works offline.
Files
index.html — Single-file standalone version (recommended)
styles.min.css — (Optional) Custom styling
Technical Details
- Built with HTML5 + Bootstrap 5 + Vanilla JavaScript
- Uses Law of Sines for Full Triangulation
- Fully client-side (no server or data collection)
- Progressive Web App (PWA) with service worker for offline use
Author
John Dovey
License
This project is open source and free to use. Feel free to modify and distribute.
If you find it useful in the field, consider donating via PayPal — every bit helps!
Screenshots
Made with ❤️ for field use, surveying, and outdoor enthusiasts.