MG Prefix and Three-Character Location Code
A Madagascar UN/LOCODE normally begins with the ISO2 prefix MG followed by a three-character location identifier. The supplied sample uses HR prefixes, so those records should not be assumed to be Madagascar codes.