• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

nshntarora/Indian-Cities-JSON: a json file containing 1220 indian cities and the ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

nshntarora/Indian-Cities-JSON

开源软件地址:

https://github.com/nshntarora/Indian-Cities-JSON

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Indian Cities JSON

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap