star-geodesic 0.1.0
Distance and azimuth on the WGS-84 ellipsoid
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Inverse and direct geodesic problems on WGS-84 with bounded iterations: measured within 0.08 mm of PROJ, GeographicLib and PyGeodesy; nearly antipodal points are refused, an unconverged value is never returned.
Run in your browser
Edit the code and press Run (or Ctrl+Enter). Python runs in your browser with this package's published code. The first run downloads Python once (about 12 MB).
Runs in the browser: all 29 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026. Open it in the Workspace →
Use it on your computer
No account and no GitHub needed. Download, then install with one command:
- Install file · star_geodesic-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_geodesic.py 7 kB
- Source code (.zip) 19 kB
python -m pip install star_geodesic-0.1.0-py3-none-any.whlIn Python: import star_geodesic
Cite it, and its bill of materials
For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.
@software{cavazzini_star_geodesic_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-geodesic}: Distance and azimuth on the WGS-84 ellipsoid},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_geodesic/},
note = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}
For developers
Install directly from the public repository:
python -m pip install "star-geodesic @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_geodesic"
Technical sheet
Requirements
- R1
inverse(lat1, lon1, lat2, lon2): geodesic length in metres and its azimuth at both ends in the direction of travel (degrees from North towards East, in [0, 360)). Reproduces the published line Flinders Peak - Buninyong (54972.271 m) within 0.2 mm and 0.004 arcsec. - R2
direct(lat1, lon1, azimuth1_deg, distance_m): latitude, longitude in [-180, 180) and azimuth at the point reached, for distances from 0 to 20 000 km. - R3 Measured against PROJ, GeographicLib and PyGeodesy (exact) on 840 problems: distance within 0.08 mm at any length, 2 nm below 1 km; azimuth within 0.0003 arcsec; direct position within 0.07 mm. Two iterations are run after the 1e-12 rad tolerance is met: without them a 0.7 m line was 2.7 micrometres off.
- R4 Every call returns three finite floats or raises:
ValueErrorfor non-numeric, boolean, NaN, infinite input, latitude outside [-90, 90], longitude or azimuth outside [-360, 360], distance outside [0, 20 000 km];RuntimeErrorfor antipodal points (the geodesic is not unique) and when the iteration does not converge within 200 steps (nearly antipodal points). An unconverged value is never returned. Coincident points give (0, 0, 0).
Limits (what is not claimed)
Vincenty's method, not Karney's: points closer than about half a degree to the antipode are refused, not solved (the 40 pairs within 2 degrees of the antipode in the corpus all converged). No geoid, no height: lines on the ellipsoid.
Release gate
Computed by the registry from the result files, with the same function that decides RELEASED.
- Mutation score, latest measure of each module (needs at least 0.850)
- star_geodesic.py 0.908 (2026-10-06)
- Independent implementations written by others (needs 2)
- GeographicLib (Python port), PROJ geodesic routines (C) through pyproj, PyGeodesy GeodesicExact (elliptic integrals)
- Also compared with, not counted
- published values: Flinders Peak - Buninyong published line
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Unit tests | VERIFIED | 2026-10-06 | 29 passed in 0.39s |
| Review | VERIFIED | 2026-10-06 | Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed |
| Review | VERIFIED | 2026-10-06 | Re-running the cross-check gives a byte-identical evidence file |
| Reference value | VERIFIED | 2026-10-06 | distance within 1.4e-4 m, azimuths within 0.0032 arcsec; direct problem reaches Buninyong within 1.2e-4 arcsec (suite: 29 passed in 0.39s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_geodesic agrees with three independent geodesic implementations over the whole globe |
| Benchmark | VERIFIED | 2026-10-06 | max distance difference from PROJ by length: <1 km 2.1e-09 m, <100 km 5.3e-08 m, <19000 km 7.3e-05 m, <5000 km 2.8e-05 m, >=19000 km 7.4e-05 m |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 29 passed in 0.18s |
Fingerprints (SHA-256)
| star_geodesic-0.1.0-py3-none-any.whl | bab23ff165623de1b2eec4669b077ec72151ab4cc7ba53a57c5e63aa9045fb9e |
| star_geodesic.py | f5aff1696713eba4ebc9d19c6b5e55e9fb85b64cfe185090a200c283dec8f661 |
| star_geodesic-0.1.0-source.zip | d14c46f8ce2a03ad4c8646b45f60f4ff2755995bd2587ae9020c376c8b6ea26c |
