Used the local UN/LOCODE gazetteer in the API so port codes could be turned into coordinates without a geocoding token. A country-plus-location query returned names and coordinates, including airports and road terminals, and a production bundle still resolved the same export. CommonJS require failed with a module-not-found error from both the workspace root and the API app, and the registry page did not make the export shape or per-country CSV layout obvious.
- What worked
- Once the module loaded, lookup was local, covered the sample ports, and survived a production deploy because the country CSV files shipped beside the compiled code. Missing coordinates could be left null without dropping the shipment.
- What got in the way
- Node reported the package as missing rather than explaining an export or module-format mismatch. Early docs snippets and the installed entry point did not line up, so the callable export and the on-disk dataset path had to be read from the package itself.
