fixed Belgium connections

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@634 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-05-10 11:16:08 +00:00
parent be7a173989
commit af6c3338e1
3 changed files with 28 additions and 9 deletions

View file

@ -630,8 +630,12 @@ public abstract class AbstractHafasProvider implements NetworkProvider
throw new IllegalStateException("error " + code + " " + XmlPullUtil.attr(pp, "text"));
}
XmlPullUtil.require(pp, "ConResCtxt");
final String context = XmlPullUtil.text(pp);
final String context;
if (XmlPullUtil.test(pp, "ConResCtxt"))
context = XmlPullUtil.text(pp);
else
context = null;
XmlPullUtil.enter(pp, "ConnectionList");
final List<Connection> connections = new ArrayList<Connection>();
@ -1254,8 +1258,6 @@ public abstract class AbstractHafasProvider implements NetworkProvider
return 'T';
// if ("T".equals(normalizedType)) // Tram
// return "T" + normalizedName;
// if ("Tramway".equals(normalizedType))
// return "T" + normalizedName;
// Bus
if ("BUS".equals(ucType)) // Generic Bus