/baidu-maps-poi-search

Baidu Maps POI Search Example

Primary LanguageJavaScriptMIT LicenseMIT

Baidu Maps POI Search Example

Notes

Prerequisites

  • Nodejs
  • An "ak" (access key) from Baidu

Getting Started

  1. Clone the repo and change directory to the project's root in terminal
  2. Create file .env, under project root and add the "ak" to it (See .env.example; replace the "key" part)
  3. $ npm install
  4. $ node
  5. Generate query results in json files in data/ from Node console
> const { getPOI } = require('./src/api');

// Example
> getPOI('the great wall');

References