- Query is locked in Beijing area in this example; extend
#url
insrc/api.js
to query PoIs other than Beijing - Coordination of the results is in BD09 format
- Nodejs
- An "ak" (access key) from Baidu
- Clone the repo and change directory to the project's root in terminal
- Create file
.env
, under project root and add the "ak" to it (See.env.example
; replace the "key" part) $ npm install
$ node
- Generate query results in json files in
data/
from Node console
> const { getPOI } = require('./src/api');
// Example
> getPOI('the great wall');