simgeocode
A simple promisified geocoder for node.js, which is very useful when you want to obtain massive geo coordinates in a batch
Installation
npm install simgeocode
Usage
const simGeocode = ; let address = "LvBiaoZhen" lang = 'zh-CN';// "address" argument can be either the address in string, or an options object (for advanced users only) for request, e.g.// let address = {// url: 'http://maps.googleapis.com/maps/api/geocode/json',// qs: {// address: 'LvBiaoZhen',// language: 'zh-CN'// }// headers: {// 'User-Agent': 'triple agent for KGB, CIA & MI6'// }// } ;
Credits
This geocoder depends on the following Node.JS modules:
- [request]