mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-20 23:23:56 +03:00
enrichStations fix
This commit is contained in:
parent
25cbb288ca
commit
88acdd1620
2 changed files with 4 additions and 3 deletions
|
@ -64,7 +64,7 @@ const parseLocation = (ctx, l) => {
|
|||
}
|
||||
|
||||
res.name = name;
|
||||
res = enrichStation(ctx, res);
|
||||
res = profile.enrichStation(ctx, res);
|
||||
|
||||
if (l.type === ADDRESS || lid.A == '2') {
|
||||
res.address = name;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
**A client for the new "vendo"/"movas" Deutsche Bahn APIs, a drop-in replacement for [hafas-client](https://github.com/public-transport/hafas-client/).**
|
||||
|
||||
[](https://www.npmjs.com/package/db-vendo-client)
|
||||

|
||||
[](https://github.com/sponsors/derhuerst)
|
||||
|
||||
|
@ -12,11 +13,11 @@ This is an early version. What works:
|
|||
* `departures()`, `arrivals()` boards
|
||||
* `trip()`
|
||||
|
||||
What doesn't work (yet, see TODO's scattered around the code):
|
||||
What doesn't work:
|
||||
|
||||
* `journeys()` details like scheduledDays, stop/station groups, some line details ...
|
||||
* loadFactor and other details in boards
|
||||
* certain stop details like products for `locations()` and geopositions and remarks for boards – this can be remedied with `enrichStations` in the config (turned on by default), enriching location info with [db-hafas-stations](https://github.com/derhuerst/db-hafas-stations).
|
||||
* certain stop details like products for `locations()` and geopositions for boards – this can be remedied with `enrichStations` in the config (turned on by default), enriching stop info with [db-hafas-stations](https://github.com/derhuerst/db-hafas-stations).
|
||||
* some query options/filters (e.g. routingMode for journeys, direction for boards)
|
||||
* all other endpoints (`tripsByName()`, `radar()`, `journeysFromTrip()`, `reachableFrom()`, `remarks()`, `lines()`, `station()`)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue