db-vendo-client/p
Jannis R 8f7358b462
Nah.sh: mode bus for on-call transit
We might want to rename "on-call" to "demand-responsive".
2018-08-17 21:41:49 +02:00
..
bvg docs for BVG profile 📝 2018-07-29 20:17:50 +02:00
db adapt profile docs to 5d9d738 📝 2018-07-28 14:58:25 +02:00
insa adapt profile docs to 5d9d738 📝 2018-07-28 14:58:25 +02:00
nahsh Nah.sh: mode bus for on-call transit 2018-08-17 21:41:49 +02:00
oebb docs: link to FPTF 1.1.1, minor fixes 📝 2018-08-01 10:05:00 +02:00
vbb adapt profile docs to 5d9d738 📝 2018-07-28 14:58:25 +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…