Streetics API Client
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
LICENSE
README.md
index.js
package.json

README.md

Streetics API client library for node.js

node-streetics aims to provide a complete, asynchronous client library for the Streetics API services (http://streetics.com/en/content/api).

Requirements

You can install node-streetics and its dependencies with npm: npm install streetics.

Getting started

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.

Setup API (experimental)

var streetics = require('streetics');
var stics = new streetics({
	api_id: 'YOUR API ID'
});

GET Street Rank Score

stics.streetRankScore(1, function(error, results) {
    if (error) {
        console.error(error);
    } else {
        console.log(results);
    }
});

GET Area Rank Score

stics.areaRankScore(38.7022294, -9.1929003, 250, function(error, results) {
    if (error) {
        console.error(error);
    } else {
        console.log(results);
    }
});

GET Area Rank Top

stics.areaRankTop(38.7022294, -9.1929003, 250, function(error, results) {
    if (error) {
        console.error(error);
    } else {
        console.log(results);
    }
});

Contributors

TODO

Bitdeli Badge