mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
parse next departures for connections
This commit is contained in:
parent
d37af7e32c
commit
d190ced050
2 changed files with 15 additions and 2 deletions
|
@ -1675,6 +1675,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
uri.append("&locationServerActive=1");
|
||||
uri.append("&useRealtime=1");
|
||||
uri.append("&useProxFootSearch=1"); // walk if it makes journeys quicker
|
||||
uri.append("&nextDepsPerLeg=1"); // next departure in case previous was missed
|
||||
|
||||
return uri.toString();
|
||||
}
|
||||
|
@ -2113,6 +2114,17 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
XmlPullUtil.exit(pp, "genAttrList");
|
||||
}
|
||||
|
||||
if (XmlPullUtil.test(pp, "nextDeps"))
|
||||
{
|
||||
XmlPullUtil.enter(pp, "nextDeps");
|
||||
while (XmlPullUtil.test(pp, "itdDateTime"))
|
||||
{
|
||||
processItdDateTime(pp, time);
|
||||
final Date nextDepartureTime = time.getTime();
|
||||
}
|
||||
XmlPullUtil.exit(pp, "nextDeps");
|
||||
}
|
||||
|
||||
final Line line = new Line(lineId, lineLabel, lineStyle(lineLabel), lineAttrs);
|
||||
|
||||
parts.add(new Connection.Trip(line, destination, departureTargetTime != null ? departureTargetTime : departureTime,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue