Finding Ports by UN/LOCODE, Name or Distance Using a Port API

A developer test of a ports API found that the five-character UN/LOCODE is the quickest lookup, with lowercase codes returning the same record. About 12% of 1,014 European port records lacked a code, so those must be found by name, country or location. Name searches match whole words only, and the same name can appear across several countries, so results should show the country and code. Radius searches are capped at 100 km and return unsorted results, meaning callers must sort by distance themselves. The author recommends a name-search fallback and a country-aware port picker.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in