add address

This commit is contained in:
handongxun 2020-08-10 16:38:34 +08:00
parent 4bc6eddab5
commit 0168b755ad
9 changed files with 16544 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{
"schema": {
"bsonType": "object",
"required": ["code", "name", "city_code", "province_code"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"code": {
"bsonType": "string",
"description": "县级编码"
},
"name": {
"bsonType": "string",
"description": "县级名称"
},
"city_code": {
"bsonType": "string",
"description": "地级编码"
},
"province_code": {
"bsonType": "string",
"description": "省级编码"
}
}
},
"data": "data.json",
"index": []
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
{
"name": "@opendb/opendb-address-areas",
"version": "0.0.1",
"description": "opendb-address-areas",
"keywords": ["区", "地址"],
"opendb": {
"title": "区",
"type": "collection"
}
}

View File

@ -0,0 +1,25 @@
{
"schema": {
"bsonType": "object",
"required": ["code", "name", "province_code"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"code": {
"bsonType": "string",
"description": "地级编码"
},
"name": {
"bsonType": "string",
"description": "地级名称"
},
"province_code": {
"bsonType": "string",
"description": "省级编码"
}
}
},
"data": "data.json",
"index": []
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
{
"name": "@opendb/opendb-address-cities",
"version": "0.0.1",
"description": "opendb-address-cities",
"keywords": ["市", "地址"],
"opendb": {
"title": "市",
"type": "collection"
}
}

View File

@ -0,0 +1,21 @@
{
"schema": {
"bsonType": "object",
"required": ["code", "name"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"code": {
"bsonType": "string",
"description": "省级编码"
},
"name": {
"bsonType": "string",
"description": "省级名称"
}
}
},
"data": "data.json",
"index": []
}

View File

@ -0,0 +1,94 @@
[{
"code": "110000",
"name": "北京市"
}, {
"code": "120000",
"name": "天津市"
}, {
"code": "130000",
"name": "河北省"
}, {
"code": "140000",
"name": "山西省"
}, {
"code": "150000",
"name": "内蒙古自治区"
}, {
"code": "210000",
"name": "辽宁省"
}, {
"code": "220000",
"name": "吉林省"
}, {
"code": "230000",
"name": "黑龙江省"
}, {
"code": "310000",
"name": "上海市"
}, {
"code": "320000",
"name": "江苏省"
}, {
"code": "330000",
"name": "浙江省"
}, {
"code": "340000",
"name": "安徽省"
}, {
"code": "350000",
"name": "福建省"
}, {
"code": "360000",
"name": "江西省"
}, {
"code": "370000",
"name": "山东省"
}, {
"code": "410000",
"name": "河南省"
}, {
"code": "420000",
"name": "湖北省"
}, {
"code": "430000",
"name": "湖南省"
}, {
"code": "440000",
"name": "广东省"
}, {
"code": "450000",
"name": "广西壮族自治区"
}, {
"code": "460000",
"name": "海南省"
}, {
"code": "500000",
"name": "重庆市"
}, {
"code": "510000",
"name": "四川省"
}, {
"code": "520000",
"name": "贵州省"
}, {
"code": "530000",
"name": "云南省"
}, {
"code": "540000",
"name": "西藏自治区"
}, {
"code": "610000",
"name": "陕西省"
}, {
"code": "620000",
"name": "甘肃省"
}, {
"code": "630000",
"name": "青海省"
}, {
"code": "640000",
"name": "宁夏回族自治区"
}, {
"code": "650000",
"name": "新疆维吾尔自治区"
}]

View File

@ -0,0 +1,10 @@
{
"name": "@opendb/opendb-address-provinces",
"version": "0.0.1",
"description": "opendb-address-provinces",
"keywords": ["省", "地址"],
"opendb": {
"title": "省",
"type": "collection"
}
}