Skip to content

lin-123/geojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson

Introduction

build geojson by gaode webservice

  • API intrudction

  • GEOJSON introduction

  • mapshaper

  • 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

Installation

  • npm i -g geojson-gaode

Usage

$ geojson -h

Usage: geojson [options] [fileName]

build geojson by gaode api

Options:
  -V, --version         output the version number
  -k --key <key>        gaode application key
  -c --city <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: geojson -c 深圳 -o geojson -k xxx shenzhen

Directories

- root
  - src //code place
  - test // unit test
  config.json // config gaode application key
  ...

About

get districts polyline from gaode then beautify to geojson

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published