Giter Site home page Giter Site logo

city_json's Introduction

**大陆城市json&港澳台、世界城市json

上传于 2019-10-25
项目说明

由于公司小程序中需要实现按照字母排序城市的列表,用到**城市以及世界城市的json,但是手头有没有该数据json,所以就去爬取了飞猪旅游的城市json列表并做了一些去重处理。

项目目录

|--china-city-list.json //**大陆城市json

|--world-city-list.json //港澳台、世界城市json

数据结构
<!-- china-city-list.json -->
{
  city_list:[
    {
      "k":"A",    //城市首字母缩写
      "n":[{
          "c":"abazangzuqiangzuzizhizhou",    //城市中文拼音
          "cityCode":513200,    //城市代码
          "n":"阿坝藏族羌族自治州",   //城市名称
          "p":"四川省"    //城市所在省
        }]
  ,
  classify_list:[]    //首字母缩写数组
}

<!-- world-city-list.json -->
{
  city_list:[
    {
      "k":"A",    //城市首字母缩写
      "n":[{
          "c":"aomen",    //城市中文拼音
          "cityCode":820100,    //城市代码
          "m":"Macau",    //城市英文全称
          "n":"澳门",   //城市名称
          "x":"China",    //国家英文
          "y":"**",      //城市所在国家
//        "p":"**省"    //**省所属的城市会有该项
        }]
  ,
  classify_list:[]    //首字母缩写数组
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.