cloudmade-lib
v0.1.4
Published
a client library for cloudmade geocode API
Downloads
1
Readme
Cloudmade Lib
A node library for consuming Cloudmade APIs. Currently only supports Geocoding.
Features
- Geocoding
- Output types for JSON, GeoJSON, Property list and HTML
Install
This module is currently under development and has not been published to NPM yet.
npm install cloudmade-lib
Usage
Get JSON
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...
});
Response Data
{
"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
}
License
MIT, see LICENSE