mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
Fix products for Kiel, Lübeck & Schleswig-Holstein.
This commit is contained in:
parent
c26134b201
commit
e3108b8ea7
1 changed files with 27 additions and 0 deletions
|
@ -68,6 +68,33 @@ public class ShProvider extends AbstractHafasProvider
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected char intToProduct(final int value)
|
||||
{
|
||||
if (value == 1)
|
||||
return 'I';
|
||||
if (value == 2)
|
||||
return 'I';
|
||||
if (value == 4)
|
||||
return 'I';
|
||||
if (value == 8)
|
||||
return 'R';
|
||||
if (value == 16)
|
||||
return 'S';
|
||||
if (value == 32)
|
||||
return 'B';
|
||||
if (value == 64)
|
||||
return 'F';
|
||||
if (value == 128)
|
||||
return 'U';
|
||||
if (value == 256)
|
||||
return 'T';
|
||||
if (value == 512)
|
||||
return 'P';
|
||||
|
||||
throw new IllegalArgumentException("cannot handle: " + value);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setProductBits(final StringBuilder productBits, final Product product)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue