Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    transitandtrails-clipublic

    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.

    Keywords

    none

    install

    npm i transitandtrails-cli

    Downloadslast 7 days

    0

    version

    0.1.3

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar