[libraries/kpublictransport] src/lib/gtfs: Map GTFS route type 1551 to Line::RideShare

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 8ccdb6e65d945410a1cfde1cab53c23ed7018a96 by Volker Krause.
Committed on 19/07/2026 at 16:27.
Pushed by vkrause into branch 'master'.

Map GTFS route type 1551 to Line::RideShare

That makes the booking URL detection in the MOTIS parser actually work.

M  +2    -0    src/lib/gtfs/hvt.cpp

https://invent.kde.org/libraries/kpublictransport/-/commit/8ccdb6e65d945410a1cfde1cab53c23ed7018a96

diff --git a/src/lib/gtfs/hvt.cpp b/src/lib/gtfs/hvt.cpp
index e2ee4865..1db233c5 100644
--- a/src/lib/gtfs/hvt.cpp
+++ b/src/lib/gtfs/hvt.cpp
@@ -46,6 +46,8 @@ Line::Mode Gtfs::Hvt::typeToMode(int hvt)
             return Line::RailShuttle;
         case 1502:
             return Line::Boat;
+        case 1551:
+            return Line::RideShare;
     }
 
     // coarse top-level types - https://developers.google.com/transit/gtfs/reference/#routestxt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.