db-vendo-client/p/sbb/readme.md
Jannis R 339d64e901
convert to ESM 💥📝
2022-11-18 19:20:03 +01:00

727 B

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

import {createClient} from 'hafas-client'
import {sbbProfile} from 'hafas-client/p/sbb/index.js'

// 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