This package contains functions like getAllDistricts
, getDistrictsOfDivision
, getAllThanas
, getThanasOfDistrict
and a variable named allDivisions
.
It contains all the division names of Bangladesh.
This function returns all district names of Bangladesh. For example, const allDistricts = getAllDistricts()
.
This function returns the districts of a specified division. For example, const districts = getDistrictsOfDivision('DHAKA')
. Note that, the division name is case insensitive. It will work even if we pass 'Dhaka'
as division name or 'dhaka'
.
This function returns all thana/upazilla names of Bangladesh. For example, const allThanas = getAllThanas()
.
This function returns the thanas/upazillas of a specified district. For example, const thanas = getThanasOfDistrict('RANGPUR')
. Note that, the district name is case insensitive. It will work even if we pass 'Rangpur'
as district name or 'rangpur'
.