A crawler project for fetching 3d building data from amap and tramsform its to GeoJSON.
高德地图3D建筑信息爬虫项目,用于爬取高德地图的 3D 建筑物数据,并将其转存为 GeoJSON 数据格式
1. Clone remote codes to local, then use the yarn
command to install the project in local directory.
2. Execute mkdir dist
in the project root directory (do not need to do this if the directory already exists).
3. Rewrite the latitude and longitude range in index.js
file where you want to crawl the data (upper left corner & bottom right corner).
const lnglatRange = [
[118.01307678222655, 24.596143627409358],
[118.15830230712889, 24.452462684995407],
];
4. Execute yarn start
in the project root directory, the retrieved data will be stored in the dist
directory as a .geojson
file.
// 需要爬取的经纬度范围(左上角、右下角)
const lnglatRange = [
[118.01307678222655, 24.596143627409358],
[118.15830230712889, 24.452462684995407],
];