Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Indian Cities JSON
a json file containing 1220 indian cities and their respective states
a json file containing 1222 indian cities and their respective states

After hundreds of unsuccessful searches for a rails gem to add the cities and states select option which could work the way I wanted it to, I gave up. Then, I began searching for a .json from which I could directly fetch the information and make it work, there too, I failed, I couldn't find the "perfect" file.

Expand Down
1 change: 1 addition & 0 deletions cities-name-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@
"Savner",
"Sawai Madhopur",
"Sawantwadi",
"Secunderabad",
"Sedam",
"Sehore",
"Sendhwa",
Expand Down
37 changes: 21 additions & 16 deletions cities.json
Original file line number Diff line number Diff line change
Expand Up @@ -6080,28 +6080,33 @@
"state": "Gujarat"
},
{
"id":"1217",
"name":"Kullu",
"state":"Himachal Pradesh"
"id": "1217",
"name": "Kullu",
"state": "Himachal Pradesh"
},
{
"id":"1218",
"name":"Manali",
"state":"Himachal Praddesh"
"id": "1218",
"name": "Manali",
"state": "Himachal Praddesh"
},
{
"id":"1219",
"name":"Mirzapur",
"state":"Uttar Pradesh"
"id": "1219",
"name": "Mirzapur",
"state": "Uttar Pradesh"
},
{
"id":"1220",
"name":"Kota",
"state":"Rajasthan"
"id": "1220",
"name": "Kota",
"state": "Rajasthan"
},
{
"id":"1221",
"name":"Dispur",
"state":"Assam"
"id": "1221",
"name": "Dispur",
"state": "Assam"
},
{
"id": "1222",
"name": "Secunderabad",
"state": "Telangana"
}
]
]