Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.74 KB

README.md

File metadata and controls

70 lines (48 loc) · 1.74 KB

routahe

This is a command line reittiopas client for lazy atk people.

Dependencies

Install

npm install -g routahe

Usage (cli)

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

Usage (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

Usage

Develop

npm run dev kamppi pasila