1. Earth model: the WGS-84 ellipsoid
All coordinates are latitude and longitude on the World Geodetic System 1984, the datum GPS uses. The ellipsoid has a semi-major (equatorial) axis a = 6,378,137 m and flattening f = 1/298.257223563, which gives a semi-minor (polar) axis b = 6,356,752.314 m and first eccentricity squared e² ≈ 0.00669438. Where a spherical formula is needed, RadiusMapTools uses the IUGG mean radius R₁ = 6,371,008.8 m.
For mapping-scale work, WGS-84 and the North American Datum of 1983 (NAD 83) used in US records differ by about 1 to 2 meters. That is far below the precision of clicking on a web map but can matter when comparing with survey-grade coordinates.
2. Distances and bearings: Vincenty geodesics
Distances between two points are solved as the inverse geodesic problem with Vincenty's 1975 iterative formulas on the ellipsoid, accurate to about 0.5 mm on the model. The direct problem, finding the point at a given distance and bearing, is used to draw circles and to walk halfway along a geodesic. Vincenty's inverse method can fail to converge for nearly antipodal points; in that case RadiusMapTools falls back to a spherical great-circle formula and marks the result.
Charles Karney's 2013 geodesic algorithms, used by GeographicLib and by the NGS Inverse and Forward tool family, converge everywhere and serve as our reference. RadiusMapTools's test suite checks its Vincenty code against the classic Flinders Peak to Buninyong example from Vincenty's 1975 paper and against the antipodal fallback case. For distances people measure on RadiusMapTools, the two methods agree to well under a millimeter.
- Great-circle check: d = 2R · asin(√(sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2))).
- Spherical and ellipsoidal results differ by up to about 0.5 percent, enough to move a point across a regulatory line near the edge of a radius.
3. Circles, the antimeridian and the poles
A radius is drawn by solving the direct geodesic problem at evenly spaced bearings around the center, so every vertex lies exactly r meters away on the ellipsoid. The ring is then checked for crossings of the ±180° meridian. A crossing ring is split into two polygons that meet exactly at the line, following the GeoJSON recommendation in RFC 7946, so it displays and exports correctly near Fiji, the Aleutians or the Chukchi Sea.
If the radius exceeds the distance to a pole, the ring encloses the pole and is closed along the map edge on the correct side. Only after these steps is the geometry projected to Web Mercator for display, so screen distortion never affects the measurement.
4. Polygon area with holes
On a sphere of radius R, a polygon's area is its spherical excess times R²: A = (Σ interior angles − (n − 2)π) · R². RadiusMapTools computes the ellipsoidal equivalent. Each latitude is mapped through the WGS-84 authalic function q(φ), which places the ellipsoid on an equal-area cylinder; the shoelace formula on (λ, q) then returns the true ellipsoidal area of the ring. The result matches the spherical-excess area on the authalic sphere (radius 6,371,007.2 m) and accounts for the Earth's flattening.
Holes such as ponds, buildings or easements are computed the same way and subtracted from the outer ring, and the result is never allowed below zero. Rings that cross the antimeridian are unwrapped before summing. Areas are horizontal (planimetric), the convention used by deeds, tax records and USDA acreage reports; sloped ground has more surface area than its acreage.
5. Bundled datasets
ZIP areas: 33,798 rows. 33,791 are ZIP Code Tabulation Areas from the U.S. Census Bureau 2024 Gazetteer, each with its internal point and land area; 7 are postal-only points for the U.S. Virgin Islands and Guam, kept only where GeoNames reports high positional accuracy. City names and states are joined from GeoNames postal-code files. ZCTAs approximate USPS ZIP codes but exclude most PO-box-only and single-organization ZIPs.
Cities: 7,482 places from the GeoNames cities5000 file, keeping every place of at least 10,000 people in the United States (4,689), United Kingdom (1,256), Canada (768) and Australia (619), plus 150 world cities of at least one million residents, with names of states and provinces from GeoNames first-level divisions. Boundaries: 177 country outlines from Natural Earth 4.1.0 at 1:110 million scale via the world-atlas 2.0.2 TopoJSON package, and 56 US states and territories from Census 2017 cartographic boundary files via us-atlas 3.0.1. The true-size tool also carries a 233-row area table for those shapes.
Every source file's SHA-256 checksum is recorded at build time, so a dataset change is always deliberate and traceable. Census and Natural Earth data are public domain; GeoNames data is used under CC BY 4.0; OpenStreetMap data under the ODbL.
6. The FMCSA 150 air-mile radius
Under 49 CFR §395.1(e)(1), a driver qualifies for the short-haul exception when operating within a 150 air-mile radius of the normal work reporting location and meeting the 14-hour, off-duty and recordkeeping conditions. An air mile is a nautical mile of exactly 1,852 m, so the radius is 150 × 1,852 = 277,800 m, which is 172.617 statute miles or 277.8 km. The regulation itself states the figure as 172.6 statute miles.
RadiusMapTools draws this radius with the geodesic direct method and tests individual stops with the inverse method from the exact terminal address. Results near the line should be confirmed with the precise addresses; RadiusMapTools is a planning aid, not a compliance determination.
7. Routing, isochrones, geocoding and elevation
Road routes, driving distances and times come from an OSRM routing engine on OpenStreetMap data. Drive-time areas (isochrones) come from a Valhalla routing engine on the same data. Address search and reverse lookup use the Photon geocoder built on OpenStreetMap, with a small built-in gazetteer as fallback. Elevation comes from the USGS Elevation Point Query Service (3DEP data) in the United States and from the Open-Meteo elevation API, based on the Copernicus GLO-90 model, elsewhere.
All of these requests pass through RadiusMapTools's server-side proxy, which forwards only the query itself, never your IP address, and keeps no per-user history; identical queries may be answered from a shared cache for up to 24 hours, or 7 days for elevation, which rarely changes. When an upstream service fails, tools show a clearly labeled estimate instead of a fake result: routes become straight-line distance × 1.3 at 45 mph for driving (× 1.25 at 3 mph walking, 12 mph cycling), and isochrones become geodesic circles at 30, 10 or 3 mph.
8. Multi-stop route ordering
The route planner builds a matrix of WGS-84 geodesic distances between up to 25 stops, seeds a route with the nearest-neighbor rule, and improves it with 2-opt: whenever reversing the stops between two legs shortens the route, the reversal is kept, for up to 200 passes or until no improvement remains. Fixed-start, fixed-end and round-trip constraints are respected. This runs entirely in the browser and typically finishes in milliseconds.
2-opt is a heuristic. It removes crossing legs and usually lands within a few percent of the optimal order for daily routes, but it does not prove optimality and does not model time windows, vehicle capacity or live traffic.
9. Browser geolocation and its limits
Tools that use your position call the HTML5 Geolocation API, which works only on secure (HTTPS) pages and only after you grant permission. The browser returns latitude, longitude and an accuracy radius that the W3C specification describes at 95 percent confidence, while Android's platform API documents its own accuracy figure at 68 percent. Altitude, when present, is height above the WGS-84 ellipsoid, not above sea level.
Under open sky, phones are typically accurate to about 5 m. Indoors, among tall buildings or on laptops without GPS chips, the browser may rely on Wi-Fi, cell towers or IP address, with errors from tens of meters to several kilometers. RadiusMapTools always shows the reported accuracy so you can judge a result.
10. Known limitations and corrections
Map imagery can be offset by a few meters from true coordinates. ZIP matching by nearest internal point is an approximation near boundaries. City populations from GeoNames can lag the latest census. Simplified 1:110m outlines understate the official areas of countries with many islands. Free-flow travel times ignore live traffic.
If you find a result that disagrees with an official source, email support@radiusmaptools.com with the inputs you used. We recompute, publish the correction and update the date on this page.
References
- NGA — World Geodetic System 1984 (WGS 84) Definition of the ellipsoid and reference frame.
- NOAA National Geodetic Survey — Inverse and Forward geodetic tool Official reference implementation for geodesic checks.
- U.S. Census Bureau — ZIP Code Tabulation Areas (ZCTAs) How ZCTAs are defined.
- eCFR — 49 CFR §395.1 Scope of rules Text of the 150 air-mile short-haul exception.
- IETF — RFC 7946, The GeoJSON Format Coordinate order and antimeridian splitting rules.
- GeoNames — data exports City and postal place names (CC BY 4.0).