参考https://loveyu.org/5351.html
OpenStreetMap https://www.openstreetmap.org/
使用wikidata获取osm数据 https://overpass-turbo.eu/
osm数据转geojson数据 https://github.com/tyrasd/osmtogeojson
geojson数据查看边界 http://geojson.io/#map=10/22.4916/113.4187
1.获取地区维基百科id
在OpenStreetMap搜索想要的地区边界值,在地图上查看边界是否正确,获取到wikidata
2.使用wikidata获取到完整的osm边界数据
打开https://overpass-turbo.eu/,输入语句,键入wikidata,可输入多个wikidata
(
relation["wikidata"="Q59223"];
relation["wikidata"="Q6777151"];
);
out body;
>;
out skel qt;
运行获取到完整的osm边界数据
3.osm数据转geojson数据
这里的jquery过期了,在index.html中将jquery路径改一下
4.使用geojson查看边界
http://geojson.io/#map=10/22.4916/113.4187