JSON-RPC server for the hafas-client module in TypeScript.
The messages are transmitted via standard input/output streams.
Implemented with the VSCode JSON RPC module.
There is a F# client using this server app.
The program expects the profile (HAFAS endpoint) as the first argument, i.e. 'db' for Deutsche Bahn (DB)
node build/index.js db
Get current profile.
Request:
- method: locations
- params: none
Response:
- result: Profile
Call locations method.
Request:
- method: locations
- params: LocationsRequestParams
Response:
Call journeys method.
Request:
- method: journeys
- params: JourneysRequestParams
Response:
- result: Journeys