db-vendo-client/p
2020-02-25 08:22:49 +01:00
..
bvg adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
cfl adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
cmta adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
db DB: fix journey leg loadFactor parsing 🐛 2020-02-25 08:22:49 +01:00
db-busradar-nrw DB Busradar NRW: adapt profile to ctx 2020-01-05 18:30:39 +01:00
hvv adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
insa adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
nahsh adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
nvv adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
oebb adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
saarfahrplan adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
sbahn-muenchen adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
vbb VBB: accept station IDs with unknown length 🐛 2020-01-31 19:54:18 +01:00
vsn move refreshJourneyReq-formatter to own function 2020-02-08 18:05:42 +01:00
readme.md adapt examples to e1bdd56 📝 2018-07-07 21:19:28 +02: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…