cloudmade-lib

a client library for cloudmade geocode API

Cloudmade Lib

A node library for consuming Cloudmade APIs. Currently only supports Geocoding.

  • Geocoding
    • Output types for JSON, GeoJSON, Property list and HTML

This module is currently under development and has not been published to NPM yet.

npm install cloudmade-lib

To retrieve results in JSON format, see the following example:

var
    cloudmade = require('cloudmade'),
    geocoding = cloudmade.geocoding.initialize({
        apikey : 'your_api_key_here'
    });
 
geocoding.get('8727 148th Ave NE, Redmond, WA 98052', function (err, data) {
    // work with results here...
});
{
    "apikey" : "your_api_key_here",
    "data" : {},
    "host" : "geocoding.cloudmade.com",
    "path" : "/geocoding/v2/find.js",
    "query" : "?query=8727%20148th%20Ave%20NE%2C%20Redmond%2C%20WA%2098052",
    "secure" : false
}

MIT, see LICENSE