找个邮政编码数据库,下载了一堆,挑出最好的一个,来自github,包含:
行政代码、邮政编码、区号、名称、简称、经纬度
----------------------------------------------------------------------
爬取国家统计局2019年的行政区域数据(截止2019年10月31日),共78万多记录.
项目地址:https://github.com/kakuilan/china_area_mysql
CREATE TABLE `cnarea_2019` (
`id` mediumint(7) unsigned NOT NULL AUTO_INCREMENT,
`level` tinyint(1) unsigned NOT NULL COMMENT '层级',
`parent_code` bigint(14) unsigned NOT NULL DEFAULT '0' COMMENT '父级行政代码',
`area_code` bigint(14) unsigned NOT NULL DEFAULT '0' COMMENT '行政代码',
`zip_code` mediumint(6) unsigned zerofill NOT NULL DEFAULT '000000' COMMENT '邮政编码',
`city_code` char(6) NOT NULL DEFAULT '' COMMENT '区号',
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '名称',
`short_name` varchar(50) NOT NULL DEFAULT '' COMMENT '简称',
`merger_name` varchar(50) NOT NULL DEFAULT '' COMMENT '组合名',
`pinyin` varchar(30) NOT NULL DEFAULT '' COMMENT '拼音',
`lng` decimal(10,6) NOT NULL DEFAULT '0.000000' COMMENT '经度',
`lat` decimal(10,6) NOT NULL DEFAULT '0.000000' COMMENT '纬度',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_code` (`area_code`) USING BTREE,
KEY `idx_parent_code` (`parent_code`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=783563 DEFAULT CHARSET=utf8 COMMENT='中国行政地区表';
该博客介绍了从github找到的邮政编码数据库,包含行政代码、邮编等信息。还提及爬取国家统计局2019年行政区域数据,共78万多记录,并给出项目地址及数据库表的创建语句。
5万+

被折叠的 条评论
为什么被折叠?



