@juliuste/ecolines

0.0.0 • Public • Published

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.

/@juliuste/ecolines/

    Package Sidebar

    Install

    npm i @juliuste/ecolines

    Weekly Downloads

    2

    Version

    0.0.0

    License

    ISC

    Unpacked Size

    19.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • juliuste