This directory contains specific customisations for each endpoint, called profiles. They parse data from the API differently, add additional information, or add special methods specific to the endpoint (such as journeysFromTrip).
built-in profiles
There are built-in profiles for these public transportation networks:
Your profile must be passed into createClient and is expected to be in a certain structure:
import{createClient}from'hafas-client'constmyCustomProfile={// …
}// create a client with the profile
constclient=createClient(myCustomProfile)// use it to query data
awaitclient.journeys('1234','2345')