mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
EFA: Set maximum time to walk to first or from last stop.
This commit is contained in:
parent
6106419561
commit
6b1e882558
2 changed files with 13 additions and 2 deletions
|
@ -2091,14 +2091,16 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
uri.append("&lineRestriction=403"); // means: all but ice
|
uri.append("&lineRestriction=403"); // means: all but ice
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (useProxFootSearch)
|
||||||
|
uri.append("&useProxFootSearch=1"); // walk if it makes journeys quicker
|
||||||
|
uri.append("&trITMOTvalue100=10"); // maximum time to walk to first or from last stop
|
||||||
|
|
||||||
if (options != null && options.contains(Option.BIKE))
|
if (options != null && options.contains(Option.BIKE))
|
||||||
uri.append("&bikeTakeAlong=1");
|
uri.append("&bikeTakeAlong=1");
|
||||||
|
|
||||||
uri.append("&locationServerActive=1");
|
uri.append("&locationServerActive=1");
|
||||||
if (useRealtime)
|
if (useRealtime)
|
||||||
uri.append("&useRealtime=1");
|
uri.append("&useRealtime=1");
|
||||||
if (useProxFootSearch)
|
|
||||||
uri.append("&useProxFootSearch=1"); // walk if it makes journeys quicker
|
|
||||||
uri.append("&nextDepsPerLeg=1"); // next departure in case previous was missed
|
uri.append("&nextDepsPerLeg=1"); // next departure in case previous was missed
|
||||||
|
|
||||||
return uri.toString();
|
return uri.toString();
|
||||||
|
|
|
@ -111,4 +111,13 @@ public class VagfrProviderLiveTest extends AbstractProviderLiveTest
|
||||||
final QueryTripsResult earlierResult = queryMoreTrips(later2Result.context, false);
|
final QueryTripsResult earlierResult = queryMoreTrips(later2Result.context, false);
|
||||||
print(earlierResult);
|
print(earlierResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void trip() throws Exception
|
||||||
|
{
|
||||||
|
final QueryTripsResult result = queryTrips(new Location(LocationType.STATION, "6930120"), null,
|
||||||
|
new Location(LocationType.STATION, "6930071"), new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||||
|
print(result);
|
||||||
|
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue