OpenPaths-API
A Node.js module for the OpenPaths API.
This module was inspired by node-openpaths, but this one has posting functionality, and works with parameters.
Pre-requisites
You also need an OpenPaths account.
Installation
$ npm install openpaths-api
Usage
View the examples on the examples/
directory for getting and posting geo points, or the examples below.
API Documentation
You can find more information over at OpenPaths' official API documentation. Since it's still pretty simple, what you need to know:
Initializing
var OpenPathsAPI = openPaths = key: 'YOUR_KEY' secret: 'YOUR_SECRET' ;
Getting geo points
// Params are optional, you can call .getPoints with the callback as the first argumentvar params = start_time: 0 // Unix timestamp end_time: Math // Unix timestamp num_points: 100 // Default, allowed 0 - 2000; openPaths;
Posting geo points
var points = lat: 40678238 // Latitude lon: -73945789 // Longitude alt: 18914 // Altitude (in meters) t: 1410213632 // Unix timestamp ; openPaths;