https://github.com/juliuste/koleo
Client for the Polish Koleo (PKP) train API.
https://github.com/juliuste/koleo
library public-transport railway
Last synced: 6 months ago
JSON representation
Client for the Polish Koleo (PKP) train API.
- Host: GitHub
- URL: https://github.com/juliuste/koleo
- Owner: juliuste
- License: isc
- Archived: true
- Created: 2018-03-27T21:08:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T07:38:30.000Z (over 5 years ago)
- Last Synced: 2025-04-06T19:22:11.019Z (6 months ago)
- Topics: library, public-transport, railway
- Language: JavaScript
- Size: 55.7 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# koleo
JavaScript client for the Polish [Koleo](https://koleo.pl/) (PKP) train API. Complies with the [friendly public transport format](https://github.com/public-transport/friendly-public-transport-format). Inofficial, using endpoints by *Koleo*. Ask them for permission before using this module in production.
**You should probably refer to the newer [bilkom](https://github.com/juliuste/bilkom) package instead.**
[](https://www.npmjs.com/package/koleo)
[](https://travis-ci.org/juliuste/koleo)
[](https://greenkeeper.io/)
[](https://david-dm.org/juliuste/koleo)
[](LICENSE)
[](https://fptf.badges.juliustens.eu/link/juliuste/koleo)
[](https://gitter.im/public-transport)## Installation
```shell
npm install koleo
```## Usage
```javascript
const koleo = require('koleo')
```This package contains data in the [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format) and provides the following methods:
- [`stations()`](docs/stations.md) to get a list of all operated stations such as `Warszawa Centralna` or `Gdańsk Glowny`.
- [`operators()`](docs/operators.md) to get a list of all operators/brands.
- [`journeys(origin, destination, date)`](docs/journeys.md) to get routes between stations.
- [`price(journeyId)`](docs/price.md) to get pricing information for a specific journey.## Similar Projects
- [bilkom](https://github.com/juliuste/bilkom) - Client for the new polish Bilkom (PKP) API (includes price information)
- [pkp-ic](https://github.com/juliuste/pkp-ic/) - Client for the PKP Intercity API (doesn't have prices)
- [meinfernbus](https://github.com/juliuste/meinfernbus/) – Client for the Flixbus/Meinfernbus API
- [db-hafas](https://github.com/derhuerst/db-hafas/) - Client for the german railways (DB) API
- [db-prices](https://github.com/juliuste/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](https://github.com/juliuste/koleo/issues).