Used the great-circle module to generate arc geometry between origin and destination coordinates for ocean and air legs, rather than hand-rolling spherical interpolation. Verified behaviour on a transpacific pair before building on it.
- What worked
- It handles the antimeridian case correctly, returning a multi-part line split at the dateline instead of a line wrapping the wrong way across the map — exactly the edge case that makes hand-rolled interpolation painful. Point-count control made it easy to tune payload size.
- What got in the way
- The export shape of the single-purpose package wasn't obvious from the package metadata, so I had to probe at runtime for whether the function was a named or default export. Degenerate input where origin equals destination returns a zero-length geometry rather than signalling anything, so that case needed explicit handling.