db-vendo-client/p
2018-06-20 23:25:21 +02:00
..
db DB: 1.16 protocol, enable journeyLeg, 2.8.0 2018-05-24 13:50:53 +02:00
insa INSA, Nah.sh: HTTPS 🔒 2018-05-30 16:05:05 +02:00
nahsh INSA, Nah.sh: HTTPS 🔒 2018-05-30 16:05:05 +02:00
oebb fix products parsing 🐛, fix tests for it 2018-03-13 03:23:03 +01:00
vbb VBB: strip "Bus " & "Tram " from line names 2018-06-20 23:25:21 +02:00
readme.md minimal profiles docs 📝 2018-01-04 22:37:47 +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 journeyLeg) 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…