node-streetics aims to provide a complete, asynchronous client library for the Streetics API services (http://streetics.com/en/content/api).
You can install node-streetics and its dependencies with npm: npm install streetics.
- node v0.6+
It's early days for node-streetics, so I'm going to assume a fair amount of knowledge for the moment. Better documentation to come as it heads towards a stable release.
var streetics = require('streetics');
var stics = new streetics({
api_id: 'YOUR API ID'
});
stics.streetRankScore(1, function(error, results) {
if (error) {
console.error(error);
} else {
console.log(results);
}
});
stics.areaRankScore(38.7022294, -9.1929003, 250, function(error, results) {
if (error) {
console.error(error);
} else {
console.log(results);
}
});
stics.areaRankTop(38.7022294, -9.1929003, 250, function(error, results) {
if (error) {
console.error(error);
} else {
console.log(results);
}
});
- João Ribeiro (author)
- Lots of wonderful helper elves on GitHub
- Add premium services as described at (http://streetics.com/en/content/services)
- Fix ALL THE THINGS! on the GitHub issues list
