db-vendo-client/p
2020-01-05 17:50:27 +01:00
..
bvg BVG: use 1.21 protocol 2020-01-05 17:50:27 +01:00
cfl CFL: tests 2019-05-20 20:06:24 +02:00
cmta departures/arrivals, locations, nearby, stop: opt.stationLines -> linesOfStops 💥 📝 2019-02-28 16:45:18 +01:00
db add profile.parseCommon 2020-01-05 17:50:27 +01:00
db-busradar-nrw add journeysOutFrwd profile flag 2019-12-29 22:18:22 +01:00
hvv HVV examples 📝 2019-05-27 20:17:23 +02:00
insa DB, INSA, Nah.SH, ÖBB: nationalExp -> nationalExpress 💥 2019-02-28 16:45:31 +01:00
nahsh DB, INSA, Nah.SH, ÖBB: nationalExp -> nationalExpress 💥 2019-02-28 16:45:31 +01:00
nvv add NVV profile 2019-08-16 18:20:15 +02:00
oebb make POIs objects with poi: true 💥 2019-02-28 16:45:31 +01:00
saarfahrplan departures/arrivals, locations, nearby, stop: opt.stationLines -> linesOfStops 💥 📝 2019-02-28 16:45:18 +01:00
sbahn-muenchen departures/arrivals, locations, nearby, stop: opt.stationLines -> linesOfStops 💥 📝 2019-02-28 16:45:18 +01:00
vbb fix parseWarning 🐛 2019-05-27 16:33:01 +02: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…