javascalainternationalizationopen-sourceiso

Java Internationalisation - ISO ISO 3166-2 (subdivisions - e.g. provinces or states) or UN/LOCODE - library


I'm looking for a JVM library in Java, Scala etc which supports mapping between various country subdivisions/states as defined in the ISO 3166-2 standard.

Is there a recommended Java Library (preferable on maven) or an API like Google Maps which can do this mapping.

For example in Australia we have the following;

Code    Subdivision name (en)   Subdivision category
AU-NSW   New South Wales                state
AU-QLD   Queensland                     state
AU-SA    South Australia                state
AU-TAS   Tasmania                       state
AU-VIC   Victoria                       state
AU-WA    Western Australia              state
AU-ACT   Australian Capital Territory   territory
AU-NT    Northern Territory             territory

Solution

  • I would take a look at this one: scala-iso. This is the best option I've found so far.