a geocoder with cache

npm install geocode
3 downloads in the last week
17 downloads in the last month


Node.js client for mapquest's Open Geocoding Service.
It supports caching of results in CouchDB.


var geocode = require('../lib/index')()

var places = ['New York', 'Heidelberg', 'Tokio', 'Cape Town']
geocode(places, function(err, res) {
  // outputs geocoded result

To enable caching of results in CouchDB:

var cacheConfig = {host: '', port: 5984, db: 'geocode_test', init: true}
var geocode = require('../lib/index')({cache: cacheConfig})

geocode(places, function(err, res) { ... })
npm loves you