db-vendo-client/p
2020-11-28 11:40:51 +01:00
..
bvg add todos 2020-03-18 21:45:30 +01:00
cfl profile flag for remarks() 2020-11-28 11:25:43 +01:00
cmta profile flag for lines() 2020-11-28 11:25:43 +01:00
db profile flag for lines() 2020-11-28 11:25:43 +01:00
db-busradar-nrw profile flag for lines() 2020-11-28 11:25:43 +01:00
hvv HVV: disable lines() 🐛 2020-11-28 11:40:51 +01:00
insa profile flag for remarks() 2020-11-28 11:25:43 +01:00
invg profile flag for remarks() 2020-11-28 11:25:43 +01:00
irish-rail add Irish Rail profile 2020-09-23 10:36:17 +02:00
mobiliteit-lu add mobiliteit.lu profile 2020-10-31 17:00:52 +01:00
nahsh profile flag for remarks() 2020-11-28 11:25:43 +01:00
nvv profile flag for remarks() 2020-11-28 11:25:43 +01:00
oebb profile flag for remarks() 2020-11-28 11:25:43 +01:00
pkp profile flag for remarks() 2020-11-28 11:25:43 +01:00
rejseplanen Rejseplanen profile 2020-09-15 11:36:24 +02:00
rmv profile flag for remarks() 2020-11-28 11:25:43 +01:00
rsag minor fixes 2020-11-15 14:18:25 +01:00
saarfahrplan adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
sbahn-muenchen S-Bahn Munich: switch to 1.21 protocol 2020-09-15 11:36:24 +02:00
sncb profile flag for remarks() 2020-11-28 11:25:43 +01:00
svv add SVV profile 2020-04-09 14:33:58 +02:00
vbb profile flag for remarks() 2020-11-28 11:25:43 +01:00
vbn add VBN profile 2020-03-12 18:59:17 +01:00
vmt profile flag for remarks() 2020-11-28 11:25:43 +01:00
vrn add VRN profile 2020-11-26 23:29:21 +01:00
vsn soothe the linter: remove unused variables 2020-02-27 17:10:03 +01:00
zvv add ZVV profile 2020-07-31 12:14:22 +02:00
readme.md improve docs 📝 2020-03-18 21:34:43 +01:00

Profiles

This directory contains specific customisations for each endpoint, called profiles. They parse data from the API differently, add additional information, or enable non-default methods (such as trip) if they are supported.

Each profile has it's own directory. It will be passed into hafas-client and is expected to be in a certain structure:

const createClient = require('hafas-client')
const someProfile = require('hafas-client/p/some-profile')

// create a client with the profile
const client = createClient(dbProfile)

// use it to query data…

If you want to write a profile for an endpoint, check out the writing a profile guide.