mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
more lines
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@711 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
c4731e7de7
commit
a2b5775b8f
10 changed files with 21 additions and 18 deletions
|
@ -1379,6 +1379,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
return 'I';
|
return 'I';
|
||||||
if ("TLK".equals(ucType)) // Tanie Linie Kolejowe, Polen
|
if ("TLK".equals(ucType)) // Tanie Linie Kolejowe, Polen
|
||||||
return 'I';
|
return 'I';
|
||||||
|
if ("INT".equals(ucType)) // Zürich-Brüssel - Budapest-Istanbul
|
||||||
|
return 'I';
|
||||||
|
|
||||||
// Regional
|
// Regional
|
||||||
if ("ZUG".equals(ucType)) // Generic Train
|
if ("ZUG".equals(ucType)) // Generic Train
|
||||||
|
|
|
@ -190,6 +190,10 @@ public class NriProvider extends AbstractHafasProvider
|
||||||
|
|
||||||
if ("EXP".equals(ucType))
|
if ("EXP".equals(ucType))
|
||||||
return 'F';
|
return 'F';
|
||||||
|
if ("EXP.BOAT".equals(ucType))
|
||||||
|
return 'F';
|
||||||
|
if ("FERRY".equals(ucType))
|
||||||
|
return 'F';
|
||||||
if ("FER".equals(ucType))
|
if ("FER".equals(ucType))
|
||||||
return 'F';
|
return 'F';
|
||||||
if ("SHIP".equals(ucType))
|
if ("SHIP".equals(ucType))
|
||||||
|
|
|
@ -207,9 +207,6 @@ public class NsProvider extends AbstractHafasProvider
|
||||||
{
|
{
|
||||||
final String ucType = type.toUpperCase();
|
final String ucType = type.toUpperCase();
|
||||||
|
|
||||||
if (ucType.equals("INT")) // Zürich-Brüssel
|
|
||||||
return 'I';
|
|
||||||
|
|
||||||
if (ucType.equals("L"))
|
if (ucType.equals("L"))
|
||||||
return 'R';
|
return 'R';
|
||||||
if (ucType.equals("CR"))
|
if (ucType.equals("CR"))
|
||||||
|
|
|
@ -535,8 +535,6 @@ public class OebbProvider extends AbstractHafasProvider
|
||||||
{
|
{
|
||||||
final String ucType = type.toUpperCase();
|
final String ucType = type.toUpperCase();
|
||||||
|
|
||||||
if (ucType.equals("INT")) // Rußland, Connections only?
|
|
||||||
return 'I';
|
|
||||||
if (ucType.equals("RR")) // Finnland, Connections only?
|
if (ucType.equals("RR")) // Finnland, Connections only?
|
||||||
return 'I';
|
return 'I';
|
||||||
if (ucType.equals("EE")) // Rumänien, Connections only?
|
if (ucType.equals("EE")) // Rumänien, Connections only?
|
||||||
|
|
|
@ -183,8 +183,6 @@ public class PlProvider extends AbstractHafasProvider
|
||||||
return 'R';
|
return 'R';
|
||||||
if ("N".equals(ucType)) // St. Pierre des Corps - Tours
|
if ("N".equals(ucType)) // St. Pierre des Corps - Tours
|
||||||
return 'R';
|
return 'R';
|
||||||
// if ("INT".equals(ucType)) // Rußland
|
|
||||||
// return 'R';
|
|
||||||
|
|
||||||
if ("METRO".equals(ucType))
|
if ("METRO".equals(ucType))
|
||||||
return 'U';
|
return 'U';
|
||||||
|
|
|
@ -393,6 +393,9 @@ public class RmvProvider extends AbstractHafasProvider
|
||||||
if ("U-BAHN".equals(ucType))
|
if ("U-BAHN".equals(ucType))
|
||||||
return 'U';
|
return 'U';
|
||||||
|
|
||||||
|
if ("LTAXI".equals(ucType))
|
||||||
|
return 'B';
|
||||||
|
|
||||||
final char t = super.normalizeType(type);
|
final char t = super.normalizeType(type);
|
||||||
if (t != 0)
|
if (t != 0)
|
||||||
return t;
|
return t;
|
||||||
|
|
|
@ -211,6 +211,11 @@ public class RtProvider extends AbstractHafasProvider
|
||||||
if (t != 0)
|
if (t != 0)
|
||||||
return t;
|
return t;
|
||||||
|
|
||||||
|
if (ucType.equals("X70"))
|
||||||
|
return '?';
|
||||||
|
if (ucType.equals("T84"))
|
||||||
|
return '?';
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -297,6 +297,8 @@ public class ShProvider extends AbstractHafasProvider
|
||||||
return 'B';
|
return 'B';
|
||||||
if ("KB1".equals(ucType))
|
if ("KB1".equals(ucType))
|
||||||
return 'B';
|
return 'B';
|
||||||
|
if ("KLB".equals(ucType))
|
||||||
|
return 'B';
|
||||||
|
|
||||||
final char t = super.normalizeType(type);
|
final char t = super.normalizeType(type);
|
||||||
if (t != 0)
|
if (t != 0)
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class SncbProvider extends AbstractHafasProvider
|
||||||
productBits.setCharAt(0, '1'); // Hochgeschwindigkeitszug
|
productBits.setCharAt(0, '1'); // Hochgeschwindigkeitszug
|
||||||
productBits.setCharAt(2, '1'); // IC/IR/P/ICT
|
productBits.setCharAt(2, '1'); // IC/IR/P/ICT
|
||||||
}
|
}
|
||||||
else if (product == 'R'||product == 'S')
|
else if (product == 'R' || product == 'S')
|
||||||
{
|
{
|
||||||
productBits.setCharAt(6, '1'); // Zug
|
productBits.setCharAt(6, '1'); // Zug
|
||||||
}
|
}
|
||||||
|
@ -244,8 +244,6 @@ public class SncbProvider extends AbstractHafasProvider
|
||||||
{
|
{
|
||||||
final String ucType = type.toUpperCase();
|
final String ucType = type.toUpperCase();
|
||||||
|
|
||||||
if ("INT".equals(ucType)) // Zürich-Brüssel
|
|
||||||
return 'I';
|
|
||||||
if (ucType.startsWith("IC "))
|
if (ucType.startsWith("IC "))
|
||||||
return 'I';
|
return 'I';
|
||||||
if ("THALYS".equals(ucType)) // Thalys
|
if ("THALYS".equals(ucType)) // Thalys
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class VgsProvider extends AbstractHafasProvider
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setProductBits(final StringBuilder productBits, final char product)
|
protected void setProductBits(final StringBuilder productBits, final char product)
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,6 @@ public class VgsProvider extends AbstractHafasProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public NearbyStationsResult queryNearbyStations(final Location location, final int maxDistance, final int maxStations) throws IOException
|
public NearbyStationsResult queryNearbyStations(final Location location, final int maxDistance, final int maxStations) throws IOException
|
||||||
{
|
{
|
||||||
final StringBuilder uri = new StringBuilder(API_BASE);
|
final StringBuilder uri = new StringBuilder(API_BASE);
|
||||||
|
@ -313,9 +312,6 @@ public class VgsProvider extends AbstractHafasProvider
|
||||||
{
|
{
|
||||||
final String ucType = type.toUpperCase();
|
final String ucType = type.toUpperCase();
|
||||||
|
|
||||||
if (ucType.equals("INT")) // Zürich-Brüssel
|
|
||||||
return 'I';
|
|
||||||
|
|
||||||
if (ucType.equals("E")) // Stadtbahn Karlsruhe: S4/S31/xxxxx
|
if (ucType.equals("E")) // Stadtbahn Karlsruhe: S4/S31/xxxxx
|
||||||
return 'S';
|
return 'S';
|
||||||
|
|
||||||
|
@ -324,13 +320,13 @@ public class VgsProvider extends AbstractHafasProvider
|
||||||
if (ucType.equals("BOV"))
|
if (ucType.equals("BOV"))
|
||||||
return 'B';
|
return 'B';
|
||||||
|
|
||||||
if (ucType.equals("T84")) // U.K.
|
|
||||||
return '?';
|
|
||||||
|
|
||||||
final char t = super.normalizeType(type);
|
final char t = super.normalizeType(type);
|
||||||
if (t != 0)
|
if (t != 0)
|
||||||
return t;
|
return t;
|
||||||
|
|
||||||
|
if (ucType.equals("T84")) // U.K.
|
||||||
|
return '?';
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue