diff --git a/BvgFetcher.js b/BvgFetcher.js index 6ca944e..7ece0f9 100644 --- a/BvgFetcher.js +++ b/BvgFetcher.js @@ -26,7 +26,7 @@ module.exports = class BvgFetcher { async getStationName() { const station = await this.hafasClient.stop(this.config.stationId); - return station.name; + return this.config.shortenStationNames ? shortenStationName(station.name) : station.name; } async getDirectionDescriptor() {