Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cloudmade-lib
Advanced tools
A node library for consuming Cloudmade APIs. Currently only supports Geocoding.
npm install cloudmade-lib
To retrieve results in JSON format, see the following example:
var
cloudmade = require('cloudmade-lib'),
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...
});
By default, the timeout for connecting to the Cloudmade API is 5 seconds. This can be overridden via the options parameter which accepts a value in milliseconds.
var
cloudmade = require('cloudmade-lib'),
geocoding = cloudmade.geocoding.initialize({
apikey : 'your_api_key_here'
});
geocoding.get({ timeout : 10000 }, '8727 148th Ave NE, Redmond, WA 98052', function (err, data) {
// work with results here...
});
To retrieve results in GeoJSON format, see the following example:
var
cloudmade = require('cloudmade-lib'),
geocoding = cloudmade.geocoding.initialize({
apikey : 'your_api_key_here'
});
geocoding.getGeo('8727 148th Ave NE, Redmond, WA 98052', function (err, data) {
// work with results here...
});
To retrieve results in Plist format, see the following example:
var
cloudmade = require('cloudmade-lib'),
geocoding = cloudmade.geocoding.initialize({
apikey : 'your_api_key_here'
});
geocoding.getPlist('8727 148th Ave NE, Redmond, WA 98052', function (err, data) {
// work with results here...
});
To retrieve results in HTML format, see the following example:
var
cloudmade = require('cloudmade-lib'),
geocoding = cloudmade.geocoding.initialize({
apikey : 'your_api_key_here'
});
geocoding.getHtml('8727 148th Ave NE, Redmond, WA 98052', function (err, data) {
// work with results here...
});
Additional parameters, as outlined at http://developers.cloudmade.com/projects/show/geocoding-http-api#Parameters, can be supplied easily during the request.
var
cloudmade = require('cloudmade-lib'),
geocoding = cloudmade.geocoding.initialize({
apikey : 'your_api_key_here'
}),
options = {
around : '47.6742,122.1203'
results : 100,
skip : 100
};
geocoding.get(options, '8727 148th Ave NE, Redmond, WA 98052', function (err, data) {
// work with results here...
});
The results returned from the cloudmade API are wrapped with the following fields:
{
"apikey" : "your_api_key_here",
"data" : { /* Cloudmade Response Here */ },
"host" : "geocoding.cloudmade.com",
"path" : "/geocoding/v2/find.js",
"query" : "?query=8727%20148th%20Ave%20NE%2C%20Redmond%2C%20WA%2098052",
"secure" : false
}
For more information about cloudmade's response data: http://developers.cloudmade.com/projects/show/geocoding-http-api#Geocoding-responses
MIT, see LICENSE
FAQs
a client library for cloudmade geocode API
We found that cloudmade-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.