-
-
Save shubhamjain/35ed77154f577295707a to your computer and use it in GitHub Desktop.
{ | |
"AN":"Andaman and Nicobar Islands", | |
"AP":"Andhra Pradesh", | |
"AR":"Arunachal Pradesh", | |
"AS":"Assam", | |
"BR":"Bihar", | |
"CG":"Chandigarh", | |
"CH":"Chhattisgarh", | |
"DN":"Dadra and Nagar Haveli", | |
"DD":"Daman and Diu", | |
"DL":"Delhi", | |
"GA":"Goa", | |
"GJ":"Gujarat", | |
"HR":"Haryana", | |
"HP":"Himachal Pradesh", | |
"JK":"Jammu and Kashmir", | |
"JH":"Jharkhand", | |
"KA":"Karnataka", | |
"KL":"Kerala", | |
"LA":"Ladakh", | |
"LD":"Lakshadweep", | |
"MP":"Madhya Pradesh", | |
"MH":"Maharashtra", | |
"MN":"Manipur", | |
"ML":"Meghalaya", | |
"MZ":"Mizoram", | |
"NL":"Nagaland", | |
"OR":"Odisha", | |
"PY":"Puducherry", | |
"PB":"Punjab", | |
"RJ":"Rajasthan", | |
"SK":"Sikkim", | |
"TN":"Tamil Nadu", | |
"TS":"Telangana", | |
"TR":"Tripura", | |
"UP":"Uttar Pradesh", | |
"UK":"Uttarakhand", | |
"WB":"West Bengal" | |
} |
Change this :
{
"key": "UK",
"name": "Uttar Pradesh"
},
{
"key": "UP",
"name": "Uttarakhand"
}
To this :
{
"key": "UP",
"name": "Uttar Pradesh"
},
{
"key": "UK",
"name": "Uttarakhand"
},
where is lat and lon position noobs, fake coders??
Update to this:
[
{
"code": "AN",
"name": "Andaman and Nicobar Islands"
},
{
"code": "AP",
"name": "Andhra Pradesh"
},
{
"code": "AR",
"name": "Arunachal Pradesh"
},
{
"code": "AS",
"name": "Assam"
},
{
"code": "BR",
"name": "Bihar"
},
{
"code": "CG",
"name": "Chandigarh"
},
{
"code": "CH",
"name": "Chhattisgarh"
},
{
"code": "DH",
"name": "Dadra and Nagar Haveli"
},
{
"code": "DD",
"name": "Daman and Diu"
},
{
"code": "DL",
"name": "Delhi"
},
{
"code": "GA",
"name": "Goa"
},
{
"code": "GJ",
"name": "Gujarat"
},
{
"code": "HR",
"name": "Haryana"
},
{
"code": "HP",
"name": "Himachal Pradesh"
},
{
"code": "JK",
"name": "Jammu and Kashmir"
},
{
"code": "JH",
"name": "Jharkhand"
},
{
"code": "KA",
"name": "Karnataka"
},
{
"code": "KL",
"name": "Kerala"
},
{
"code": "LD",
"name": "Lakshadweep"
},
{
"code": "MP",
"name": "Madhya Pradesh"
},
{
"code": "MH",
"name": "Maharashtra"
},
{
"code": "MN",
"name": "Manipur"
},
{
"code": "ML",
"name": "Meghalaya"
},
{
"code": "MZ",
"name": "Mizoram"
},
{
"code": "NL",
"name": "Nagaland"
},
{
"code": "OR",
"name": "Odisha"
},
{
"code": "PY",
"name": "Puducherry"
},
{
"code": "PB",
"name": "Punjab"
},
{
"code": "RJ",
"name": "Rajasthan"
},
{
"code": "SK",
"name": "Sikkim"
},
{
"code": "TN",
"name": "Tamil Nadu"
},
{
"code": "TS",
"name": "Telangana"
},
{
"code": "TR",
"name": "Tripura"
},
{
"code": "UP",
"name": "Uttar Pradesh"
},
{
"code": "UK",
"name": "Uttarakhand"
},
{
"code": "WB",
"name": "West Bengal"
}
]
[{"code": "AN","name": "Andaman and Nicobar Islands"},
{"code": "AP","name": "Andhra Pradesh"},
{"code": "AR","name": "Arunachal Pradesh"},
{"code": "AS","name": "Assam"},
{"code": "BR","name": "Bihar"},
{"code": "CG","name": "Chandigarh"},
{"code": "CH","name": "Chhattisgarh"},
{"code": "DH","name": "Dadra and Nagar Haveli"},
{"code": "DD","name": "Daman and Diu"},
{"code": "DL","name": "Delhi"},
{"code": "GA","name": "Goa"},
{"code": "GJ","name": "Gujarat"},
{"code": "HR","name": "Haryana"},
{"code": "HP","name": "Himachal Pradesh"},
{"code": "JK","name": "Jammu and Kashmir"},
{"code": "JH","name": "Jharkhand"},
{"code": "KA","name": "Karnataka"},
{"code": "KL","name": "Kerala"},
{"code": "LD","name": "Lakshadweep"},
{"code": "MP","name": "Madhya Pradesh"},
{"code": "MH","name": "Maharashtra"},
{"code": "MN","name": "Manipur"},
{"code": "ML","name": "Meghalaya"},
{"code": "MZ","name": "Mizoram"},
{"code": "NL","name": "Nagaland"},
{"code": "OR","name": "Odisha"},
{"code": "PY","name": "Puducherry"},
{"code": "PB","name": "Punjab"},
{"code": "RJ","name": "Rajasthan"},
{"code": "SK","name": "Sikkim"},
{"code": "TN","name": "Tamil Nadu"},
{"code": "TS","name": "Telangana"},
{"code": "TR","name": "Tripura"},
{"code": "UK","name": "Uttarakhand"},
{"code": "UP","name": "Uttar Pradesh"},
{"code": "WB","name": "West Bengal"}]
state.csv
,key,name
0,AN,Andaman and Nicobar Islands
1,AP,Andhra Pradesh
2,AR,Arunachal Pradesh
3,AS,Assam
4,BR,Bihar
5,CG,Chandigarh
6,CH,Chhattisgarh
7,DH,Dadra and Nagar Haveli
8,DD,Daman and Diu
9,DL,Delhi
10,GA,Goa
11,GJ,Gujarat
12,HR,Haryana
13,HP,Himachal Pradesh
14,JK,Jammu and Kashmir
15,JH,Jharkhand
16,KA,Karnataka
17,KL,Kerala
18,LD,Lakshadweep
19,MP,Madhya Pradesh
20,MH,Maharashtra
21,MN,Manipur
22,ML,Meghalaya
23,MZ,Mizoram
24,NL,Nagaland
25,OR,Odisha
26,PY,Puducherry
27,PB,Punjab
28,RJ,Rajasthan
29,SK,Sikkim
30,TN,Tamil Nadu
31,TS,Telangana
32,TR,Tripura
33,UK,Uttar Pradesh
34,UP,Uttarakhand
35,WB,West Bengal
state.html
key | name | |
---|---|---|
0 | AN | Andaman and Nicobar Islands |
1 | AP | Andhra Pradesh |
2 | AR | Arunachal Pradesh |
3 | AS | Assam |
4 | BR | Bihar |
5 | CG | Chandigarh |
6 | CH | Chhattisgarh |
7 | DH | Dadra and Nagar Haveli |
8 | DD | Daman and Diu |
9 | DL | Delhi |
10 | GA | Goa |
11 | GJ | Gujarat |
12 | HR | Haryana |
13 | HP | Himachal Pradesh |
14 | JK | Jammu and Kashmir |
15 | JH | Jharkhand |
16 | KA | Karnataka |
17 | KL | Kerala |
18 | LD | Lakshadweep |
19 | MP | Madhya Pradesh |
20 | MH | Maharashtra |
21 | MN | Manipur |
22 | ML | Meghalaya |
23 | MZ | Mizoram |
24 | NL | Nagaland |
25 | OR | Odisha |
26 | PY | Puducherry |
27 | PB | Punjab |
28 | RJ | Rajasthan |
29 | SK | Sikkim |
30 | TN | Tamil Nadu |
31 | TS | Telangana |
32 | TR | Tripura |
33 | UK | Uttar Pradesh |
34 | UP | Uttarakhand |
35 | WB | West Bengal |
state.json
{"Unnamed: 0":{"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23,"24":24,"25":25,"26":26,"27":27,"28":28,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35},"key":{"0":"AN","1":"AP","2":"AR","3":"AS","4":"BR","5":"CG","6":"CH","7":"DH","8":"DD","9":"DL","10":"GA","11":"GJ","12":"HR","13":"HP","14":"JK","15":"JH","16":"KA","17":"KL","18":"LD","19":"MP","20":"MH","21":"MN","22":"ML","23":"MZ","24":"NL","25":"OR","26":"PY","27":"PB","28":"RJ","29":"SK","30":"TN","31":"TS","32":"TR","33":"UK","34":"UP","35":"WB"},"name":{"0":"Andaman and Nicobar Islands","1":"Andhra Pradesh","2":"Arunachal Pradesh","3":"Assam","4":"Bihar","5":"Chandigarh","6":"Chhattisgarh","7":"Dadra and Nagar Haveli","8":"Daman and Diu","9":"Delhi","10":"Goa","11":"Gujarat","12":"Haryana","13":"Himachal Pradesh","14":"Jammu and Kashmir","15":"Jharkhand","16":"Karnataka","17":"Kerala","18":"Lakshadweep","19":"Madhya Pradesh","20":"Maharashtra","21":"Manipur","22":"Meghalaya","23":"Mizoram","24":"Nagaland","25":"Odisha","26":"Puducherry","27":"Punjab","28":"Rajasthan","29":"Sikkim","30":"Tamil Nadu","31":"Telangana","32":"Tripura","33":"Uttar Pradesh","34":"Uttarakhand","35":"West Bengal"}}
Name-only Array 🇮🇳🇮🇳
Seperate Jammu, Kashmir and Ladakh
['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', 'Jharkhand', 'Karnataka', 'Kashmir', 'Kerala', 'Ladakh', 'Lakshadweep', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Puducherry', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Telangana', 'Tripura', 'Uttarakhand', 'Uttar Pradesh', 'West Bengal']
@shiva0704 There is no state called Jammu and Kashmir anymore
@shiva0704 There is no state called Jammu and Kashmir anymore
Jammu & Kashmir state has been split to 2 union territories - Jammu & Kashmir, Ladakh
not Jammu, Kashmir, Ladakh
@shiva0704 aw man you're right
@shiva0704 There is no state called Jammu and Kashmir anymore
Jammu & Kashmir state has been split to 2 union territories - Jammu & Kashmir, Ladakh
not Jammu, Kashmir, Ladakh
Thank you. Updated with your list.
Here you have States, Capital, and Districts...
https://github.com/Dhaneshmonds/webiste-utilities/blob/master/state-districts.json
https://gist.github.com/Dhaneshmonds/1b0ca257b1c34e4842528dcb826ee880
Thank you @Dhaneshmonds, This is really helping us! 🍻
https://gist.github.com/Dhaneshmonds/1b0ca257b1c34e4842528dcb826ee880
Thank you @Dhaneshmonds, This is really helping us! 🍻
It's my pleasure
In proper JSON format https://gist.github.com/HarshilLalka/cca2dfc3fd36a086938604e4237c7d2e
In proper JSON format https://github.com/HarshilLalka/IndianState.JSON.git
Thank You, needed it very much :)
Name-only Array 🇮🇳🇮🇳
Seperate Jammu, Kashmir and Ladakh['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', 'Jharkhand', 'Karnataka', 'Kashmir', 'Kerala', 'Ladakh', 'Lakshadweep', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Nagaland', 'Odisha', 'Puducherry', 'Punjab', 'Rajasthan', 'Sikkim', 'Tamil Nadu', 'Telangana', 'Tripura', 'Uttarakhand', 'Uttar Pradesh', 'West Bengal']
thanks! searching for this info only
The two union territories - "Dadra and Nagar Haveli" and "Daman and Diu" are merged and now known as "Dadra and Nagar Haveli and Daman and Diu". [source - Wikipedia]
This thread has been really helpful.
Thanks @Dhaneshmonds and @shubhamjain.
Dadra Nagar haveli and Daman diu single ut now, with code DNHDD
If any one is searching for mapping from the indian state codes to state names: https://gist.github.com/Eunoia1729/b929d16db7207eec999df8ca5ecff782
state.csv
,key,name 0,AN,Andaman and Nicobar Islands 1,AP,Andhra Pradesh 2,AR,Arunachal Pradesh 3,AS,Assam 4,BR,Bihar 5,CG,Chandigarh 6,CH,Chhattisgarh 7,DH,Dadra and Nagar Haveli 8,DD,Daman and Diu 9,DL,Delhi 10,GA,Goa 11,GJ,Gujarat 12,HR,Haryana 13,HP,Himachal Pradesh 14,JK,Jammu and Kashmir 15,JH,Jharkhand 16,KA,Karnataka 17,KL,Kerala 18,LD,Lakshadweep 19,MP,Madhya Pradesh 20,MH,Maharashtra 21,MN,Manipur 22,ML,Meghalaya 23,MZ,Mizoram 24,NL,Nagaland 25,OR,Odisha 26,PY,Puducherry 27,PB,Punjab 28,RJ,Rajasthan 29,SK,Sikkim 30,TN,Tamil Nadu 31,TS,Telangana 32,TR,Tripura 33,UP,Uttar Pradesh 34,UK,Uttarakhand 35,WB,West Bengal
state.html
key name
0 AN Andaman and Nicobar Islands
1 AP Andhra Pradesh
2 AR Arunachal Pradesh
3 AS Assam
4 BR Bihar
5 CG Chandigarh
6 CH Chhattisgarh
7 DH Dadra and Nagar Haveli
8 DD Daman and Diu
9 DL Delhi
10 GA Goa
11 GJ Gujarat
12 HR Haryana
13 HP Himachal Pradesh
14 JK Jammu and Kashmir
15 JH Jharkhand
16 KA Karnataka
17 KL Kerala
18 LD Lakshadweep
19 MP Madhya Pradesh
20 MH Maharashtra
21 MN Manipur
22 ML Meghalaya
23 MZ Mizoram
24 NL Nagaland
25 OR Odisha
26 PY Puducherry
27 PB Punjab
28 RJ Rajasthan
29 SK Sikkim
30 TN Tamil Nadu
31 TS Telangana
32 TR Tripura
33 UP Uttar Pradesh
34 UK Uttarakhand
35 WB West Bengalstate.json
{"Unnamed: 0":{"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23,"24":24,"25":25,"26":26,"27":27,"28":28,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35},"key":{"0":"AN","1":"AP","2":"AR","3":"AS","4":"BR","5":"CG","6":"CH","7":"DH","8":"DD","9":"DL","10":"GA","11":"GJ","12":"HR","13":"HP","14":"JK","15":"JH","16":"KA","17":"KL","18":"LD","19":"MP","20":"MH","21":"MN","22":"ML","23":"MZ","24":"NL","25":"OR","26":"PY","27":"PB","28":"RJ","29":"SK","30":"TN","31":"TS","32":"TR","33":"UP","34":"UK","35":"WB"},"name":{"0":"Andaman and Nicobar Islands","1":"Andhra Pradesh","2":"Arunachal Pradesh","3":"Assam","4":"Bihar","5":"Chandigarh","6":"Chhattisgarh","7":"Dadra and Nagar Haveli","8":"Daman and Diu","9":"Delhi","10":"Goa","11":"Gujarat","12":"Haryana","13":"Himachal Pradesh","14":"Jammu and Kashmir","15":"Jharkhand","16":"Karnataka","17":"Kerala","18":"Lakshadweep","19":"Madhya Pradesh","20":"Maharashtra","21":"Manipur","22":"Meghalaya","23":"Mizoram","24":"Nagaland","25":"Odisha","26":"Puducherry","27":"Punjab","28":"Rajasthan","29":"Sikkim","30":"Tamil Nadu","31":"Telangana","32":"Tripura","33":"Uttar Pradesh","34":"Uttarakhand","35":"West Bengal"}}
Here, I have corrected the UP and UK for Uttar Pradesh and Uttarakhand respectively
[
{
"value":"AN",
"label":"Andaman and Nicobar Islands"
},
{
"value":"AP",
"label":"Andhra Pradesh"
},
{
"value":"AR",
"label":"Arunachal Pradesh"
},
{
"value":"AS",
"label":"Assam"
},
{
"value":"BR",
"label":"Bihar"
},
{
"value":"CG",
"label":"Chandigarh"
},
{
"value":"CH",
"label":"Chhattisgarh"
},
{
"value":"DH",
"label":"Dadra and Nagar Haveli"
},
{
"value":"DD",
"label":"Daman and Diu"
},
{
"value":"DL",
"label":"Delhi"
},
{
"value":"GA",
"label":"Goa"
},
{
"value":"GJ",
"label":"Gujarat"
},
{
"value":"HR",
"label":"Haryana"
},
{
"value":"HP",
"label":"Himachal Pradesh"
},
{
"value":"JK",
"label":"Jammu and Kashmir"
},
{
"value":"JH",
"label":"Jharkhand"
},
{
"value":"KA",
"label":"Karnataka"
},
{
"value":"KL",
"label":"Kerala"
},
{
"value":"LD",
"label":"Lakshadweep"
},
{
"value":"MP",
"label":"Madhya Pradesh"
},
{
"value":"MH",
"label":"Maharashtra"
},
{
"value":"MN",
"label":"Manipur"
},
{
"value":"ML",
"label":"Meghalaya"
},
{
"value":"MZ",
"label":"Mizoram"
},
{
"value":"NL",
"label":"Nagaland"
},
{
"value":"OR",
"label":"Odisha"
},
{
"value":"PY",
"label":"Puducherry"
},
{
"value":"PB",
"label":"Punjab"
},
{
"value":"RJ",
"label":"Rajasthan"
},
{
"value":"SK",
"label":"Sikkim"
},
{
"value":"TN",
"label":"Tamil Nadu"
},
{
"value":"TS",
"label":"Telangana"
},
{
"value":"TR",
"label":"Tripura"
},
{
"value":"UK",
"label":"Uttarakhand"
},
{
"value":"UP",
"label":"Uttar Pradesh"
},
{
"value":"WB",
"label":"West Bengal"
}
]
Please update them: