Transit & Trails API Client
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintignore
CHANGES.md
LICENSE
README.md
index.js
package.json

README.md

transitandtrails

I am a Node.js client for the Transit & Trails API.

Installation

npm install transitandtrails

Usage

var TransitAndTrails = require("transitandtrails");

var tnt = new TransitAndTrails({
  key: "<API key>"
});

tnt.getTrailhead(292, function(err, trailhead) {
  if (err) {
    throw err;
  }

  console.log(trailhead);
};

Environment Variables

  • TNT_API_KEY - (optional) API key.
  • TNT_URL_PREFIX - (optional) alternate URL prefix. Defaults to https://www.transitandtrails.org.

License

Copyright (c) 2013 Golden Gate National Parks Conservancy

Published under the MIT license.