mention related libs 📝

This commit is contained in:
Jannis R 2022-10-24 14:11:47 +02:00
parent 2319d317d0
commit f530a30fe0
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 6 additions and 0 deletions

View file

@ -127,6 +127,10 @@ const client = createClient({
The default `profile.logRequest` [`console.error`](https://nodejs.org/docs/latest-v10.x/api/console.html#console_console_error_data_args)s the request body, if you have set `$DEBUG` to `hafas-client`. Likewise, `profile.logResponse` `console.error`s the response body.
## Using `hafas-client` from another language
If you want to use `hafas-client` to access HAFAS APIs but work with non-Node.js environments, you can use [`hafas-client-rpc`](https://github.com/derhuerst/hafas-client-rpc) to create a [JSON-RPC](https://www.jsonrpc.org) interface that you can send commands to.
## Writing a profile
Check [the guide](writing-a-profile.md).

View file

@ -228,6 +228,8 @@ There are [community-maintained TypeScript typings](https://www.npmjs.com/packag
- [`pyhafas`](https://github.com/n0emis/pyhafas) Python equivalent to `hafas-client`, with support for more types of public transport APIs.
- [`hafas-rs`](https://cyberchaos.dev/yuka/hafas-rs/) Rust equivalent to `hafas-client`.
- [`fshafas`](https://github.com/bergmannjg/fshafas) F# port of `hafas-client`.
- [`hafas-client-php`](https://github.com/MrKrisKrisu/hafas-client-php) PHP port of `hafas-client`.
- [*Transit*](https://jlnstrk.github.io/transit/) Kotlin client for mutliple kinds of public transport APIs, with support for HAFAS APIs.
- [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format#friendly-public-transport-format-fptf) A format for APIs, libraries and datasets containing and working with public transport data.
- [`observe-hafas-client`](https://github.com/public-transport/observe-hafas-client) Observe all departures/arrivals/etc. returned by `hafas-client`.
- [`cached-hafas-client`](https://github.com/public-transport/cached-hafas-client) Pass in a `hafas-client` instance, cache data from it.