If anyone was wondering, no, the UN LOCODE dataset is by no means a clean dataset. Lat/Lon, when provided, can be flat out wrong and nonsensical. Simple things like swapped poles, missing digits, the like. It's not terrible... but it's certainly not clean.