mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +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 httpPost = false;
|
||||||
private boolean suppressPositions = false;
|
private boolean suppressPositions = false;
|
||||||
private boolean useRouteIndexAsConnectionId = true;
|
private boolean useRouteIndexAsConnectionId = true;
|
||||||
|
private boolean useLineRestriction = true;
|
||||||
|
|
||||||
private final XmlPullParserFactory parserFactory;
|
private final XmlPullParserFactory parserFactory;
|
||||||
|
|
||||||
|
@ -197,6 +198,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
this.useRouteIndexAsConnectionId = useRouteIndexAsConnectionId;
|
this.useRouteIndexAsConnectionId = useRouteIndexAsConnectionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void setUseLineRestriction(final boolean useLineRestriction)
|
||||||
|
{
|
||||||
|
this.useLineRestriction = useLineRestriction;
|
||||||
|
}
|
||||||
|
|
||||||
protected void setCanAcceptPoiId(final boolean canAcceptPoiId)
|
protected void setCanAcceptPoiId(final boolean canAcceptPoiId)
|
||||||
{
|
{
|
||||||
this.canAcceptPoiId = 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
|
uri.append("&inclMOT_11=on"); // TODO always show 'others', for now
|
||||||
|
|
||||||
// workaround for highspeed trains: fails when you want highspeed, but not regional
|
// 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
|
uri.append("&lineRestriction=403"); // means: all but ice
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,8 @@ public class TflProvider extends AbstractEfaProvider
|
||||||
public TflProvider()
|
public TflProvider()
|
||||||
{
|
{
|
||||||
super(API_BASE);
|
super(API_BASE);
|
||||||
|
|
||||||
|
setUseLineRestriction(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public NetworkId id()
|
public NetworkId id()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue