mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 08:42:15 +02:00
718bacad04
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>
70 lines
1.5 KiB
JSON
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"
|
|
}
|
|
}
|