Skip to content

anttikon/routahe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published