Skip to content

Commit

Permalink
add json format
Browse files Browse the repository at this point in the history
  • Loading branch information
adyliu committed Nov 13, 2018
1 parent e105d5b commit 328239b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,47 @@ code province city county town villagetr
110101001011 北京市 市辖区 东城区 东华门街道办事处 甘雨社区居委会
110101001013 北京市 市辖区 东城区 东华门街道办事处 台基厂社区居委会
```

## 三级区划的JSON格式

JSON格式,适合web端js加载。


```json
[
{
"code": 110000000000,
"name": "北京市",
"level": 1,
"pcode": 0,
"children": [
{
"code": 110100000000,
"name": "市辖区",
"level": 2,
"pcode": 110000000000,
"children": [
{
"code": 110101000000,
"name": "东城区",
"level": 3,
"pcode": 110100000000
},
{
"code": 110102000000,
"name": "西城区",
"level": 3,
"pcode": 110100000000
}
]
}
]
}
]
```

## 文件列表

- area_code_2018.csv.gz
- area_code_2018.sql.gz
- area_code_2018.json
1 change: 1 addition & 0 deletions area_code_2018.json

Large diffs are not rendered by default.

0 comments on commit 328239b

Please sign in to comment.