Detect several on demand lines.

This commit is contained in:
Andreas Schildbach 2014-05-20 18:09:05 +02:00
parent 99ec2eb268
commit 710d074c47
2 changed files with 9 additions and 5 deletions

View file

@ -2604,10 +2604,14 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
{
XmlPullUtil.enter(pp, "infoTextListElem");
final String text = pp.getText();
if ("Niederflurwagen soweit verfügbar".equals(text)) // KVV
lowFloorVehicle = true;
else if (text != null && text.toLowerCase().contains("ruf")) // RufBus, RufTaxi
message = text;
if (text != null)
{
final String lcText = text.toLowerCase();
if ("niederflurwagen soweit verfügbar".equals(lcText)) // KVV
lowFloorVehicle = true;
else if (lcText.contains("ruf") || lcText.contains("anmeld")) // Bedarfsverkehr
message = text;
}
XmlPullUtil.exit(pp, "infoTextListElem");
}
XmlPullUtil.exit(pp, "itdInfoTextList");

View file

@ -1825,7 +1825,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
{
lineAttrs.add(Line.Attr.BICYCLE_CARRIAGE);
}
else if (comment.startsWith("$R "))
else if (comment.startsWith("$R ") || comment.startsWith("ga ") || comment.startsWith("Vs "))
{
lineOnDemand = true;
lineComment = comment.substring(5);