db-vendo-client/p/nahsh
Jannis R d2257c26ff
rename d.remarks -> d.hints, parseRemark -> parseHint
HAFAS returns notes for journey legs, stopovers and departures.

There are two kinds of notes: "remarks" (in `remL`) and HAFAS
Information Manager (HIM) notes (in `himL`). The former describe
the regular operating situation, e.g. "bicycles allows", whereas
the latter describe cancellations, construction work, etc.

The planned naming scheme for hafas-client:
- hints: notes from `remL` for regular operation
- warnings: notes from `himL` for cancellations, construction, etc
- remarks: both "notes" and "warnings"

This commit prepares the new naming scheme by renaming the
existing parsing logic of `remL` to "hints". Follow-up commits
will add `parseWarning`.
2018-06-07 16:34:50 +02:00
..
example.js support pricing information 2018-03-15 09:33:31 +01:00
index.js rename d.remarks -> d.hints, parseRemark -> parseHint 2018-06-07 16:34:50 +02:00
products.js NAH.SH: use new products markup 🐛 2018-03-21 01:54:31 +01:00
readme.md add profile and tests for nah.sh 2018-03-14 14:54:08 +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

const createClient = require('hafas-client')
const nahshProfile = require('hafas-client/p/nahsh')

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

Customisations

  • parses NAH.SH-specific products