Skip to content

juliuste/ecolines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecolines

JavaScript client for the Ecolines API. Complies with the friendly public transport format. Inofficial, using endpoints by Ecolines. Ask them for permission before using this module in production.

npm version Build Status Greenkeeper badge dependency status license fptf version chat on gitter

Things still missing:

Installing

npm install @juliuste/ecolines

Usage

const ecolines = require('@juliuste/ecolines')

This package contains data in the Friendly Public Transport Format and provides the following methods:

  • stations() to get a list of operated stations, such as Riga (bus station), Berlin or Warsaw 01 (Zachodnia).
  • regions() to get a list of all operated regions (cities) such as Riga, Berlin or Warsaw.
  • stopovers(station, opt = {}) to get a list of stopovers (departures / arrivals) at a given station (at a given date).
  • journeys(origin, destination, opt = {}) to get a list of journeys between given origin and destination.
  • legDetails(legId) to get details (such as stopovers) for a given journey leg discovered using the journeys method.
  • currencies() to get a list of supported ISO-4217 currency codes such as EUR or PLN.

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

About

Client for the Ecolines coach travel API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published