lines for Austria

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@239 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-10-05 11:23:19 +00:00
parent ecb506c892
commit 6ca75b99e9
2 changed files with 7 additions and 1 deletions

View file

@ -202,6 +202,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
return 'B';
if (ucType.equals("SEV")) // Schienen-Ersatz-Verkehr
return 'B';
if (ucType.equals("BUSSEV")) // Schienen-Ersatz-Verkehr
return 'B';
if (ucType.equals("FB")) // Luxemburg-Saarbrücken
return 'B';

View file

@ -522,7 +522,7 @@ public class OebbProvider extends AbstractHafasProvider
{
final Date time = ParserUtils.joinDateTime(ParserUtils.parseDate(departure.getString("da")), ParserUtils.parseTime(departure
.getString("ti")));
final String line = normalizeLine(departure.getString("pr"));
final String line = normalizeLine(ParserUtils.resolveEntities(departure.getString("pr")));
final String destination = ParserUtils.resolveEntities(departure.getString("st"));
String position = departure.optString("tr");
if (position != null)
@ -813,6 +813,8 @@ public class OebbProvider extends AbstractHafasProvider
return 'F';
if (ucType.equals("SCHIFF")) // via JSON API
return 'F';
if (ucType.equals("F")) // Fähre
return 'F';
if (ucType.equals("SB")) // Connections only?
return 'C';
@ -820,6 +822,8 @@ public class OebbProvider extends AbstractHafasProvider
return 'C';
if (ucType.equals("SEILBAHN")) // via JSON API
return 'C';
if (ucType.equals("SSB")) // Graz Schlossbergbahn
return 'C';
if (ucType.equals("FLUG")) // via JSON API
return 'I';