Traewelling / line-colors

This repository collects German public transport line colors.
https://traewelling.github.io/line-colors/
Creative Commons Zero v1.0 Universal
29 stars 41 forks source link

hafasLineId + hafasOperatorCode combination not distinct #26

Open rnewhost opened 1 year ago

rnewhost commented 1 year ago

I have an issue with lines REX 3 in Salzburg and the Ostregion (both in Austria). Both are operated by the ÖBB (and therefore have the same operator ID) and line ID rex-3. With these two parameters, the lines can't be distinguished.

The current version features the line colour for REX 3 in Salzburg (https://github.com/Traewelling/line-colors/blob/main/line-colors.csv#L87), which is also shown for REX 3 in the Ostregion (see screenshots from Träwelldroid attached)

I suggest adding an optional parameter to set one of more allowed ranges for "fahrtNr", as all trains for REX 3 in Salzburg operate in the range 1500-1599, 25500-25599 and 31500-31599 and in the Ostregion between 2200-2299 and 29200-29299.


Screenshot_2023-09-20-14-24-41-98_6eaab5f62e0cb9204f88373d41d52439

Screenshot_2023-09-20-14-24-58-07_6eaab5f62e0cb9204f88373d41d52439

jheubuch commented 1 year ago

WOULD YOU PLEASE NOT FIND SUCH DAMN EDGE CASES 😂🥺😭

oneiricbotcelot commented 11 months ago

I found another case where the same problem occurs: HAFAS line rb-41 operated by db-regio-ag-mitte.

RB 41 Treysa – Stadtallendorf – Marburg – Gießen – Friedberg – Frankfurt(Main) Hbf RB 41 Karlsruhe Hbf – Rastatt – Forbach

The second line is green according to DB Regio whereas the first one should be purple according to RMV.

At the moment both are displayed as green.

Unterwerk commented 10 months ago

four more cases are RE4, RE7, RB23 and RB24 of DB Regio Nordost. All lines currently have the colour of the line in Berlin/Brandenburg and not of Mecklenburg-Vorpommern.

jonasr97 commented 5 months ago

I also had the problem with RE4-BB and RE4-MV. The only way to differentiate both is the "adminCode".

sebiIO commented 3 months ago

The RB 16 and RE 16 lines of db-regio-bayern also share the same id 3-800765-16, but can be distinguished by the line name.