Socket
Socket
Sign inDemoInstall

baidu_map

Package Overview
Dependencies
51
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    baidu_map

wrapper of Baidu map API


Version published
Weekly downloads
2
Maintainers
1
Install size
3.75 MB
Created
Weekly downloads
 

Readme

Source

npm download npm version

nodejs sdk for http://lbsyun.baidu.com/index.php?title=webapi (Baidu map)

APIs

See Baidu Web API Doc

Installation

$ npm install baidu_map

General Usage

var BaiduMap = require('baidu_map');

// Get an api object for a certain ak/sk
var baiduMap = BaiduMap(
  {
    ak: 'ak',
    // Optional, if provided, it will calculate the sn every request
    sk: 'sk',
    // Optional, default json, could be xml
    output: 'xml'
  });

// Supported API
{
  geocoder: "/geocoder/v2/",
  direction: "/direction/v1",
  directionRouteMatrix: "/direction/v1/routematrix",
  locationIp: "/location/ip",
  geoconv: "/geoconv/v1/",
  placeSuggestion: "/place/v2/suggestion/",
  placeSearch: "/place/v2/search",
  placeDetail: "/place/v2/detail",
  placeEventSearch: "/place/v2/eventsearch",
  placeEventDetail: "/place/v2/eventdetail"
}

// Sample call
baiduMap.geocoder({city: '深圳市', address: 'some where'}, (err, res, body) => {
  // do something with the response
});

License

license

Keywords

FAQs

Last updated on 20 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc