db-vendo-client/p
2020-07-19 22:58:13 +02:00
..
bvg add todos 2020-03-18 21:45:30 +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: stop.facilities.raw as non-enumerable property 2020-05-21 17:55:01 +02: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 INSA: ver 1.21 -> 1.18 🐛 2020-03-12 19:48:35 +01:00
invg add INVG profile 2020-03-12 18:57:07 +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 journeys: remove collection of results 2020-07-19 22:58:13 +02:00
pkp PKP: trim "-" from stop names 2020-03-18 21:45:36 +01:00
rmv add RMV profile 2020-03-12 19:00:02 +01:00
rsag add RSAG profile 2020-03-12 19:01:03 +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
sncb SNCB: normalize S-train line names 2020-03-19 13:05:11 +01:00
svv add SVV profile 2020-04-09 14:33:58 +02:00
vbb journeys: remove collection of results 2020-07-19 22:58:13 +02:00
vbn add VBN profile 2020-03-12 18:59:17 +01:00
vmt add VMT profile 2020-03-12 19:01:52 +01:00
vsn soothe the linter: remove unused variables 2020-02-27 17:10:03 +01: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.