npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-gecoding

v1.1.4

Published

This is a node module for gecoding.Using this module,we can gecoding a lot of address to GPS.The input could be csv File or txt File,which contains a lot of lines like \"UESTC,ChengDu\"

Readme

node-gecoding

This is a node module for gecoding.Using this module,we can gecoding a lot of address to GPS.The input could be csv File or txt File,which contains a lot of lines like "UESTC,ChengDu".

Install

$ npm install node-gecoding

Useage

  1. 这是一个基于百度地图和腾地图API的批量GECODING模块,使用首先需要获取百度地图or腾讯地图的API-KEY.(前一个版本使用百度地图车联网API,每天调用次数限制为5000次,今天更新后,百度地图调用无时间限制,每个key每天总共调用100万次,腾讯地图调用时间限制为10次/秒,每天每个key总共10万次.)

    • [1]BAIDU:http://api.map.baidu.com/lbsapi/cloud/webservice.htm
    • [2]TENGXUN:http://lbs.qq.com/index.html
  2. 把申请到的key填入setting.js里(也可以在程序里配置,见测试代码)

    module.exports = {
      	bd_maptoken:'baidu-apikey',
      	tx_maptoken:'tengxun-apikey',
      	//redis:'localhost',
      	//post:6379
    }
     	
  3. 格式化输入文件,逗号分割地址与城市[CSV,TXT]

    电子科技大学,成都 \n 四川大学,成都 \n 西南财经大学,成都 \n 四川师范大学,成都 \n 西南交通大学,成都 \n

  4. 输出文件为逗号分割的txt文件,可以方便转csv文件,与输入文件同目

  5. 测试代码如下

    var gcoding=require('node-gecoding');
    var argument=['./data/hello.txt','tx','./data/hello.csv','bd'];
       
    var cfg = {	//与setting配置效果相同
    	bd_maptoken:'baidu-map-apikey',
    	tx_maptoken:'tengxun-map-apikey'
    }
    gcoding.config(cfg);
       
    gcoding.gecoding_aync(argument);