高德地图行政区域数据 amap-district-data

码农软件 · 软件分类 · 地图相关 · 2019-07-31 16:58:13

软件介绍

根据高德地图行政区域查询API获取最新的所有的行政区域数据,用于省市区街道级联查询。

高德地图行政区域查询 - http://lbs.amap.com/api/webservice/guide/api/district

本项目基于高德地图行政区域查询API, 由于高德地图行政区域查询API有调用次数和并发数量限制,故将行政区域数据保存在数据库中,需要时从本地数据查询获取。 目前部分城市和省直辖县因为没有区县的概念,故在市级下方直接显示街道。例如:广东-东莞、海南-文昌市。

application.yml配置说明

  1. 修改数据库配置:spring.datasource

  2. 修改高德地图WebApi key:amap.key

使用说明

生成方式: 运行com.tooldin.amapdistrictsdata.AmapDistrictsDataApplication,即可将高德地图的行政区域保存到指定的数据库中。

查询SQL:

查询所有省

select * from amap_district where `level` = 'province';

查询广东省下面的行政区域

select * from amap_district where parent_id = 102688;

查询广东省东莞市下面的行政区域

select * from amap_district where parent_id = 104228;

注意事项

以下district可以根据需要是否保留

澳门大学横琴校区(由澳门管辖)

本文地址:https://codercto.com/soft/d/11352.html

Head First HTML5 Programming

Head First HTML5 Programming

Eric Freeman、Elisabeth Robson / O'Reilly Media / 2011-10-18 / USD 49.99

What can HTML5 do for you? If you're a web developer looking to use this new version of HTML, you might be wondering how much has really changed. Head First HTML5 Programming introduces the key featur......一起来看看 《Head First HTML5 Programming》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

SHA 加密
SHA 加密

SHA 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具