build geojson by gaode api
npm install geojson-gaode> build geojson by gaode webservice
- API intrudction
- GEOJSON introduction
- example http://restapi.amap.com/v3/config/district?key=&keywords=&subdistrict=1&extensions=all
- key: apply to gaode for key
- keywords: district name | citycode | adcode
- subdistrict: 0 | 1 | 2
- extensions: base--no polyline | all--have polyline
- npm i geojosn-gaode
$ geojson -hUsage: geojson [options] [fileName]
build geojson by gaode api
Options:
-V, --version output the version number
-k --key gaode application key
-c --city city name or city code
-o --output [output] output file path for geojson, default is current directory [optional]
-h, --help output usage information
`- sample:
node src -c 深圳 -o geojson -k xxx shenzhenDirectories
`
- root
- src //code place
- test // unit test
config.json // config gaode application key
...
``