bahnui/back/node_modules/hafas-client/p/nahsh
2024-11-15 23:23:46 +01:00
..
base.json Initial commit 2024-11-15 23:23:46 +01:00
example.js Initial commit 2024-11-15 23:23:46 +01:00
index.js Initial commit 2024-11-15 23:23:46 +01:00
products.js Initial commit 2024-11-15 23:23:46 +01:00
readme.md Initial commit 2024-11-15 23:23:46 +01:00

NAH.SH profile for hafas-client

Nahverkehrsverbund Schleswig-Holstein (NAH.SH) is the transportation authority for regional transport in Schleswig-Holstein. This profile adds NAH.SH-specific customizations to hafas-client. Consider using nahsh-hafas, to always get the customized client right away.

Usage

import {createClient} from 'hafas-client'
import {profile as nahshProfile} from 'hafas-client/p/nahsh/index.js'

const userAgent = 'link-to-your-project-or-email' // adapt this to your project!

// create a client with NAH.SH profile
const client = createClient(nahshProfile, userAgent)

Customisations

  • parses NAH.SH-specific products