routahe
v0.2.18
Published
This is a command line [reittiopas](http://www.reittiopas.fi/en/) client for lazy atk people.
Readme
routahe
This is a command line reittiopas client for lazy atk people.

Install
npm install -g routaheUsage (cli)
routahe kamppi "kannistontie 2, vantaa"Specify transport types (bus,rail,subway,tram,ferry)
routahe kamppi "kannistontie 2, vantaa" bus,railSpecify departure time
routahe kamppi "kannistontie 2, vantaa" 5:30Specify arrival time
routahe kamppi "kannistontie 2, vantaa" @13:30Specify date and time
routahe kamppi "kannistontie 2, vantaa" 5:30 24.12.2016Usage (import)
import { getRoute } from 'routahe'
getRoute({ from: 'Kamppi', to: 'Kannistontie 2, vantaa' }).then(routes => console.log(routes))| Attribute | Example value | Description | Required? | | ---------- | --------------------------- | ----------------------------- | --------- | | from | Kamppi | place of departure | required | | to | Kannistontie 2, Vantaa | travel destination | required | | dateTime | JavaScript date or moment() | departure time / arrival time | optional | | arriveBy | true / false | use dateTime as arrival time | optional | | transports | ['bus','rail','subway'] | One or more transport types | optional |

Develop
npm run dev kamppi pasila