1. muni(1)
  2. muni(1)

NAME

muni - show san francisco muni routes and stop predictions

SYNOPSIS

muni help [TASK]
muni list
muni predict route direction stop
muni show -v|--verbose route [direction]

DESCRIPTION

muni retrieves San Francisco MUNI routes information and bus stop prediction times. muni is mostly an exercise in implementing the core functions of the muni NextBus API client.

EXAMPLES

List all available routes:

$ muni list
    F  F-Market & Wharves
    J  J-Church
   KT  KT-Ingleside/Third Street
    L  L-Taraval
    M  M-Ocean View
    ....

Show basic route information:

$ muni show 21
    21  21-Hayes
21_IB1  Inbound to Steuart Terminal
21_OB4  Outbound to Fulton St & Shrader St

Show a route and all stops using -v or --verbose:

$ muni show 21 --verbose
     21  21-Hayes
 21_IB1  Inbound to Steuart Terminal
   7499   Fulton St & Shrader St
   ...
 21_OB4  Outbound to Fulton St & Shrader St
   6497  Steuart St & Mission St
   6501  Steuart St & Market St
   5669  Market St & Drumm St
   ...

Show a route and all stops for a particular direction:

$ muni show 21 outbound --verbose
    21  21-Hayes
21_OB4  Outbound to Fulton St & Shrader St
  6497  Steuart St & Mission St
  6501  Steuart St & Market St
  5669  Market St & Drumm St
  ...

Get predictions for a bus, going a certain direction, at a given stop. predict can take the formal tag names for the direction and stop, or it will perform it's best guess.

With formal direction and stop tags:

$ muni predict 21 21_OB4 5008
Route 21-Hayes going Outbound to Fulton St & Shrader St at Hayes St & Shrader St:
        2831  2 minutes
        8189  16 minutes
        8359  30 minutes
        2842  40 minutes
        2823  about 1 hour

With a fuzzy stop name:

$ muni predict 21 21_OB4 hayes and shrader
Route 21-Hayes going Outbound to Fulton St & Shrader St at Hayes St & Shrader St:
        2831  2 minutes
        8189  16 minutes
        8359  30 minutes
        2842  40 minutes
        2823  about 1 hour

With a fuzzy direction and stop name:

$ muni predict 21 inbound hayes and shrader 
Route 21-Hayes going Inbound to Steuart Terminal at Hayes St & Shrader St:
        8102  less than a minute
        2832  2 minutes
        2831  22 minutes
        8189  32 minutes
        2842  about 1 hour
  1. May 2011
  2. muni(1)