transitandtrails-cli

0.1.3 • Public • Published

transitandtrails-cli

I am a command line client for the Transit & Trails API. I use transitandtrails under the hood.

Installation

npm install -g transitandtrails-cli

Or, if you want the current development version:

npm install -g "git+https://github.com/mojodna/node-transitandtrails-cli"

Usage

tnt --help
tnt -k <key> trailhead -g 292
tnt -k <key> trailhead-maps 292

It can be used with jq to pretty-print and filter output:

tnt -k <key> trailheads -n 5 | jq .
tnt -k <key> trailheads -n 25 | jq '.[22].park_name'

It can also be used with geojson.io to see the raw data on a map:

npm install -g geojsonio-cli
tnt -k <key> trip 1363 --geojson | geojsonio

Environment Variables

  • TNT_KEY - (optional) API key--can be used to avoid passing -k.
  • TNT_URL_PREFIX - (optional) alternate URL prefix. Defaults to https://www.transitandtrails.org.

License

Copyright (c) 2013 Seth Fitzsimmons

Published under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i transitandtrails-cli

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • mojodna