mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
don't use lineRestriction for London
This commit is contained in:
parent
70167682e6
commit
2ce0de8103
2 changed files with 9 additions and 1 deletions
|
@ -100,6 +100,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
private boolean httpPost = false;
|
||||
private boolean suppressPositions = false;
|
||||
private boolean useRouteIndexAsConnectionId = true;
|
||||
private boolean useLineRestriction = true;
|
||||
|
||||
private final XmlPullParserFactory parserFactory;
|
||||
|
||||
|
@ -197,6 +198,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
this.useRouteIndexAsConnectionId = useRouteIndexAsConnectionId;
|
||||
}
|
||||
|
||||
protected void setUseLineRestriction(final boolean useLineRestriction)
|
||||
{
|
||||
this.useLineRestriction = useLineRestriction;
|
||||
}
|
||||
|
||||
protected void setCanAcceptPoiId(final boolean canAcceptPoiId)
|
||||
{
|
||||
this.canAcceptPoiId = canAcceptPoiId;
|
||||
|
@ -1852,7 +1858,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
uri.append("&inclMOT_11=on"); // TODO always show 'others', for now
|
||||
|
||||
// workaround for highspeed trains: fails when you want highspeed, but not regional
|
||||
if (!hasI)
|
||||
if (useLineRestriction && !hasI)
|
||||
uri.append("&lineRestriction=403"); // means: all but ice
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue