Skip to content

ehehaye/geo-json-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-json-fetcher

基于阿里云的地理信息服务,获取国、省、市级的 GeoJson 数据

安装

git clone https://github.com/ehehaye/geo-json-fetcher.git
cd geo-json-fetcher
pnpm i

配置项

环境变量 默认值 描述
BASE_URL https://geo.datav.aliyun.com/areas_v3/bound 数据源地址
TOP_CODE 100000 国家行政代码
REQ_RETRIES 3 请求失败重试次数
REQ_INTERVAL 200 请求间隔毫秒
REQ_CONCURRENCY 3 并发请求数

示例

# 下载全国数据
pnpm pull

# 下载省级数据
pnpm pull:p

# 下载市级数据
pnpm pull:c

相关资料

About

基于阿里云的地理信息服务,获取国、省、市级的 GeoJson 数据

Topics

Resources

Stars

Watchers

Forks

Contributors