/hafas-jsonrpc-server

JSON-RPC server for hafas api

Primary LanguageTypeScriptMIT LicenseMIT

JSON-RPC server for hafas api

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.

Program arguments

The program expects the profile (HAFAS endpoint) as the first argument, i.e. 'db' for Deutsche Bahn (DB)

node build/index.js db

Profile Request

Get current profile.

Request:

  • method: locations
  • params: none

Response:

Locations Request

Call locations method.

Request:

Response:

Journeys Request

Call journeys method.

Request:

Response: