mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +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");
|
XmlPullUtil.enter(pp, "infoTextListElem");
|
||||||
final String text = pp.getText();
|
final String text = pp.getText();
|
||||||
if ("Niederflurwagen soweit verfügbar".equals(text)) // KVV
|
if (text != null)
|
||||||
lowFloorVehicle = true;
|
{
|
||||||
else if (text != null && text.toLowerCase().contains("ruf")) // RufBus, RufTaxi
|
final String lcText = text.toLowerCase();
|
||||||
message = text;
|
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, "infoTextListElem");
|
||||||
}
|
}
|
||||||
XmlPullUtil.exit(pp, "itdInfoTextList");
|
XmlPullUtil.exit(pp, "itdInfoTextList");
|
||||||
|
|
|
@ -1825,7 +1825,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
{
|
{
|
||||||
lineAttrs.add(Line.Attr.BICYCLE_CARRIAGE);
|
lineAttrs.add(Line.Attr.BICYCLE_CARRIAGE);
|
||||||
}
|
}
|
||||||
else if (comment.startsWith("$R "))
|
else if (comment.startsWith("$R ") || comment.startsWith("ga ") || comment.startsWith("Vs "))
|
||||||
{
|
{
|
||||||
lineOnDemand = true;
|
lineOnDemand = true;
|
||||||
lineComment = comment.substring(5);
|
lineComment = comment.substring(5);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue