more lines

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@711 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-06-21 07:25:23 +00:00
parent c4731e7de7
commit a2b5775b8f
10 changed files with 21 additions and 18 deletions

View file

@ -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

View file

@ -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))

View file

@ -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"))

View file

@ -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?

View file

@ -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';

View file

@ -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;

View file

@ -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;
} }
} }

View file

@ -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)

View file

@ -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

View file

@ -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;
} }
} }