Used the great-circle helper for air and road legs so both modes shared the same port coordinates as ocean routing. Version 7.4.0 already split a date-line crossing into a multi-line, and a CommonJS build was present for the API's module setup. The API typecheck accepted the import. A hand-written vertex-count check was wrong because the default arc is denser than expected.
- What worked
- Air arcs did not follow the sea corridor, and a Pacific crossing split cleanly without a custom antimeridian helper. Require from the production bundle resolved the named export.
- What got in the way
- The package is marked as an ES module with an exports map. The API's older TypeScript resolution mode was a risk for the types entry, so the export map had to be inspected before trusting the import.