{"id":22153529,"url":"https://github.com/callmenp/gb2260","last_synced_at":"2025-04-10T16:04:36.175Z","repository":{"id":92045528,"uuid":"202683082","full_name":"CallMeNP/GB2260","owner":"CallMeNP","description":"中华人民共和国行政区划代码（包含历年更新）","archived":false,"fork":false,"pushed_at":"2019-08-16T08:10:00.000Z","size":103,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:46:02.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CallMeNP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-16T07:47:08.000Z","updated_at":"2023-11-09T04:48:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"685a2dc0-1ba1-49aa-b23d-83051cc6ad22","html_url":"https://github.com/CallMeNP/GB2260","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CallMeNP%2FGB2260","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CallMeNP%2FGB2260/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CallMeNP%2FGB2260/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CallMeNP%2FGB2260/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CallMeNP","download_url":"https://codeload.github.com/CallMeNP/GB2260/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248250084,"owners_count":21072528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T01:21:00.924Z","updated_at":"2025-04-10T16:04:36.157Z","avatar_url":"https://github.com/CallMeNP.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 中华人民共和国行政区划代码（GB/T 2260)\r\n\u003e 英文名为 Codes for the administrative divisions of the People's Republic of China\r\n\r\n仅收录县级以上部分，即 6 位代码。按照标准，6 位数字代码，包含三级地理信息。\r\n\u003e 代码从左至右的含义是：\u003cbr\u003e\r\n\u003e 第一、二位表示省（自治区、直辖市、特别行政区）。\u003cbr\u003e\r\n\u003e 第三、四位表示市（地区、自治州、盟及国家直辖市所属市辖区和县的汇总码）。\u003cbr\u003e\r\n\u003e 第五、六位表示县（市辖区、县级市、旗）。\u003cbr\u003e\r\n\r\n数据来源：[中华人民共和国民政部-\u003e民政数据-\u003e行政区划代码](http://www.mca.gov.cn/article/sj/xzqh/2019/)\r\n\r\n## 本库特点：含逐年变更历史\r\n该来源提供了1980年来每年的版本。由于历年的更新，会有部分代码在后续版本中不再出现。而这部分代码在当年颁发的证件中已被编码使用，所以还有查询的需要。\r\n当前 (201908) 在 github 上找到的几个开源库，均不支持不同年份的代码。特别整理这两个文件。截止到2019年6月的数据均已采集。\r\n\r\n## 使用说明\r\n`code_year_region.csv` 分三列：`code`,`year`,`region`\r\n\r\n`code_year_region.json` 结构为：`{\"code\":{\"year\":\"region\", ...}, ...}`\r\n\r\n可通过取前 2, 4, 6 位，余位补 0 的形式 (xx0000, xxxx00, xxxxxx) 查询各级地理信息。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmenp%2Fgb2260","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallmenp%2Fgb2260","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmenp%2Fgb2260/lists"}