Coder Social home page Coder Social logo

bilkom's Introduction

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.

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

Installation

npm install --save bilkom

Usage

const bilkom = require('bilkom')

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

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.

bilkom's People

Contributors

juliuste avatar matkoniecz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jakno michracz00

bilkom's Issues

adding missing price information

I know that it is documented that pricing information may be missing.

Is it something that can be extended? I plan on adding it. I need it to my project anyway, and I consider it more useful to extend existing project rather than write my own.

But I just wanted to check is pricing for REG trains is maybe known to be so obnoxiously hidden that getting it is outside of scope of this library or is it fundamentally impossible for some other reason.

For reference, I want to get pricing results in querries like

const bilkom = require('bilkom')

const krakow = {
	type: "station",
	id: "005100028",
	name: "Kraków Główny",
	location: {
		type: "location",
		longitude: 19.947423,
		latitude: 50.067192
	}
}

origin_name = "Kraków Główny"
destination_name = "Zdzieszowice"
days_in_future = 3
date = new Date(new Date().getTime()+(days_in_future*24*60*60*1000));

bilkom.stations({query: destination_name})
.then(station_list => function() {return station_list[0] ;}())
.then(target => bilkom.journeys(krakow, target, date, {
	duration: 6*60*60*1000, // 6 hours
	prices: true // also get pricing information, can take really long!
}))
.then(response => JSON.stringify(response, null, 4))
.then(console.log)
.catch(console.error)

An in-range update of lodash is breaking the build 🚨

The dependency lodash was updated from 4.17.11 to 4.17.12.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lodash is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of validate-fptf is breaking the build 🚨

The devDependency validate-fptf was updated from 2.1.1 to 2.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

validate-fptf is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 3 commits.

  • 49a192d FPTF 1.2.1, 2.2.0
  • 1a13ffd validate journeyLeg.price
  • da4221e drop URL-safety requirements for IDs

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

npm install complains

I followed recommended installation process and got some warnings

$ npm install --save bilkom
npm WARN saveError ENOENT: no such file or directory, open '/home/mateusz/Desktop/tmp/bilkom/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/mateusz/Desktop/tmp/bilkom/package.json'
npm WARN bilkom No description
npm WARN bilkom No repository field.
npm WARN bilkom No README data
npm WARN bilkom No license field.

An in-range update of eslint-plugin-node is breaking the build 🚨

The devDependency eslint-plugin-node was updated from 8.0.0 to 8.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v8.0.1

🐛 Bug fixes

Commits

The new version differs by 8 commits.

  • b234dcc 8.0.1
  • 0593c67 🎨 remove garbage
  • 679752b 🐛 fix no-unpublished-(require|import) false positive (fixes #126)
  • e2fc482 🐛 fix no-unpublished-bin false positive (fixes #115)
  • 0225b02 🎨 rename a function
  • 43e3198 ⚒ disable codecov comments
  • 62ba642 🐛 fix no-deprecated-api error messages (#147)
  • 153ab03 Chore: support the new rule meta.type property (fixes #143) (#145)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of tape is breaking the build 🚨

Version 4.9.1 of tape was just published.

Branch Build failing 🚨
Dependency tape
Current Version 4.9.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

tape is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 10 commits.

  • 050b318 v4.9.1
  • 73232c0 [Dev Deps] update js-yaml
  • 8a2d29b [Deps] update has, for-each, resolve, object-inspect
  • c6f5313 [Tests] add eclint and eslint, to enforce a consistent style
  • 45788a5 [Dev Deps] update concat-stream
  • ec4a71d [fix] Fix bug in functionName regex during stack parsing
  • 7261ccc Merge pull request #433 from mcnuttandrew/add-trb
  • 6cbc53e Add tap-react-browser
  • 9d501ff [Dev Deps] use ~ for dev deps; update to latest nonbreaking
  • 24e0a8d Fix spelling of "parameterize"

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of query-string is breaking the build 🚨

The dependency query-string was updated from 6.1.0 to 6.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

query-string is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 8 commits.

  • eda1fdc 6.2.0
  • f0b7db4 Meta tweaks
  • b20493e Do not sort when sort option is set to false (#155)
  • 5b4ce87 Support hash in parseUrl() (#151)
  • ff8eef3 Add readme note about create-react-app (#156)
  • 006f019 Bump fast-check version and adapt properties (#154)
  • b4dee48 Fix lint error (#149)
  • 61fbada Fix failing tests in Node 10 caused by wrong sort option type (#142)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of tape is breaking the build 🚨

The devDependency tape was updated from 4.9.1 to 4.9.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

tape is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 11 commits.

  • a1e8f7e v4.9.2
  • 4b9c951 [Dev Deps] update eslint, eclint
  • 9ced991 [Fix] notEqual and notDeepEqual show "expected" value on failure
  • 75c467e [Docs] Updated readme to make test, test.only and test.skip consistent.
  • 1225d01 Merge pull request #450 from axelpale/patch-1
  • f53e3f1 Clarify doesNotThrow parameters
  • 96de340 Adding tap-junit
  • b1df632 [readme] Change broken image to use web archive
  • 5f1c5a2 [Docs] cleanup from #439
  • 6c633d0 Merge pull request #439 from abelmokadem/master
  • 4337f58 Convert list of tap reporters to links

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of cheerio is breaking the build 🚨

The dependency cheerio was updated from 1.0.0-rc.2 to 1.0.0-rc.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

cheerio is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of he is breaking the build 🚨

The dependency he was updated from 1.1.1 to 1.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

he is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 4 commits.

  • 36afe17 Release v1.2.0
  • 903c6b5 Handle legacy named character references correctly
  • 24377e2 Fix typos in test descriptions
  • 7f755b4 Fix comma operator typos in tests

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-standard is breaking the build 🚨

The devDependency eslint-plugin-standard was updated from 4.0.0 to 4.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-standard is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 8 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of got is breaking the build 🚨

Version 8.3.1 of got was just published.

Branch Build failing 🚨
Dependency got
Current Version 8.3.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

got is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v8.3.1
  • No longer overrides accept-encoding header if already provided. 81f2537
  • Sets content-length header when using form-data if not already set. de9514d
  • Now clears the progress interval if the socket has been destroyed. 82763c8

v8.3.0...v8.3.1

Commits

The new version differs by 5 commits.

  • bd3315b 8.3.1
  • de9514d Set content-length header when using form-data
  • 82763c8 Clear the progress interval if the socket has been destroyed (#469)
  • b465f21 GitHub now natively supports SVG
  • 81f2537 Do not override Accept-Encoding header if already provided (#472)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of moment-timezone is breaking the build 🚨

Version 0.5.15 of moment-timezone was just published.

Branch Build failing 🚨
Dependency moment-timezone
Current Version 0.5.14
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

moment-timezone is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes 0.5.15

0.5.15 2018-04-17

  • Updated data to IANA TZDB 2018d. #596
Commits

The new version differs by 3 commits.

  • e07aa0c Updated version to 0.5.15, added release notes
  • dbfb397 Updated data to IANA TZDB 2018d
  • 9b6555c Update changelog for 0.5.14

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint is breaking the build 🚨

The devDependency eslint was updated from 5.12.0 to 5.12.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v5.12.1
  • eb5c401 Chore: use meta.messages in some rules (2/4) (refs #9870) (#10773) (薛定谔的猫)
  • aa56247 Fix: avoid loading core rules dynamically from FS in Linter (#11278) (Peter Metz)
  • 04450bb Docs: clarify process for adding committers (#11272) (Kai Cataldo)
  • 3ffcf26 Docs: add @g-plane as committer (#11277) (Kai Cataldo)
  • c403445 Fix: warn constant on RHS of || in no-constant-condition (fixes #11181) (#11253) (Merlin Mason)
  • 9194f45 Fix: Manage severity of 1 with TAP reporter (fixes #11110) (#11221) (Gabriel Cousin)
  • 000f495 Docs: fix example for sort-imports ignoreDeclarationSort (#11242) (Remco Haszing)
  • 7c0bf2c Docs: Add npx usage to Getting Started guide (#11249) (eyal0803)
  • da9174e Docs: fixes typo peerDepencies (#11252) (Christian Kühl)
  • 9c31625 Docs: Improve custom formatter docs (#11258) (Nicholas C. Zakas)
Commits

The new version differs by 12 commits.

  • faf3c4e 5.12.1
  • 1010c98 Build: changelog update for 5.12.1
  • eb5c401 Chore: use meta.messages in some rules (2/4) (refs #9870) (#10773)
  • aa56247 Fix: avoid loading core rules dynamically from FS in Linter (#11278)
  • 04450bb Docs: clarify process for adding committers (#11272)
  • 3ffcf26 Docs: add @g-plane as committer (#11277)
  • c403445 Fix: warn constant on RHS of || in no-constant-condition (fixes #11181) (#11253)
  • 9194f45 Fix: Manage severity of 1 with TAP reporter (fixes #11110) (#11221)
  • 000f495 Docs: fix example for sort-imports ignoreDeclarationSort (#11242)
  • 7c0bf2c Docs: Add npx usage to Getting Started guide (#11249)
  • da9174e Docs: fixes typo peerDepencies (#11252)
  • 9c31625 Docs: Improve custom formatter docs (#11258)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-promise is breaking the build 🚨

The devDependency eslint-plugin-promise was updated from 4.0.1 to 4.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-promise is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of moment-timezone is breaking the build 🚨

The dependency moment-timezone was updated from 0.5.21 to 0.5.22.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

moment-timezone is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for Release 0.5.22
  • Updated data to IANA TZDB 2018g #689
  • Fix issue with missing LMT entries for some zones, and fix data builds on Linux and Windows #308
Commits

The new version differs by 12 commits ahead by 12, behind by 2.

  • 1a8a2a2 Merge pull request #690 from mj1856/develop
  • 78ebaa9 Build release 0.5.22
  • 17144d5 Rebuild tests for 2018g
  • b611d51 Fix path with tests on windows
  • 01f1f1e Rebuild 2018g/latest data with zdump fixes in place
  • 07978c4 Fix issue with zdump output on non-Mac systems
  • 2cd3adc Copy 2018g to latest
  • a43ca15 Update tzdata download url
  • 208874f Merge pull request #689 from alaouy/develop
  • 58e0f8c Added 2018g timezones data set
  • 2445c79 Bugfix: revert breaking change
  • 3e85105 Bugfix: revert breaking change

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of got is breaking the build 🚨

Version 9.2.1 of got was just published.

Branch Build failing 🚨
Dependency got
Current Version 9.2.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

got is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes v9.2.1
  • Don't cache response when HTTP error was received. #597 b8480f3
  • Fix merging default & custom handlers. 5f191b9

v9.2.0...v9.2.1

Commits

The new version differs by 7 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-import is breaking the build 🚨

The devDependency eslint-plugin-import was updated from 2.14.0 to 2.15.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-import is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 34 commits.

  • 767f01a bump to v2.15.0
  • 038d668 bump webpack resolver to v0.11.0
  • 20a8f3b bump utils to v2.3.0
  • 1e4100d changelog note for #1261
  • 548ea02 added support for argv parameter of webpack`s config-as-a-function (#1261)
  • fcf2ce7 Merge pull request #1254 from ljharb/travis
  • 64d9be7 allow_failures for dicey Node/ESLint intersection
  • 73080d0 dep-time-travel: use older versions of dependencies
  • 05c3935 repair no-deprecated for ESLint* 5
  • 10c9811 node 4 fix for test util
  • f165237 ah geez, bumping babel-eslint breaks no-amd/no-cjs
  • acfb6e9 jk, test against eslint 2/3 but skip Typescript tests.
  • b686f9d drop ESLint 2/3 from Travis/Appveyor
  • cf1f6f4 [Deps] update debug, eslint-import-resolver-node, has, lodash, minimatch, resolve
  • d290a87 [Dev Deps] update babylon, coveralls, eslint-import-resolver-typescript, gulp, linklocal, nyc, redux, rimraf, sinon, typescript-eslint-parser

There are 34 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of validate-fptf is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 1.2.5 of validate-fptf was just published.

Branch Build failing 🚨
Dependency validate-fptf
Current Version 1.2.4
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

validate-fptf is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.