mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
Fix products in Hesse
This commit is contained in:
parent
0b17a9eb47
commit
2e9f7d59c7
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue