Fix products in Hesse

This commit is contained in:
Andreas Schildbach 2013-08-18 21:52:15 +02:00
parent 0b17a9eb47
commit 2e9f7d59c7

View file

@ -42,7 +42,7 @@ public class NvvProvider extends AbstractHafasProvider
public NvvProvider()
{
super(API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 16, null, UTF_8, null);
super(API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 12, null, UTF_8, null);
}
public NetworkId id()
@ -65,12 +65,13 @@ public class NvvProvider extends AbstractHafasProvider
if (product == Product.HIGH_SPEED_TRAIN)
{
productBits.setCharAt(0, '1'); // ICE
productBits.setCharAt(1, '1'); // Zug, scheinbar IC?
productBits.setCharAt(1, '1'); // IC/EC
}
else if (product == Product.REGIONAL_TRAIN)
{
productBits.setCharAt(2, '1'); // Zug
productBits.setCharAt(2, '1'); // Regionalzug
productBits.setCharAt(10, '1'); // Zug
productBits.setCharAt(11, '1'); // RegioTram
}
else if (product == Product.SUBURBAN_TRAIN)
{
@ -131,6 +132,8 @@ public class NvvProvider extends AbstractHafasProvider
return 'P';
if (value == 1024)
return 'R';
if (value == 2048)
return 'R';
throw new IllegalArgumentException("cannot handle: " + value);
}