db-vendo-client/p
Jannis R 8881d8a1a4
parse fns: individual params -> data object 💥
From now on, all higher-level parse fns will be able to access more
of the response data while keeping their signature.

- parseLine
- parseDeparture
- parseJourney
- parseJourneyLeg
- parseLocation
- parseMovement
- parsePolyline
- parseNearby
- parseStopover
2018-06-13 20:05:24 +02:00
..
db parse fns: individual params -> data object 💥 2018-06-13 20:05:24 +02:00
insa rename location(id) -> station(id) 💥 2018-06-10 14:47:29 +02:00
nahsh parse fns: individual params -> data object 💥 2018-06-13 20:05:24 +02:00
oebb parse fns: individual params -> data object 💥 2018-06-13 20:05:24 +02:00
vbb parse fns: individual params -> data object 💥 2018-06-13 20:05:24 +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…