-
Notifications
You must be signed in to change notification settings - Fork 1
/
country.py
49 lines (31 loc) · 37.4 KB
/
country.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class Country:
district_wise = {'Andaman and Nicobar Islands': [['Nicobars', 'North and Middle Andaman'], ['South Andaman', 'Unknown']], 'Andhra Pradesh': [['Foreign Evacuees', 'Anantapur'], ['Chittoor', 'East Godavari', 'Guntur'], ['Krishna', 'Kurnool', 'Other State'], ['Prakasam', 'S.P.S. Nellore', 'Srikakulam'], ['Visakhapatnam', 'Vizianagaram', 'West Godavari'], ['Y.S.R. Kadapa']], 'Arunachal Pradesh': [['Anjaw', 'Changlang'], ['East Kameng', 'East Siang', 'Kamle'], ['Kra Daadi', 'Kurung Kumey', 'Lepa Rada'], ['Lohit', 'Longding', 'Lower Dibang Valley'], ['Lower Siang', 'Lower Subansiri', 'Namsai'], ['Pakke Kessang', 'Papum Pare', 'Shi Yomi'], ['Siang', 'Tawang', 'Tirap'], ['Upper Dibang Valley', 'Upper Siang', 'Upper Subansiri'], ['West Kameng', 'West Siang']], 'Assam': [['Airport Quarantine', 'Baksa'], ['Barpeta', 'Biswanath', 'Bongaigaon'], ['Cachar', 'Charaideo', 'Chirang'], ['Darrang', 'Dhemaji', 'Dhubri'], ['Dibrugarh', 'Dima Hasao', 'Goalpara'], ['Golaghat', 'Hailakandi', 'Hojai'], ['Jorhat', 'Kamrup', 'Kamrup Metropolitan'], ['Karbi Anglong', 'Karimganj', 'Kokrajhar'], ['Lakhimpur', 'Majuli', 'Morigaon'], ['Nagaon', 'Nalbari', 'Other State'], ['Sivasagar', 'Sonitpur', 'South Salmara Mankachar'], ['Tinsukia', 'Udalguri', 'West Karbi Anglong'], ['Unknown']], 'Bihar': [['Araria', 'Arwal'], ['Aurangabad', 'Banka', 'Begusarai'], ['Bhagalpur', 'Bhojpur', 'Buxar'], ['Darbhanga', 'East Champaran', 'Gaya'], ['Gopalganj', 'Jamui', 'Jehanabad'], ['Kaimur', 'Katihar', 'Khagaria'], ['Kishanganj', 'Lakhisarai', 'Madhepura'], ['Madhubani', 'Munger', 'Muzaffarpur'], ['Nalanda', 'Nawada', 'Patna'], ['Purnia', 'Rohtas', 'Saharsa'], ['Samastipur', 'Saran', 'Sheikhpura'], ['Sheohar', 'Sitamarhi', 'Siwan'], ['Supaul', 'Vaishali', 'West Champaran']], 'Chandigarh': [['Chandigarh']], 'Chhattisgarh': [['Other State', 'Balod'], ['Baloda Bazar', 'Balrampur', 'Bametara'], ['Bastar', 'Bijapur', 'Bilaspur'], ['Dakshin Bastar Dantewada', 'Dhamtari', 'Durg'], ['Gariaband', 'Janjgir Champa', 'Jashpur'], ['Kabeerdham', 'Kondagaon', 'Korba'], ['Koriya', 'Mahasamund', 'Mungeli'], ['Narayanpur', 'Raigarh', 'Raipur'], ['Rajnandgaon', 'Sukma', 'Surajpur'], ['Surguja', 'Uttar Bastar Kanker', 'Gaurela Pendra Marwahi']], 'Delhi': [['Central Delhi', 'East Delhi'], ['New Delhi', 'North Delhi', 'North East Delhi'], ['North West Delhi', 'Shahdara', 'South Delhi'], ['South East Delhi', 'South West Delhi', 'West Delhi'], ['Unknown']], 'Goa': [['Other State', 'North Goa'], ['South Goa', 'Unknown']], 'Gujarat': [['Other State', 'Ahmedabad'], ['Amreli', 'Anand', 'Aravalli'], ['Banaskantha', 'Bharuch', 'Bhavnagar'], ['Botad', 'Chhota Udaipur', 'Dahod'], ['Dang', 'Devbhumi Dwarka', 'Gandhinagar'], ['Gir Somnath', 'Jamnagar', 'Junagadh'], ['Kheda', 'Kutch', 'Mahisagar'], ['Mehsana', 'Morbi', 'Narmada'], ['Navsari', 'Panchmahal', 'Patan'], ['Porbandar', 'Rajkot', 'Sabarkantha'], ['Surat', 'Surendranagar', 'Tapi'], ['Vadodara', 'Valsad']], 'Haryana': [['Foreign Evacuees', 'Ambala'], ['Bhiwani', 'Charkhi Dadri', 'Faridabad'], ['Fatehabad', 'Gurugram', 'Hisar'], ['Italians', 'Jhajjar', 'Jind'], ['Kaithal', 'Karnal', 'Kurukshetra'], ['Mahendragarh', 'Nuh', 'Palwal'], ['Panchkula', 'Panipat', 'Rewari'], ['Rohtak', 'Sirsa', 'Sonipat'], ['Yamunanagar']], 'Himachal Pradesh': [['Bilaspur', 'Chamba'], ['Hamirpur', 'Kangra', 'Kinnaur'], ['Kullu', 'Lahaul and Spiti', 'Mandi'], ['Shimla', 'Sirmaur', 'Solan'], ['Una']], 'Jammu and Kashmir': [['Anantnag', 'Bandipora'], ['Baramulla', 'Budgam', 'Doda'], ['Ganderbal', 'Jammu', 'Kathua'], ['Kishtwar', 'Kulgam', 'Kupwara'], ['Mirpur', 'Muzaffarabad', 'Pulwama'], ['Punch', 'Rajouri', 'Ramban'], ['Reasi', 'Samba', 'Shopiyan'], ['Srinagar', 'Udhampur']], 'Jharkhand': [['Bokaro', 'Chatra'], ['Deoghar', 'Dhanbad', 'Dumka'], ['East Singhbhum', 'Garhwa', 'Giridih'], ['Godda', 'Gumla', 'Hazaribagh'], ['Jamtara', 'Khunti', 'Koderma'], ['Latehar', 'Lohardaga', 'Pakur'], ['Palamu', 'Ramgarh', 'Ranchi'], ['Sahibganj', 'Saraikela-Kharsawan', 'Simdega'], ['West Singhbhum', 'Unknown']], 'Karnataka': [['Bagalkote', 'Ballari'], ['Belagavi', 'Bengaluru Rural', 'Bengaluru Urban'], ['Bidar', 'Chamarajanagara', 'Chikkaballapura'], ['Chikkamagaluru', 'Chitradurga', 'Dakshina Kannada'], ['Davanagere', 'Dharwad', 'Gadag'], ['Hassan', 'Haveri', 'Kalaburagi'], ['Kodagu', 'Kolar', 'Koppal'], ['Mandya', 'Mysuru', 'Other State'], ['Raichur', 'Ramanagara', 'Shivamogga'], ['Tumakuru', 'Udupi', 'Uttara Kannada'], ['Vijayapura', 'Yadgir']], 'Kerala': [['Other State', 'Alappuzha'], ['Ernakulam', 'Idukki', 'Kannur'], ['Kasaragod', 'Kollam', 'Kottayam'], ['Kozhikode', 'Malappuram', 'Palakkad'], ['Pathanamthitta', 'Thiruvananthapuram', 'Thrissur'], ['Wayanad']], 'Ladakh': [['Kargil', 'Leh']], 'Lakshadweep': [['Lakshadweep']], 'Madhya Pradesh': [['Agar Malwa', 'Alirajpur'], ['Anuppur', 'Ashoknagar', 'Balaghat'], ['Barwani', 'Betul', 'Bhind'], ['Bhopal', 'Burhanpur', 'Chhatarpur'], ['Chhindwara', 'Damoh', 'Datia'], ['Dewas', 'Dhar', 'Dindori'], ['Guna', 'Gwalior', 'Harda'], ['Hoshangabad', 'Indore', 'Jabalpur'], ['Jhabua', 'Katni', 'Khandwa'], ['Khargone', 'Mandla', 'Mandsaur'], ['Morena', 'Narsinghpur', 'Neemuch'], ['Niwari', 'Other Region', 'Panna'], ['Raisen', 'Rajgarh', 'Ratlam'], ['Rewa', 'Sagar', 'Satna'], ['Sehore', 'Seoni', 'Shahdol'], ['Shajapur', 'Sheopur', 'Shivpuri'], ['Sidhi', 'Singrauli', 'Tikamgarh'], ['Ujjain', 'Umaria', 'Vidisha']], 'Maharashtra': [['Ahmednagar', 'Akola'], ['Amravati', 'Aurangabad', 'Beed'], ['Bhandara', 'Buldhana', 'Chandrapur'], ['Dhule', 'Gadchiroli', 'Gondia'], ['Hingoli', 'Jalgaon', 'Jalna'], ['Kolhapur', 'Latur', 'Mumbai'], ['Mumbai Suburban', 'Nagpur', 'Nanded'], ['Nandurbar', 'Nashik', 'Osmanabad'], ['Other State', 'Palghar', 'Parbhani'], ['Pune', 'Raigad', 'Ratnagiri'], ['Sangli', 'Satara', 'Sindhudurg'], ['Solapur', 'Thane', 'Wardha'], ['Washim', 'Yavatmal']], 'Manipur': [['CAPF Personnel', 'Bishnupur'], ['Chandel', 'Churachandpur', 'Imphal East'], ['Imphal West', 'Jiribam', 'Kakching'], ['Kamjong', 'Kangpokpi', 'Noney'], ['Pherzawl', 'Senapati', 'Tamenglong'], ['Tengnoupal', 'Thoubal', 'Ukhrul'], ['Unknown']], 'Meghalaya': [['East Garo Hills', 'East Jaintia Hills'], ['East Khasi Hills', 'North Garo Hills', 'Ribhoi'], ['South Garo Hills', 'South West Garo Hills', 'South West Khasi Hills'], ['West Garo Hills', 'West Jaintia Hills', 'West Khasi Hills']], 'Mizoram': [['Aizawl', 'Champhai'], ['Hnahthial', 'Khawzawl', 'Kolasib'], ['Lawngtlai', 'Lunglei', 'Mamit'], ['Saiha', 'Saitual', 'Serchhip']], 'Nagaland': [['Others', 'Dimapur'], ['Kiphire', 'Kohima', 'Longleng'], ['Mokokchung', 'Mon', 'Peren'], ['Phek', 'Tuensang', 'Wokha'], ['Zunheboto']], 'Odisha': [['State Pool', 'Others'], ['Angul', 'Balangir', 'Balasore'], ['Bargarh', 'Bhadrak', 'Boudh'], ['Cuttack', 'Deogarh', 'Dhenkanal'], ['Gajapati', 'Ganjam', 'Jagatsinghpur'], ['Jajpur', 'Jharsuguda', 'Kalahandi'], ['Kandhamal', 'Kendrapara', 'Kendujhar'], ['Khordha', 'Koraput', 'Malkangiri'], ['Mayurbhanj', 'Nabarangapur', 'Nayagarh'], ['Nuapada', 'Puri', 'Rayagada'], ['Sambalpur', 'Subarnapur', 'Sundargarh']], 'Puducherry': [['Karaikal', 'Mahe'], ['Puducherry', 'Yanam']], 'Punjab': [['Amritsar', 'Barnala'], ['Bathinda', 'Faridkot', 'Fatehgarh Sahib'], ['Fazilka', 'Ferozepur', 'Gurdaspur'], ['Hoshiarpur', 'Jalandhar', 'Kapurthala'], ['Ludhiana', 'Mansa', 'Moga'], ['Pathankot', 'Patiala', 'Rupnagar'], ['S.A.S. Nagar', 'Sangrur', 'Shahid Bhagat Singh Nagar'], ['Sri Muktsar Sahib', 'Tarn Taran']], 'Rajasthan': [['Ajmer', 'Alwar'], ['Banswara', 'Baran', 'Barmer'], ['Bharatpur', 'Bhilwara', 'Bikaner'], ['BSF Camp', 'Bundi', 'Chittorgarh'], ['Churu', 'Dausa', 'Dholpur'], ['Dungarpur', 'Evacuees', 'Ganganagar'], ['Hanumangarh', 'Italians', 'Jaipur'], ['Jaisalmer', 'Jalore', 'Jhalawar'], ['Jhunjhunu', 'Jodhpur', 'Karauli'], ['Kota', 'Nagaur', 'Other State'], ['Pali', 'Pratapgarh', 'Rajsamand'], ['Sawai Madhopur', 'Sikar', 'Sirohi'], ['Tonk', 'Udaipur']], 'Sikkim': [['East Sikkim', 'North Sikkim'], ['South Sikkim', 'West Sikkim', 'Unknown']], 'Tamil Nadu': [['Railway Quarantine', 'Airport Quarantine'], ['Other State', 'Ariyalur', 'Chengalpattu'], ['Chennai', 'Coimbatore', 'Cuddalore'], ['Dharmapuri', 'Dindigul', 'Erode'], ['Kallakurichi', 'Kancheepuram', 'Kanyakumari'], ['Karur', 'Krishnagiri', 'Madurai'], ['Nagapattinam', 'Namakkal', 'Nilgiris'], ['Perambalur', 'Pudukkottai', 'Ramanathapuram'], ['Ranipet', 'Salem', 'Sivaganga'], ['Tenkasi', 'Thanjavur', 'Theni'], ['Thiruvallur', 'Thiruvarur', 'Thoothukkudi'], ['Tiruchirappalli', 'Tirunelveli', 'Tirupathur'], ['Tiruppur', 'Tiruvannamalai', 'Vellore'], ['Viluppuram', 'Virudhunagar']], 'Telangana': [['Foreign Evacuees', 'Other State'], ['Adilabad', 'Bhadradri Kothagudem', 'Hyderabad'], ['Jagtial', 'Jangaon', 'Jayashankar Bhupalapally'], ['Jogulamba Gadwal', 'Kamareddy', 'Karimnagar'], ['Khammam', 'Komaram Bheem', 'Mahabubabad'], ['Mahabubnagar', 'Mancherial', 'Medak'], ['Medchal Malkajgiri', 'Mulugu', 'Nagarkurnool'], ['Nalgonda', 'Narayanpet', 'Nirmal'], ['Nizamabad', 'Peddapalli', 'Rajanna Sircilla'], ['Ranga Reddy', 'Sangareddy', 'Siddipet'], ['Suryapet', 'Vikarabad', 'Wanaparthy'], ['Warangal Rural', 'Warangal Urban', 'Yadadri Bhuvanagiri'], ['Unknown']], 'Tripura': [['Dhalai', 'Gomati'], ['Khowai', 'North Tripura', 'Sipahijala'], ['South Tripura', 'Unokoti', 'West Tripura']], 'Uttar Pradesh': [['Agra', 'Aligarh'], ['Ambedkar Nagar', 'Amethi', 'Amroha'], ['Auraiya', 'Ayodhya', 'Azamgarh'], ['Baghpat', 'Bahraich', 'Ballia'], ['Balrampur', 'Banda', 'Barabanki'], ['Bareilly', 'Basti', 'Bhadohi'], ['Bijnor', 'Budaun', 'Bulandshahr'], ['Chandauli', 'Chitrakoot', 'Deoria'], ['Etah', 'Etawah', 'Farrukhabad'], ['Fatehpur', 'Firozabad', 'Gautam Buddha Nagar'], ['Ghaziabad', 'Ghazipur', 'Gonda'], ['Gorakhpur', 'Hamirpur', 'Hapur'], ['Hardoi', 'Hathras', 'Jalaun'], ['Jaunpur', 'Jhansi', 'Kannauj'], ['Kanpur Dehat', 'Kanpur Nagar', 'Kasganj'], ['Kaushambi', 'Kushinagar', 'Lakhimpur Kheri'], ['Lalitpur', 'Lucknow', 'Maharajganj'], ['Mahoba', 'Mainpuri', 'Mathura'], ['Mau', 'Meerut', 'Mirzapur'], ['Moradabad', 'Muzaffarnagar', 'Pilibhit'], ['Pratapgarh', 'Prayagraj', 'Rae Bareli'], ['Rampur', 'Saharanpur', 'Sambhal'], ['Sant Kabir Nagar', 'Shahjahanpur', 'Shamli'], ['Shrawasti', 'Siddharthnagar', 'Sitapur'], ['Sonbhadra', 'Sultanpur', 'Unnao'], ['Varanasi']], 'Uttarakhand': [['Almora', 'Bageshwar'], ['Chamoli', 'Champawat', 'Dehradun'], ['Haridwar', 'Nainital', 'Pauri Garhwal'], ['Pithoragarh', 'Rudraprayag', 'Tehri Garhwal'], ['Udham Singh Nagar', 'Uttarkashi']], 'West Bengal': [['Alipurduar', 'Bankura'], ['Birbhum', 'Cooch Behar', 'Dakshin Dinajpur'], ['Darjeeling', 'Hooghly', 'Howrah'], ['Jalpaiguri', 'Jhargram', 'Kalimpong'], ['Kolkata', 'Malda', 'Murshidabad'], ['Nadia', 'North 24 Parganas', 'Other State'], ['Paschim Bardhaman', 'Paschim Medinipur', 'Purba Bardhaman'], ['Purba Medinipur', 'Purulia', 'South 24 Parganas'], ['Uttar Dinajpur']], 'Dadra and Nagar Haveli and Daman and Diu': [['Other State', 'Dadra and Nagar Haveli'], ['Daman', 'Diu']]}
states = [['Andaman and Nicobar Islands', 'Andhra Pradesh'], ['Arunachal Pradesh', 'Assam', 'Bihar'], ['Chandigarh', 'Chhattisgarh', 'Delhi'], ['Goa', 'Gujarat', 'Haryana'], ['Himachal Pradesh', 'Jammu and Kashmir', 'Jharkhand'], ['Karnataka', 'Kerala', 'Ladakh'], ['Lakshadweep', 'Madhya Pradesh', 'Maharashtra'], ['Manipur', 'Meghalaya', 'Mizoram'], ['Nagaland', 'Odisha', 'Puducherry'], ['Punjab', 'Rajasthan', 'Sikkim'], ['Tamil Nadu', 'Telangana', 'Tripura'], ['Uttar Pradesh', 'Uttarakhand', 'West Bengal'], ['Dadra and Nagar Haveli and Daman and Diu','Unknown']]
flat_states = ['Andaman and Nicobar Islands', 'Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chandigarh', 'Chhattisgarh', 'Delhi', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jammu and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Ladakh', 'Lakshadweep', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Puducherry', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Telangana', 'Tripura', 'Uttar Pradesh', 'Uttarakhand', 'West Bengal', 'Dadra and Nagar Haveli and Daman and Diu','Unknown']
district_id = {'Nicobar': 3, 'North and Middle Andaman': 1, 'South Andaman': 2, 'Anantapur': 9, 'Chittoor': 10, 'East Godavari': 11, 'Guntur': 5, 'Krishna': 4, 'Kurnool': 7, 'Prakasam': 12, 'Sri Potti Sriramulu Nellore': 13, 'Srikakulam': 14, 'Visakhapatnam': 8, 'Vizianagaram': 15, 'West Godavari': 16, 'YSR District, Kadapa (Cuddapah)': 6, 'Anjaw': 22, 'Changlang': 20, 'Dibang Valley': 25, 'East Kameng': 23, 'East Siang': 42, 'Itanagar Capital Complex': 17, 'Kamle': 24, 'Kra Daadi': 27, 'Kurung Kumey': 21, 'Lepa Rada': 33, 'Lohit': 29, 'Longding': 40, 'Lower Dibang Valley': 31, 'Lower Siang': 18, 'Lower Subansiri': 32, 'Namsai': 36, 'Pakke Kessang': 19, 'Papum Pare': 39, 'Shi Yomi': 35, 'Siang': 37, 'Tawang': 30, 'Tirap': 26, 'Upper Siang': 34, 'Upper Subansiri': 41, 'West Kameng': 28, 'West Siang': 38, 'Baksa': 46, 'Barpeta': 47, 'Biswanath': 765, 'Bongaigaon': 57, 'Cachar': 66, 'Charaideo': 766, 'Chirang': 58, 'Darrang': 48, 'Dhemaji': 62, 'Dhubri': 59, 'Dibrugarh': 43, 'Dima Hasao': 67, 'Goalpara': 60, 'Golaghat': 53, 'Hailakandi': 68, 'Hojai': 764, 'Jorhat': 54, 'Kamrup Metropolitan': 49, 'Kamrup Rural': 50, 'Karbi-Anglong': 51, 'Karimganj': 69, 'Kokrajhar': 61, 'Lakhimpur': 63, 'Majuli': 767, 'Morigaon': 55, 'Nagaon': 56, 'Nalbari': 52, 'Sivasagar': 44, 'Sonitpur': 64, 'South Salmara Mankachar': 768, 'Tinsukia': 45, 'Udalguri': 65, 'West Karbi Anglong': 769, 'Araria': 74, 'Arwal': 78, 'Aurangabad': 77, 'Banka': 83, 'Begusarai': 98, 'Bhagalpur': 82, 'Bhojpur': 99, 'Buxar': 100, 'Darbhanga': 94, 'East Champaran': 105, 'Gaya': 79, 'Gopalganj': 104, 'Jamui': 107, 'Jehanabad': 91, 'Kaimur': 80, 'Katihar': 75, 'Khagaria': 101, 'Kishanganj': 76, 'Lakhisarai': 84, 'Madhepura': 70, 'Madhubani': 95, 'Munger': 85, 'Muzaffarpur': 86, 'Nalanda': 90, 'Nawada': 92, 'Patna': 97, 'Purnia': 73, 'Rohtas': 81, 'Saharsa': 71, 'Samastipur': 96, 'Saran': 102, 'Sheikhpura': 93, 'Sheohar': 87, 'Sitamarhi': 88, 'Siwan': 103, 'Supaul': 72, 'Vaishali': 89, 'West Champaran': 106, 'Chandigarh': 108, 'Balod': 110, 'Baloda bazar': 111, 'Balrampur': 112, 'Bastar': 113, 'Bemetara': 114, 'Bijapur': 115, 'Bilaspur': 219, 'Dantewada': 117, 'Dhamtari': 118, 'Durg': 119, 'Gariaband': 120, 'Gaurela Pendra Marwahi ': 136, 'Janjgir-Champa': 121, 'Jashpur': 122, 'Kanker': 123, 'Kawardha': 135, 'Kondagaon': 124, 'Korba': 125, 'Koriya': 126, 'Mahasamund': 127, 'Mungeli': 128, 'Narayanpur': 129, 'Raigarh': 130, 'Raipur': 109, 'Rajnandgaon': 131, 'Sukma': 132, 'Surajpur': 133, 'Surguja': 134, 'Dadra and Nagar Haveli': 137, 'Daman': 138, 'Diu': 139, 'Central Delhi': 141, 'East Delhi': 145, 'New Delhi': 140, 'North Delhi': 146, 'North East Delhi': 147, 'North West Delhi': 143, 'Shahdara': 148, 'South Delhi': 149, 'South East Delhi': 144, 'South West Delhi': 150, 'West Delhi': 142, 'North Goa': 151, 'South Goa': 152, 'Ahmedabad': 154, 'Ahmedabad Corporation': 770, 'Amreli': 174, 'Anand': 179, 'Aravalli': 158, 'Banaskantha': 159, 'Bharuch': 180, 'Bhavnagar': 175, 'Bhavnagar Corporation': 771, 'Botad': 176, 'Chhotaudepur': 181, 'Dahod': 182, 'Dang': 163, 'Devbhumi Dwaraka': 168, 'Gandhinagar': 153, 'Gandhinagar Corporation': 772, 'Gir Somnath': 177, 'Jamnagar': 169, 'Jamnagar Corporation': 773, 'Junagadh': 178, 'Junagadh Corporation': 774, 'Kheda': 156, 'Kutch': 170, 'Mahisagar': 183, 'Mehsana': 160, 'Morbi': 171, 'Narmada': 184, 'Navsari': 164, 'Panchmahal': 185, 'Patan': 161, 'Porbandar': 172, 'Rajkot': 173, 'Rajkot Corporation': 775, 'Sabarkantha': 162, 'Surat': 165, 'Surat Corporation': 776, 'Surendranagar': 157, 'Tapi': 166, 'Vadodara': 155, 'Vadodara Corporation': 777, 'Valsad': 167, 'Ambala': 193, 'Bhiwani': 200, 'Charkhi Dadri': 201, 'Faridabad': 199, 'Fatehabad': 196, 'Gurgaon': 188, 'Hisar': 191, 'Jhajjar': 189, 'Jind': 204, 'Kaithal': 190, 'Karnal': 203, 'Kurukshetra': 186, 'Mahendragarh': 206, 'Nuh': 205, 'Palwal': 207, 'Panchkula': 187, 'Panipat': 195, 'Rewari': 202, 'Rohtak': 192, 'Sirsa': 194, 'Sonipat': 198, 'Yamunanagar': 197, 'Chamba': 214, 'Hamirpur': 655, 'Kangra': 213, 'Kinnaur': 216, 'Kullu': 211, 'Lahaul Spiti': 210, 'Mandi': 215, 'Shimla': 208, 'Sirmaur': 212, 'Solan': 209, 'Una': 218, 'Anantnag': 224, 'Bandipore': 223, 'Baramulla': 225, 'Budgam': 229, 'Doda': 232, 'Ganderbal': 228, 'Jammu': 230, 'Kathua': 234, 'Kishtwar': 231, 'Kulgam': 221, 'Kupwara': 226, 'Poonch': 238, 'Pulwama': 227, 'Rajouri': 237, 'Ramban': 235, 'Reasi': 239, 'Samba': 236, 'Shopian': 222, 'Srinagar': 220, 'Udhampur': 233, 'Bokaro': 242, 'Chatra': 245, 'Deoghar': 253, 'Dhanbad': 257, 'Dumka': 258, 'East Singhbhum': 247, 'Garhwa': 243, 'Giridih': 256, 'Godda': 262, 'Gumla': 251, 'Hazaribagh': 255, 'Jamtara': 259, 'Khunti': 252, 'Koderma': 241, 'Latehar': 244, 'Lohardaga': 250, 'Pakur': 261, 'Palamu': 246, 'Ramgarh': 254, 'Ranchi': 240, 'Sahebganj': 260, 'Seraikela Kharsawan': 248, 'Simdega': 249, 'West Singhbhum': 263, 'Bagalkot': 270, 'Bangalore Rural': 276, 'Bangalore Urban': 265, 'BBMP': 294, 'Belgaum': 264, 'Bellary': 274, 'Bidar': 272, 'Chamarajanagar': 271, 'Chikamagalur': 273, 'Chikkaballapur': 291, 'Chitradurga': 268, 'Dakshina Kannada': 269, 'Davanagere': 275, 'Dharwad': 278, 'Gadag': 280, 'Gulbarga': 267, 'Hassan': 289, 'Haveri': 279, 'Kodagu': 283, 'Kolar': 277, 'Koppal': 282, 'Mandya': 290, 'Mysore': 266, 'Raichur': 284, 'Ramanagara': 292, 'Shimoga': 287, 'Tumkur': 288, 'Udupi': 286, 'Uttar Kannada': 281, 'Vijayapura': 293, 'Yadgir': 285, 'Alappuzha': 301, 'Ernakulam': 307, 'Idukki': 306, 'Kannur': 297, 'Kasaragod': 295, 'Kollam': 298, 'Kottayam': 304, 'Kozhikode': 305, 'Malappuram': 302, 'Palakkad': 308, 'Pathanamthitta': 300, 'Thiruvananthapuram': 296, 'Thrissur': 303, 'Wayanad': 299, 'Kargil': 309, 'Leh': 310, 'Agatti Island': 796, 'Lakshadweep': 311, 'Agar': 320, 'Alirajpur': 357, 'Anuppur': 334, 'Ashoknagar': 354, 'Balaghat': 338, 'Barwani': 343, 'Betul': 362, 'Bhind': 351, 'Bhopal': 312, 'Burhanpur': 342, 'Chhatarpur': 328, 'Chhindwara': 337, 'Damoh': 327, 'Datia': 350, 'Dewas': 324, 'Dhar': 341, 'Dindori': 336, 'Guna': 348, 'Gwalior': 313, 'Harda': 361, 'Hoshangabad': 360, 'Indore': 314, 'Jabalpur': 315, 'Jhabua': 340, 'Katni': 353, 'Khandwa': 339, 'Khargone': 344, 'Mandla': 335, 'Mandsaur': 319, 'Morena': 347, 'Narsinghpur': 352, 'Neemuch': 323, 'Panna': 326, 'Raisen': 359, 'Rajgarh': 358, 'Ratlam': 322, 'Rewa': 316, 'Sagar': 317, 'Satna': 333, 'Sehore': 356, 'Seoni': 349, 'Shahdol': 332, 'Shajapur': 321, 'Sheopur': 346, 'Shivpuri': 345, 'Sidhi': 331, 'Singrauli': 330, 'Tikamgarh': 325, 'Ujjain': 318, 'Umaria': 329, 'Vidisha': 355, 'Ahmednagar': 391, 'Akola': 364, 'Amravati': 366, 'Aurangabad ': 397, 'Beed': 384, 'Bhandara': 370, 'Buldhana': 367, 'Chandrapur': 380, 'Dhule': 388, 'Gadchiroli': 379, 'Gondia': 378, 'Hingoli': 386, 'Jalgaon': 390, 'Jalna': 396, 'Kolhapur': 371, 'Latur': 383, 'Mumbai': 395, 'Nagpur': 365, 'Nanded': 382, 'Nandurbar': 387, 'Nashik': 389, 'Osmanabad': 381, 'Palghar': 394, 'Parbhani': 385, 'Pune': 363, 'Raigad': 393, 'Ratnagiri': 372, 'Sangli': 373, 'Satara': 376, 'Sindhudurg': 374, 'Solapur': 375, 'Thane': 392, 'Wardha': 377, 'Washim': 369, 'Yavatmal': 368, 'Bishnupur': 398, 'Chandel': 399, 'Churachandpur': 400, 'Imphal East': 401, 'Imphal West': 402, 'Jiribam': 410, 'Kakching': 413, 'Kamjong': 409, 'Kangpokpi': 408, 'Noney': 412, 'Pherzawl': 411, 'Senapati': 403, 'Tamenglong': 404, 'Tengnoupal': 407, 'Thoubal': 405, 'Ukhrul': 406, 'East Garo Hills': 424, 'East Jaintia Hills': 418, 'East Khasi Hills': 414, 'North Garo Hills': 423, 'Ri-Bhoi': 417, 'South Garo Hills': 421, 'South West Garo Hills': 422, 'South West Khasi Hills': 415, 'West Garo Hills': 420, 'West Jaintia Hills': 416, 'West Khasi Hills': 419, 'Aizawl East': 425, 'Aizawl West': 426, 'Champhai': 429, 'Kolasib': 428, 'Lawngtlai': 432, 'Lunglei': 431, 'Mamit': 427, 'Serchhip': 430, 'Siaha': 433, 'Dimapur': 434, 'Kiphire': 444, 'Kohima': 441, 'Longleng': 438, 'Mokokchung': 437, 'Mon': 439, 'Peren': 435, 'Phek': 443, 'Tuensang': 440, 'Wokha': 436, 'Zunheboto': 442, 'Angul': 445, 'Balangir': 448, 'Balasore': 447, 'Bargarh': 472, 'Bhadrak': 454, 'Boudh': 468, 'Cuttack': 457, 'Deogarh': 473, 'Dhenkanal': 458, 'Gajapati': 467, 'Ganjam': 449, 'Jagatsinghpur': 459, 'Jajpur': 460, 'Jharsuguda': 474, 'Kalahandi': 464, 'Kandhamal': 450, 'Kendrapara': 461, 'Kendujhar': 455, 'Khurda': 446, 'Koraput': 451, 'Malkangiri': 469, 'Mayurbhanj': 456, 'Nabarangpur': 470, 'Nayagarh': 462, 'Nuapada': 465, 'Puri': 463, 'Rayagada': 471, 'Sambalpur': 452, 'Subarnapur': 466, 'Sundargarh': 453, 'Karaikal': 476, 'Mahe': 477, 'Puducherry': 475, 'Yanam': 478, 'Amritsar': 485, 'Barnala': 483, 'Bathinda': 493, 'Faridkot': 499, 'Fatehgarh Sahib': 484, 'Fazilka': 487, 'Ferozpur': 480, 'Gurdaspur': 489, 'Hoshiarpur': 481, 'Jalandhar': 492, 'Kapurthala': 479, 'Ludhiana': 488, 'Mansa': 482, 'Moga': 491, 'Pathankot': 486, 'Patiala': 494, 'Rup Nagar': 497, 'Sangrur': 498, 'SAS Nagar': 496, 'SBS Nagar': 500, 'Sri Muktsar Sahib': 490, 'Tarn Taran': 495, 'Ajmer': 507, 'Alwar': 512, 'Banswara': 519, 'Baran': 516, 'Barmer': 528, 'Bharatpur': 508, 'Bhilwara': 523, 'Bikaner': 501, 'Bundi': 514, 'Chittorgarh': 521, 'Churu': 530, 'Dausa': 511, 'Dholpur': 524, 'Dungarpur': 520, 'Hanumangarh': 517, 'Jaipur I': 505, 'Jaipur II': 506, 'Jaisalmer': 527, 'Jalore': 533, 'Jhalawar': 515, 'Jhunjhunu': 510, 'Jodhpur': 502, 'Karauli': 525, 'Kota': 503, 'Nagaur': 532, 'Pali': 529, 'Pratapgarh': 682, 'Rajsamand': 518, 'Sawai Madhopur': 534, 'Sikar': 513, 'Sirohi': 531, 'Sri Ganganagar': 509, 'Tonk': 526, 'Udaipur': 504, 'East Sikkim': 535, 'North Sikkim': 537, 'South Sikkim': 538, 'West Sikkim': 536, 'Aranthangi': 779, 'Ariyalur': 555, 'Attur': 578, 'Chengalpet': 565, 'Chennai': 571, 'Cheyyar': 778, 'Coimbatore': 539, 'Cuddalore': 547, 'Dharmapuri': 566, 'Dindigul': 556, 'Erode': 563, 'Kallakurichi': 552, 'Kanchipuram': 557, 'Kanyakumari': 544, 'Karur': 559, 'Kovilpatti': 780, 'Krishnagiri': 562, 'Madurai': 540, 'Nagapattinam': 576, 'Namakkal': 558, 'Nilgiris': 577, 'Palani': 564, 'Paramakudi': 573, 'Perambalur': 570, 'Poonamallee': 575, 'Pudukkottai': 546, 'Ramanathapuram': 567, 'Ranipet': 781, 'Salem': 545, 'Sivaganga': 561, 'Sivakasi': 580, 'Tenkasi': 551, 'Thanjavur': 541, 'Theni': 569, 'Thoothukudi (Tuticorin)': 554, 'Tiruchirappalli': 560, 'Tirunelveli': 548, 'Tirupattur': 550, 'Tiruppur': 568, 'Tiruvallur': 572, 'Tiruvannamalai': 553, 'Tiruvarur': 574, 'Vellore': 543, 'Viluppuram': 542, 'Virudhunagar': 549, 'Adilabad': 582, 'Bhadradri Kothagudem': 583, 'Hyderabad': 581, 'Jagtial': 584, 'Jangaon': 585, 'Jayashankar Bhupalpally': 586, 'Jogulamba Gadwal': 587, 'Kamareddy': 588, 'Karimnagar': 589, 'Khammam': 590, 'Kumuram Bheem': 591, 'Mahabubabad': 592, 'Mahabubnagar': 593, 'Mancherial': 594, 'Medak': 595, 'Medchal': 596, 'Mulugu': 612, 'Nagarkurnool': 597, 'Nalgonda': 598, 'Narayanpet': 613, 'Nirmal': 599, 'Nizamabad': 600, 'Peddapalli': 601, 'Rajanna Sircilla': 602, 'Rangareddy': 603, 'Sangareddy': 604, 'Siddipet': 605, 'Suryapet': 606, 'Vikarabad': 607, 'Wanaparthy': 608, 'Warangal(Rural)': 609, 'Warangal(Urban)': 610, 'Yadadri Bhuvanagiri': 611, 'Dhalai': 614, 'Gomati': 615, 'Khowai': 616, 'North Tripura': 617, 'Sepahijala': 618, 'South Tripura': 619, 'Unakoti': 620, 'West Tripura': 621, 'Agra': 622, 'Aligarh': 623, 'Ambedkar Nagar': 625, 'Amethi': 626, 'Amroha': 627, 'Auraiya': 628, 'Ayodhya': 646, 'Azamgarh': 629, 'Badaun': 630, 'Baghpat': 631, 'Bahraich': 632, 'Balarampur': 633, 'Ballia': 634, 'Banda': 635, 'Barabanki': 636, 'Bareilly': 637, 'Basti': 638, 'Bhadohi': 687, 'Bijnour': 639, 'Bulandshahr': 640, 'Chandauli': 641, 'Chitrakoot': 642, 'Deoria': 643, 'Etah': 644, 'Etawah': 645, 'Farrukhabad': 647, 'Fatehpur': 648, 'Firozabad': 649, 'Gautam Buddha Nagar': 650, 'Ghaziabad': 651, 'Ghazipur': 652, 'Gonda': 653, 'Gorakhpur': 654, 'Hapur': 656, 'Hardoi': 657, 'Hathras': 658, 'Jalaun': 659, 'Jaunpur': 660, 'Jhansi': 661, 'Kannauj': 662, 'Kanpur Dehat': 663, 'Kanpur Nagar': 664, 'Kasganj': 665, 'Kaushambi': 666, 'Kushinagar': 667, 'Lakhimpur Kheri': 668, 'Lalitpur': 669, 'Lucknow': 670, 'Maharajganj': 671, 'Mahoba': 672, 'Mainpuri': 673, 'Mathura': 674, 'Mau': 675, 'Meerut': 676, 'Mirzapur': 677, 'Moradabad': 678, 'Muzaffarnagar': 679, 'Pilibhit': 680, 'Prayagraj': 624, 'Raebareli': 681, 'Rampur': 683, 'Saharanpur': 684, 'Sambhal': 685, 'Sant Kabir Nagar': 686, 'Shahjahanpur': 688, 'Shamli': 689, 'Shravasti': 690, 'Siddharthnagar': 691, 'Sitapur': 692, 'Sonbhadra': 693, 'Sultanpur': 694, 'Unnao': 695, 'Varanasi': 696, 'Almora': 704, 'Bageshwar': 707, 'Chamoli': 699, 'Champawat': 708, 'Dehradun': 697, 'Haridwar': 702, 'Nainital': 709, 'Pauri Garhwal': 698, 'Pithoragarh': 706, 'Rudraprayag': 700, 'Tehri Garhwal': 701, 'Udham Singh Nagar': 705, 'Uttarkashi': 703, 'Alipurduar District': 710, 'Bankura': 711, 'Basirhat HD (North 24 Parganas)': 712, 'Birbhum': 713, 'Bishnupur HD (Bankura)': 714, 'Cooch Behar': 715, 'COOCHBEHAR': 783, 'Dakshin Dinajpur': 716, 'Darjeeling': 717, 'Diamond Harbor HD (S 24 Parganas)': 718, 'East Bardhaman': 719, 'Hoogly': 720, 'Howrah': 721, 'Jalpaiguri': 722, 'Jhargram': 723, 'Kalimpong': 724, 'Kolkata': 725, 'Malda': 726, 'Murshidabad': 727, 'Nadia': 728, 'Nandigram HD (East Medinipore)': 729, 'North 24 Parganas': 730, 'Paschim Medinipore': 731, 'Purba Medinipore': 732, 'Purulia': 733, 'Rampurhat HD (Birbhum)': 734, 'South 24 Parganas': 735, 'Uttar Dinajpur': 736, 'West Bardhaman': 737}
check_district = {'Andaman and Nicobar Islands': [['Nicobar', 'North and Middle Andaman'], ['South Andaman']], 'Andhra Pradesh': [['Anantapur', 'Chittoor'], ['East Godavari', 'Guntur', 'Krishna'], ['Kurnool', 'Prakasam', 'Sri Potti Sriramulu Nellore'], ['Srikakulam', 'Visakhapatnam', 'Vizianagaram'], ['West Godavari', 'YSR District, Kadapa (Cuddapah)']], 'Arunachal Pradesh': [['Anjaw', 'Changlang'], ['Dibang Valley', 'East Kameng', 'East Siang'], ['Itanagar Capital Complex', 'Kamle', 'Kra Daadi'], ['Kurung Kumey', 'Lepa Rada', 'Lohit'], ['Longding', 'Lower Dibang Valley', 'Lower Siang'], ['Lower Subansiri', 'Namsai', 'Pakke Kessang'], ['Papum Pare', 'Shi Yomi', 'Siang'], ['Tawang', 'Tirap', 'Upper Siang'], ['Upper Subansiri', 'West Kameng', 'West Siang']], 'Assam': [['Baksa', 'Barpeta'], ['Biswanath', 'Bongaigaon', 'Cachar'], ['Charaideo', 'Chirang', 'Darrang'], ['Dhemaji', 'Dhubri', 'Dibrugarh'], ['Dima Hasao', 'Goalpara', 'Golaghat'], ['Hailakandi', 'Hojai', 'Jorhat'], ['Kamrup Metropolitan', 'Kamrup Rural', 'Karbi-Anglong'], ['Karimganj', 'Kokrajhar', 'Lakhimpur'], ['Majuli', 'Morigaon', 'Nagaon'], ['Nalbari', 'Sivasagar', 'Sonitpur'], ['South Salmara Mankachar', 'Tinsukia', 'Udalguri'], ['West Karbi Anglong']], 'Bihar': [['Araria', 'Arwal'], ['Aurangabad', 'Banka', 'Begusarai'], ['Bhagalpur', 'Bhojpur', 'Buxar'], ['Darbhanga', 'East Champaran', 'Gaya'], ['Gopalganj', 'Jamui', 'Jehanabad'], ['Kaimur', 'Katihar', 'Khagaria'], ['Kishanganj', 'Lakhisarai', 'Madhepura'], ['Madhubani', 'Munger', 'Muzaffarpur'], ['Nalanda', 'Nawada', 'Patna'], ['Purnia', 'Rohtas', 'Saharsa'], ['Samastipur', 'Saran', 'Sheikhpura'], ['Sheohar', 'Sitamarhi', 'Siwan'], ['Supaul', 'Vaishali', 'West Champaran']], 'Chandigarh': [['Chandigarh']], 'Chhattisgarh': [['Balod', 'Baloda bazar'], ['Balrampur', 'Bastar', 'Bemetara'], ['Bijapur', 'Bilaspur', 'Dantewada'], ['Dhamtari', 'Durg', 'Gariaband'], ['Gaurela Pendra Marwahi ', 'Janjgir-Champa', 'Jashpur'], ['Kanker', 'Kawardha', 'Kondagaon'], ['Korba', 'Koriya', 'Mahasamund'], ['Mungeli', 'Narayanpur', 'Raigarh'], ['Raipur', 'Rajnandgaon', 'Sukma'], ['Surajpur', 'Surguja']], 'Dadra and Nagar Haveli': [['Dadra and Nagar Haveli']], 'Daman and Diu': [['Daman', 'Diu']], 'Delhi': [['Central Delhi', 'East Delhi'], ['New Delhi', 'North Delhi', 'North East Delhi'], ['North West Delhi', 'Shahdara', 'South Delhi'], ['South East Delhi', 'South West Delhi', 'West Delhi']], 'Goa': [['North Goa', 'South Goa']], 'Gujarat': [['Ahmedabad', 'Ahmedabad Corporation'], ['Amreli', 'Anand', 'Aravalli'], ['Banaskantha', 'Bharuch', 'Bhavnagar'], ['Bhavnagar Corporation', 'Botad', 'Chhotaudepur'], ['Dahod', 'Dang', 'Devbhumi Dwaraka'], ['Gandhinagar', 'Gandhinagar Corporation', 'Gir Somnath'], ['Jamnagar', 'Jamnagar Corporation', 'Junagadh'], ['Junagadh Corporation', 'Kheda', 'Kutch'], ['Mahisagar', 'Mehsana', 'Morbi'], ['Narmada', 'Navsari', 'Panchmahal'], ['Patan', 'Porbandar', 'Rajkot'], ['Rajkot Corporation', 'Sabarkantha', 'Surat'], ['Surat Corporation', 'Surendranagar', 'Tapi'], ['Vadodara', 'Vadodara Corporation', 'Valsad']], 'Haryana': [['Ambala', 'Bhiwani'], ['Charkhi Dadri', 'Faridabad', 'Fatehabad'], ['Gurgaon', 'Hisar', 'Jhajjar'], ['Jind', 'Kaithal', 'Karnal'], ['Kurukshetra', 'Mahendragarh', 'Nuh'], ['Palwal', 'Panchkula', 'Panipat'], ['Rewari', 'Rohtak', 'Sirsa'], ['Sonipat', 'Yamunanagar']], 'Himachal Pradesh': [['Bilaspur', 'Chamba'], ['Hamirpur', 'Kangra', 'Kinnaur'], ['Kullu', 'Lahaul Spiti', 'Mandi'], ['Shimla', 'Sirmaur', 'Solan'], ['Una']], 'Jammu and Kashmir': [['Anantnag', 'Bandipore'], ['Baramulla', 'Budgam', 'Doda'], ['Ganderbal', 'Jammu', 'Kathua'], ['Kishtwar', 'Kulgam', 'Kupwara'], ['Poonch', 'Pulwama', 'Rajouri'], ['Ramban', 'Reasi', 'Samba'], ['Shopian', 'Srinagar', 'Udhampur']], 'Jharkhand': [['Bokaro', 'Chatra'], ['Deoghar', 'Dhanbad', 'Dumka'], ['East Singhbhum', 'Garhwa', 'Giridih'], ['Godda', 'Gumla', 'Hazaribagh'], ['Jamtara', 'Khunti', 'Koderma'], ['Latehar', 'Lohardaga', 'Pakur'], ['Palamu', 'Ramgarh', 'Ranchi'], ['Sahebganj', 'Seraikela Kharsawan', 'Simdega'], ['West Singhbhum']], 'Karnataka': [['Bagalkot', 'Bangalore Rural'], ['Bangalore Urban', 'BBMP', 'Belgaum'], ['Bellary', 'Bidar', 'Chamarajanagar'], ['Chikamagalur', 'Chikkaballapur', 'Chitradurga'], ['Dakshina Kannada', 'Davanagere', 'Dharwad'], ['Gadag', 'Gulbarga', 'Hassan'], ['Haveri', 'Kodagu', 'Kolar'], ['Koppal', 'Mandya', 'Mysore'], ['Raichur', 'Ramanagara', 'Shimoga'], ['Tumkur', 'Udupi', 'Uttar Kannada'], ['Vijayapura', 'Yadgir']], 'Kerala': [['Alappuzha', 'Ernakulam'], ['Idukki', 'Kannur', 'Kasaragod'], ['Kollam', 'Kottayam', 'Kozhikode'], ['Malappuram', 'Palakkad', 'Pathanamthitta'], ['Thiruvananthapuram', 'Thrissur', 'Wayanad']], 'Ladakh': [['Kargil', 'Leh']], 'Lakshadweep': [['Agatti Island', 'Lakshadweep']], 'Madhya Pradesh': [['Agar', 'Alirajpur'], ['Anuppur', 'Ashoknagar', 'Balaghat'], ['Barwani', 'Betul', 'Bhind'], ['Bhopal', 'Burhanpur', 'Chhatarpur'], ['Chhindwara', 'Damoh', 'Datia'], ['Dewas', 'Dhar', 'Dindori'], ['Guna', 'Gwalior', 'Harda'], ['Hoshangabad', 'Indore', 'Jabalpur'], ['Jhabua', 'Katni', 'Khandwa'], ['Khargone', 'Mandla', 'Mandsaur'], ['Morena', 'Narsinghpur', 'Neemuch'], ['Panna', 'Raisen', 'Rajgarh'], ['Ratlam', 'Rewa', 'Sagar'], ['Satna', 'Sehore', 'Seoni'], ['Shahdol', 'Shajapur', 'Sheopur'], ['Shivpuri', 'Sidhi', 'Singrauli'], ['Tikamgarh', 'Ujjain', 'Umaria'], ['Vidisha']], 'Maharashtra': [['Ahmednagar', 'Akola'], ['Amravati', 'Aurangabad ', 'Beed'], ['Bhandara', 'Buldhana', 'Chandrapur'], ['Dhule', 'Gadchiroli', 'Gondia'], ['Hingoli', 'Jalgaon', 'Jalna'], ['Kolhapur', 'Latur', 'Mumbai'], ['Nagpur', 'Nanded', 'Nandurbar'], ['Nashik', 'Osmanabad', 'Palghar'], ['Parbhani', 'Pune', 'Raigad'], ['Ratnagiri', 'Sangli', 'Satara'], ['Sindhudurg', 'Solapur', 'Thane'], ['Wardha', 'Washim', 'Yavatmal']], 'Manipur': [['Bishnupur', 'Chandel'], ['Churachandpur', 'Imphal East', 'Imphal West'], ['Jiribam', 'Kakching', 'Kamjong'], ['Kangpokpi', 'Noney', 'Pherzawl'], ['Senapati', 'Tamenglong', 'Tengnoupal'], ['Thoubal', 'Ukhrul']], 'Meghalaya': [['East Garo Hills', 'East Jaintia Hills'], ['East Khasi Hills', 'North Garo Hills', 'Ri-Bhoi'], ['South Garo Hills', 'South West Garo Hills', 'South West Khasi Hills'], ['West Garo Hills', 'West Jaintia Hills', 'West Khasi Hills']], 'Mizoram': [['Aizawl East', 'Aizawl West'], ['Champhai', 'Kolasib', 'Lawngtlai'], ['Lunglei', 'Mamit', 'Serchhip'], ['Siaha']], 'Nagaland': [['Dimapur', 'Kiphire'], ['Kohima', 'Longleng', 'Mokokchung'], ['Mon', 'Peren', 'Phek'], ['Tuensang', 'Wokha', 'Zunheboto']], 'Odisha': [['Angul', 'Balangir'], ['Balasore', 'Bargarh', 'Bhadrak'], ['Boudh', 'Cuttack', 'Deogarh'], ['Dhenkanal', 'Gajapati', 'Ganjam'], ['Jagatsinghpur', 'Jajpur', 'Jharsuguda'], ['Kalahandi', 'Kandhamal', 'Kendrapara'], ['Kendujhar', 'Khurda', 'Koraput'], ['Malkangiri', 'Mayurbhanj', 'Nabarangpur'], ['Nayagarh', 'Nuapada', 'Puri'], ['Rayagada', 'Sambalpur', 'Subarnapur'], ['Sundargarh']], 'Puducherry': [['Karaikal', 'Mahe'], ['Puducherry', 'Yanam']], 'Punjab': [['Amritsar', 'Barnala'], ['Bathinda', 'Faridkot', 'Fatehgarh Sahib'], ['Fazilka', 'Ferozpur', 'Gurdaspur'], ['Hoshiarpur', 'Jalandhar', 'Kapurthala'], ['Ludhiana', 'Mansa', 'Moga'], ['Pathankot', 'Patiala', 'Rup Nagar'], ['Sangrur', 'SAS Nagar', 'SBS Nagar'], ['Sri Muktsar Sahib', 'Tarn Taran']], 'Rajasthan': [['Ajmer', 'Alwar'], ['Banswara', 'Baran', 'Barmer'], ['Bharatpur', 'Bhilwara', 'Bikaner'], ['Bundi', 'Chittorgarh', 'Churu'], ['Dausa', 'Dholpur', 'Dungarpur'], ['Hanumangarh', 'Jaipur I', 'Jaipur II'], ['Jaisalmer', 'Jalore', 'Jhalawar'], ['Jhunjhunu', 'Jodhpur', 'Karauli'], ['Kota', 'Nagaur', 'Pali'], ['Pratapgarh', 'Rajsamand', 'Sawai Madhopur'], ['Sikar', 'Sirohi', 'Sri Ganganagar'], ['Tonk', 'Udaipur']], 'Sikkim': [['East Sikkim', 'North Sikkim'], ['South Sikkim', 'West Sikkim']], 'Tamil Nadu': [['Aranthangi', 'Ariyalur'], ['Attur', 'Chengalpet', 'Chennai'], ['Cheyyar', 'Coimbatore', 'Cuddalore'], ['Dharmapuri', 'Dindigul', 'Erode'], ['Kallakurichi', 'Kanchipuram', 'Kanyakumari'], ['Karur', 'Kovilpatti', 'Krishnagiri'], ['Madurai', 'Nagapattinam', 'Namakkal'], ['Nilgiris', 'Palani', 'Paramakudi'], ['Perambalur', 'Poonamallee', 'Pudukkottai'], ['Ramanathapuram', 'Ranipet', 'Salem'], ['Sivaganga', 'Sivakasi', 'Tenkasi'], ['Thanjavur', 'Theni', 'Thoothukudi (Tuticorin)'], ['Tiruchirappalli', 'Tirunelveli', 'Tirupattur'], ['Tiruppur', 'Tiruvallur', 'Tiruvannamalai'], ['Tiruvarur', 'Vellore', 'Viluppuram'], ['Virudhunagar']], 'Telangana': [['Adilabad', 'Bhadradri Kothagudem'], ['Hyderabad', 'Jagtial', 'Jangaon'], ['Jayashankar Bhupalpally', 'Jogulamba Gadwal', 'Kamareddy'], ['Karimnagar', 'Khammam', 'Kumuram Bheem'], ['Mahabubabad', 'Mahabubnagar', 'Mancherial'], ['Medak', 'Medchal', 'Mulugu'], ['Nagarkurnool', 'Nalgonda', 'Narayanpet'], ['Nirmal', 'Nizamabad', 'Peddapalli'], ['Rajanna Sircilla', 'Rangareddy', 'Sangareddy'], ['Siddipet', 'Suryapet', 'Vikarabad'], ['Wanaparthy', 'Warangal(Rural)', 'Warangal(Urban)'], ['Yadadri Bhuvanagiri']], 'Tripura': [['Dhalai', 'Gomati'], ['Khowai', 'North Tripura', 'Sepahijala'], ['South Tripura', 'Unakoti', 'West Tripura']], 'Uttar Pradesh': [['Agra', 'Aligarh'], ['Ambedkar Nagar', 'Amethi', 'Amroha'], ['Auraiya', 'Ayodhya', 'Azamgarh'], ['Badaun', 'Baghpat', 'Bahraich'], ['Balarampur', 'Ballia', 'Banda'], ['Barabanki', 'Bareilly', 'Basti'], ['Bhadohi', 'Bijnour', 'Bulandshahr'], ['Chandauli', 'Chitrakoot', 'Deoria'], ['Etah', 'Etawah', 'Farrukhabad'], ['Fatehpur', 'Firozabad', 'Gautam Buddha Nagar'], ['Ghaziabad', 'Ghazipur', 'Gonda'], ['Gorakhpur', 'Hamirpur', 'Hapur'], ['Hardoi', 'Hathras', 'Jalaun'], ['Jaunpur', 'Jhansi', 'Kannauj'], ['Kanpur Dehat', 'Kanpur Nagar', 'Kasganj'], ['Kaushambi', 'Kushinagar', 'Lakhimpur Kheri'], ['Lalitpur', 'Lucknow', 'Maharajganj'], ['Mahoba', 'Mainpuri', 'Mathura'], ['Mau', 'Meerut', 'Mirzapur'], ['Moradabad', 'Muzaffarnagar', 'Pilibhit'], ['Pratapgarh', 'Prayagraj', 'Raebareli'], ['Rampur', 'Saharanpur', 'Sambhal'], ['Sant Kabir Nagar', 'Shahjahanpur', 'Shamli'], ['Shravasti', 'Siddharthnagar', 'Sitapur'], ['Sonbhadra', 'Sultanpur', 'Unnao'], ['Varanasi']], 'Uttarakhand': [['Almora', 'Bageshwar'], ['Chamoli', 'Champawat', 'Dehradun'], ['Haridwar', 'Nainital', 'Pauri Garhwal'], ['Pithoragarh', 'Rudraprayag', 'Tehri Garhwal'], ['Udham Singh Nagar', 'Uttarkashi']], 'West Bengal': [['Alipurduar District', 'Bankura'], ['Basirhat HD (North 24 Parganas)', 'Birbhum', 'Bishnupur HD (Bankura)'], ['Cooch Behar', 'COOCHBEHAR', 'Dakshin Dinajpur'], ['Darjeeling', 'Diamond Harbor HD (S 24 Parganas)', 'East Bardhaman'], ['Hoogly', 'Howrah', 'Jalpaiguri'], ['Jhargram', 'Kalimpong', 'Kolkata'], ['Malda', 'Murshidabad', 'Nadia'], ['Nandigram HD (East Medinipore)', 'North 24 Parganas', 'Paschim Medinipore'], ['Purba Medinipore', 'Purulia', 'Rampurhat HD (Birbhum)'], ['South 24 Parganas', 'Uttar Dinajpur', 'West Bardhaman']]}
check_state = [['Andaman and Nicobar Islands', 'Andhra Pradesh'], ['Arunachal Pradesh', 'Assam', 'Bihar'], ['Chandigarh', 'Chhattisgarh', 'Dadra and Nagar Haveli'], ['Daman and Diu', 'Delhi', 'Goa'], ['Gujarat', 'Haryana', 'Himachal Pradesh'], ['Jammu and Kashmir', 'Jharkhand', 'Karnataka'], ['Kerala', 'Ladakh', 'Lakshadweep'], ['Madhya Pradesh', 'Maharashtra', 'Manipur'], ['Meghalaya', 'Mizoram', 'Nagaland'], ['Odisha', 'Puducherry', 'Punjab'], ['Rajasthan', 'Sikkim', 'Tamil Nadu'], ['Telangana', 'Tripura', 'Uttar Pradesh'], ['Uttarakhand', 'West Bengal']]
flat_check_states = ['Andaman and Nicobar Islands', 'Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chandigarh', 'Chhattisgarh', 'Dadra and Nagar Haveli', 'Daman and Diu', 'Delhi', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jammu and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Ladakh', 'Lakshadweep', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Puducherry', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Telangana', 'Tripura', 'Uttar Pradesh', 'Uttarakhand', 'West Bengal']
def get_states(self):
return self.states
def get_flat_states(self):
return self.flat_states
def get_district(self,state):
if state in self.district_wise:
return self.district_wise[state]
else:
return 'Error'
def get_check_states(self):
return self.check_state
def get_flat_check_states(self):
return self.flat_states
def get_check_district(self,state):
if state in self.check_district:
return self.check_district[state]
else:
return 'Error'
def get_district_id(self,district):
if district in self.district_id:
return self.district_id[district]
else:
return 'Error'