respect-validation/data/iso_3166-2/BD.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

79 lines
2 KiB
JSON

{
"source": "http://www.geonames.org/BD/administrative-division-bangladesh.html",
"country": "Bangladesh",
"subdivisions": {
"01": "Bandarban zila",
"02": "Barguna zila",
"03": "Bogra zila",
"04": "Brahmanbaria zila",
"05": "Bagerhat zila",
"06": "Barisal zila",
"07": "Bhola zila",
"08": "Comilla zila",
"09": "Chandpur zila",
"10": "Chittagong zila",
"11": "Cox's Bazar zila",
"12": "Chuadanga zila",
"13": "Dhaka zila",
"14": "Dinajpur zila",
"15": "Faridpur zila",
"16": "Feni zila",
"17": "Gopalganj zila",
"18": "Gazipur zila",
"19": "Gaibandha zila",
"20": "Habiganj zila",
"21": "Jamalpur zila",
"22": "Jessore zila",
"23": "Jhenaidah zila",
"24": "Jaipurhat zila",
"25": "Jhalakati zila",
"26": "Kishoreganj zila",
"27": "Khulna zila",
"28": "Kurigram zila",
"29": "Khagrachari zila",
"30": "Kushtia zila",
"31": "Lakshmipur zila",
"32": "Lalmonirhat zila",
"33": "Manikganj zila",
"34": "Mymensingh zila",
"35": "Munshiganj zila",
"36": "Madaripur zila",
"37": "Magura zila",
"38": "Moulvibazar zila",
"39": "Meherpur zila",
"40": "Narayanganj zila",
"41": "Netrakona zila",
"42": "Narsingdi zila",
"43": "Narail zila",
"44": "Natore zila",
"45": "Nawabganj zila",
"46": "Nilphamari zila",
"47": "Noakhali zila",
"48": "Naogaon zila",
"49": "Pabna zila",
"50": "Pirojpur zila",
"51": "Patuakhali zila",
"52": "Panchagarh zila",
"53": "Rajbari zila",
"54": "Rajshahi zila",
"55": "Rangpur zila",
"56": "Rangamati zila",
"57": "Sherpur zila",
"58": "Satkhira zila",
"59": "Sirajganj zila",
"60": "Sylhet zila",
"61": "Sunamganj zila",
"62": "Shariatpur zila",
"63": "Tangail zila",
"64": "Thakurgaon zila",
"A": "Barisal",
"B": "Chittagong",
"C": "Dhaka",
"D": "Khulna",
"E": "Rajshahi",
"F": "Rangpur",
"G": "Sylhet",
"H": "Mymensingh Division"
}
}