3.0.1 • Published 7 years ago
bilkom v3.0.1
bilkom
JavaScript client and scraper for the bilkom PKP railway API*. Complies with the friendly public transport format. Inofficial, using bilkom endpoints. Ask them for permission before using this module in production. Work in progress.
*Some methods query an API, some other methods scrape data from the website.
Installation
npm install --save bilkomUsage
const bilkom = require('bilkom')This package contains data in the Friendly Public Transport Format and provides the following methods:
stations(opt)to get a list of operated stations (or search for a specific query), such asWarszawa CentralnaorGdańsk Główny. (Only stations in Poland.)journeys(origin, destination, date, opt)to get routes between stations.departures(station, date)to get departures at a given station.journeyLeg(ref, product, lineId)to get details for a specific journey leg returned byjourneysordepartures.
Similar Projects
- pkp-ic - Client for the PKP Intercity API (older, doesn't have prices)
- koleo - Client for the Koleo API (inofficial)
- meinfernbus – Client for the Flixbus/Meinfernbus API
- db-hafas - Client for the german railways (DB) API
- db-prices - Client for the german railways (DB) price API
Contributing
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.