Skip to content

a json file containing 1215 indian cities and their respective states

Notifications You must be signed in to change notification settings

Ravi61/Indian-Cities-JSON

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Indian Cities JSON

a json file containing 1215 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.

So, I downloaded the largest Excel sheet of cities I could find, removed every column I didn't need and converted it to a JSON.

Here is a small snippet :)

[
    {
        "id": "1",
        "name": "Mumbai",
        "state": "Maharashtra"
    },
    {
        "id": "2",
        "name": "Delhi",
        "state": "Delhi"
    },
    {
        "id": "3",
        "name": "Bengaluru",
        "state": "Karnataka"
    }
]

and if you don't see your city here, create a pull request and add it to this list.

About

a json file containing 1215 indian cities and their respective states

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published