mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
.. | ||
bvg | ||
cfl | ||
cmta | ||
db | ||
db-busradar-nrw | ||
hvv | ||
insa | ||
invg | ||
irish-rail | ||
mobiliteit-lu | ||
nahsh | ||
nvv | ||
oebb | ||
pkp | ||
rejseplanen | ||
rmv | ||
rsag | ||
saarfahrplan | ||
sbahn-muenchen | ||
sncb | ||
svv | ||
vbb | ||
vbn | ||
vmt | ||
vsn | ||
zvv | ||
readme.md |
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.