Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
traines-source committed Dec 11, 2024
1 parent 760a1bd commit e18ac3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 117 deletions.
96 changes: 0 additions & 96 deletions p/db/readme.md

This file was deleted.

13 changes: 0 additions & 13 deletions p/db/routing-modes.js

This file was deleted.

16 changes: 8 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

This is a very early version. What works:

* rudimentary `/journeys` including lowest prices
* `/locations`, `/locations/nearby`
* `/departures`, `/arrivals`
* `journeys()`, `refreshJourney()` including prices
* `locations()`, `nearby()`
* `departures()`, `arrivals()` boards

What doesn't work (yet, see TODO's scattered around the code):

* `/journeys` details like scheduledDays, stop/station groups, tickets, some line details ...
* `/journeys` uses different tripIds compared to departure and arrival boards...
* certain stop details like products for `/locations` and geopositions for departures and arrivals
* some query options like BahnCards etc., certain filters for boards
* `journeys()` details like scheduledDays, stop/station groups, some line details ...
* `journeys()` uses different tripIds compared to departure and arrival boards...
* certain stop details like products for `locations()` and geopositions for boards
* some query options/filters (e.g. direction for boards)
* all other endpoints

Feel free report anything that you stumble upon via Issues or create a PR :)
Expand All @@ -34,7 +34,7 @@ Strictly speaking, permission is necessary to use this library with the DB APIs.

## Usage

See an example in [api.js](api.js). It shows how you can use `db-vendo-client` together with `hafas-rest-api` in order to run a [FPTF](https://github.com/public-transport/friendly-public-transport-format) API server.
See an example in [api.js](api.js). It shows how you can use `db-vendo-client` together with `hafas-rest-api` in order to run a [FPTF](https://github.com/public-transport/friendly-public-transport-format) API server. The [Dockerfile](Dockerfile) serves this API.

There are [community-maintained TypeScript typings available as `@types/hafas-client`](https://www.npmjs.com/package/@types/hafas-client).

Expand Down

0 comments on commit e18ac3f

Please sign in to comment.