skyss

Node.JS wrapper of various (undocumented) Skyss APIs

Usage no npm install needed!

<script type="module">
  import skyss from 'https://cdn.skypack.dev/skyss';
</script>

README

Skyss APIs for Node.JS

Build status NPM downloads NPM version Node version Dependency status

Node.JS wrapper for various (undocumented) API from Skyss public transport in Hordaland county in Norway. Since Skyss does not publicly document any of their APIs, this effort is done by analyzing source code of various skyss.no sites, GitHub and other search engines, as well as analyzing traffic to and from various Skyss applications.

Requirements

  • Node.JS >= v4.0.0

Install

$ npm install skyss --save

Usage

const skyss = require('skyss');

Environment

  • SKYSS_MOBILE_API_URL - mobile API endpoint
  • SKYSS_MOBILE_API_USER - mobile API username
  • SKYSS_MOBILE_API_PASS - mobile API password

Mobile APIs

API endpoints used by the Skyss Reise app for iOS and Android.

  • skyss.mobile.messages(callback)
  • skyss.mobile.stops(opts, callback)
  • skyss.mobile.stop(id, opts, callback)
  • skyss.mobile.routes(opts, callback)
  • skyss.mobile.route(id, opts, callback)

Legal

Skyss is a registered trademark of Hordaland County Councile (Hordaland Fylkeskommune) which is not affiliated with this product. Content from Skyss APIs may be copyrighted.

MIT Licensed