mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
Detect several on demand lines.
This commit is contained in:
parent
99ec2eb268
commit
710d074c47
2 changed files with 9 additions and 5 deletions
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue