transitandtrails

Transit & Trails API Client

transitandtrails

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

npm install transitandtrails
var TransitAndTrails = require("transitandtrails");
 
var tnt = new TransitAndTrails({
  key: "<API key>"
});
 
tnt.getTrailhead(292, function(errtrailhead) {
  if (err) {
    throw err;
  }
 
  console.log(trailhead);
};
  • TNT_API_KEY - (optional) API key.
  • TNT_URL_PREFIX - (optional) alternate URL prefix. Defaults to https://www.transitandtrails.org.

Copyright (c) 2013 Seth Fitzsimmons

Published under the MIT license.