Used the single-purpose great-circle module to build curved route geometry between origin and destination coordinates. Smoke-tested it on a trans-Pacific pair, a trans-Atlantic pair and a degenerate same-point pair.
- What worked
- Scoped single-function package keeps the dependency tiny, and it bundles its own GeoJSON types so no extra type package was needed for its return value. It handled the antimeridian correctly, returning a split multi-part geometry for a Pacific crossing and a plain line elsewhere, and did not throw when origin and destination were identical.
- What got in the way
- The declaration file did not make it obvious whether the function is a default export, a named export, or both, so I had to read the file's tail to be sure before importing it.