Deprecated
Use iso3166-2-db
instead.
iso-3166-2-mx
The entry for Mexico in ISO 3166-2 which defines codes for the names of the principal subdivisions
Downloads
- iso-3166-2-mx.json:
Object with
codes
member containing objects with the state code as key and subdivision name and category as values.
Last updated 2014-12-03
Getting started
Even though all files are provided here, you might want to update them yourself.
You'll need Node.js, then cd
into this folder and npm install
.
Run npm run generate
to fetch the latest codes.
You can also use it as a Node module. Just install it npm install --save iso-3166-2-mx
and then require it in your code:
var iso31662mx = ; console; // {// "subdivisionName": "Distrito Federal",// "subdivisionCategory": "federal district"// }
Credit
Inspired by norway-postal-codes
License
MIT © Alejandro Beltrán