From 88acdd16201ee37cfaa9ab168e8dd291c493a102 Mon Sep 17 00:00:00 2001 From: Traines Date: Thu, 6 Mar 2025 20:18:00 +0000 Subject: [PATCH] enrichStations fix --- parse/location.js | 2 +- readme.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/parse/location.js b/parse/location.js index 5bf21d6b..8fc167cf 100644 --- a/parse/location.js +++ b/parse/location.js @@ -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; diff --git a/readme.md b/readme.md index fc56cd87..b58a12ee 100644 --- a/readme.md +++ b/readme.md @@ -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/).** +[![npm version](https://img.shields.io/npm/v/db-vendo-client.svg)](https://www.npmjs.com/package/db-vendo-client) ![ISC-licensed](https://img.shields.io/github/license/public-transport/db-vendo-client.svg) [![support Jannis via GitHub Sponsors](https://img.shields.io/badge/support%20Jannis-donate-fa7664.svg)](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()`)