db-vendo-client/p/sbb
2022-11-18 19:20:03 +01:00
..
base.json re-upgrade profiles, adapt feature flags, adapt tests 2021-05-01 10:58:45 +02:00
example.js trip: remove lineName parameter, update integration test fixtures 💥📝 2022-11-18 19:20:03 +01:00
index.js departures{GetPasslist,StbFltrEquiv}: default to false 💥 2022-11-17 15:17:01 +01:00
products.js add SBB profile 2020-12-26 21:54:04 +01:00
readme.md add SBB profile 2020-12-26 21:54:04 +01:00

SBB profile for hafas-client

Schweizerische Bundesbahnen (SBB) is the largest Swiss long-distance public transport company. This profile adds SBB-specific customizations to hafas-client.

Usage

const createClient = require('hafas-client')
const sbbProfile = require('hafas-client/p/sbb')

// create a client with SBB profile
const client = createClient(sbbProfile, 'my-awesome-program')

By default, the de_CH locale is being used. You can customize it using withLocale():

// create a client with SBB profile and fr_CH locale
const client = createClient(sbbProfile.withLocale('fr_CH'), 'my-awesome-program')

Customisations