This is a command line reittiopas client for lazy atk people.
npm install -g routahe
routahe kamppi "kannistontie 2, vantaa"
Specify transport types (bus,rail,subway,tram,ferry)
routahe kamppi "kannistontie 2, vantaa" bus,rail
Specify departure time
routahe kamppi "kannistontie 2, vantaa" 5:30
Specify arrival time
routahe kamppi "kannistontie 2, vantaa" @13:30
Specify date and time
routahe kamppi "kannistontie 2, vantaa" 5:30 24.12.2016
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 |
npm run dev kamppi pasila