mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
Fix products for Netherlands.
This commit is contained in:
parent
f5a9e8bb97
commit
99ec2eb268
1 changed files with 12 additions and 4 deletions
|
@ -42,8 +42,6 @@ public class NsProvider extends AbstractHafasProvider
|
||||||
public NsProvider()
|
public NsProvider()
|
||||||
{
|
{
|
||||||
super(API_BASE + "stboard.exe/nn", API_BASE + "ajax-getstop.exe/nny", API_BASE + "query.exe/nn", 10);
|
super(API_BASE + "stboard.exe/nn", API_BASE + "ajax-getstop.exe/nny", API_BASE + "query.exe/nn", 10);
|
||||||
|
|
||||||
setJsonGetStopsEncoding(UTF_8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public NetworkId id()
|
public NetworkId id()
|
||||||
|
@ -63,8 +61,18 @@ public class NsProvider extends AbstractHafasProvider
|
||||||
@Override
|
@Override
|
||||||
protected char intToProduct(final int value)
|
protected char intToProduct(final int value)
|
||||||
{
|
{
|
||||||
if (value == 0)
|
if (value == 1)
|
||||||
return '?';
|
return 'I';
|
||||||
|
if (value == 2)
|
||||||
|
return 'I';
|
||||||
|
if (value == 4)
|
||||||
|
return 'R';
|
||||||
|
if (value == 8)
|
||||||
|
return 'R';
|
||||||
|
if (value == 16)
|
||||||
|
return 'S';
|
||||||
|
if (value == 64)
|
||||||
|
return 'F';
|
||||||
|
|
||||||
throw new IllegalArgumentException("cannot handle: " + value);
|
throw new IllegalArgumentException("cannot handle: " + value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue