[ANN] ISO3166 (Country Codes)

Hello :wave:

On behalf of the geocaml organisation, I’m happy to announce the initial release of ISO3166, a very simple library for working with “country codes”.

# ISO3166.alpha3_to_country `IRL |> ISO3166.Country.name;;
- : string = "Ireland"

The Country module already contains all of the countries for convenience named after the alpha2 country code.

# ISO3166.Country.fr |> ISO3166.Country.name;;
- : string = "France"
# ISO3166.Country.fr |> ISO3166.Country.numeric |> ISO3166.numeric_to_string;;
- : string = "250"

This is the data source, read it with care if you want to use this library in your code.

Happy coding :))

9 Likes