geocode

a geocoder with cache

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

##Examples

var geocode = require('../lib/index')()
 
var places = ['New York', 'Heidelberg', 'Tokio', 'Cape Town']
geocode(places, function(errres) {
  // outputs geocoded result 
})

To enable caching of results in CouchDB:

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