respect-validation/data/iso_3166-2/VN.json
Henrique Moody 718bacad04
Remove subdivision code rules per country
There is no much benefit from having individual rules for each country's
subdivision, quite the opposite. It increases the amount of code and
makes it hard to change the implementation of these rules. Right now,
the only sane way to change those rules is with a customized script.

This commit will remove the Subdivision Code rules per country and
instead will put that information into JSON files.

We both wouldn't like to keep this in this library anymore, and we are
considering having another library to deal with this data [1], but since
it seems like it may take some time, looks better to do it temporarily
here.

[1]: https://github.com/sokil/php-isocodes/issues/12

Co-authored-by: Mazen Touati <mazen_touati@hotmail.com>
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-06 23:05:24 +02:00

70 lines
1.5 KiB
JSON

{
"source": "http://www.geonames.org/VN/administrative-division-vietnam.html",
"country": "Vietnam",
"subdivisions": {
"01": "Lai Chau",
"02": "Lao Cai",
"03": "Ha Giang",
"04": "Cao Bang",
"05": "Son La",
"06": "Yen Bai",
"07": "Tuyen Quang",
"09": "Lang Son",
"13": "Quang Ninh",
"14": "Hoa Binh",
"18": "Ninh Binh",
"20": "Thai Binh",
"21": "Thanh Hoa",
"22": "Nghe An",
"23": "Ha Tinh",
"24": "Quang Binh",
"25": "Quang Tri",
"26": "Thua Thien-Hue",
"27": "Quang Nam",
"28": "Kon Tum",
"29": "Quang Ngai",
"30": "Gia Lai",
"31": "Binh Dinh",
"32": "Phu Yen",
"33": "Dak Lak",
"34": "Khanh Hoa",
"35": "Lam Dong",
"36": "Ninh Thuan",
"37": "Tay Ninh",
"39": "Dong Nai",
"40": "Binh Thuan",
"41": "Long An",
"43": "Ba Ria-Vung Tau",
"44": "An Giang",
"45": "Dong Thap",
"46": "Tien Giang",
"47": "Kien Giang",
"49": "Vinh Long",
"50": "Ben Tre",
"51": "Tra Vinh",
"52": "Soc Trang",
"53": "Bac Can",
"54": "Bac Giang",
"55": "Bac Lieu",
"56": "Bac Ninh",
"57": "Binh Duong",
"58": "Binh Phuoc",
"59": "Ca Mau",
"61": "Hai Duong",
"63": "Ha Nam",
"66": "Hung Yen",
"67": "Nam Dinh",
"68": "Phu Tho",
"69": "Thai Nguyen",
"70": "Vinh Phuc",
"71": "Dien Bien",
"72": "Dak Nong",
"73": "Hau Giang",
"CT": "Can Tho",
"DN": "Da Nang",
"HN": "Ha Noi",
"HP": "Hai Phong",
"SG": "Ho Chi Minh"
}
}