mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
arrival times and predicted times for intermediate stops
This commit is contained in:
parent
afc4b4b096
commit
b37c63c333
4 changed files with 76 additions and 15 deletions
|
@ -2042,10 +2042,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
XmlPullUtil.require(pp, "itdDateTime");
|
||||
final boolean success1 = processItdDateTime(pp, time);
|
||||
final boolean success2 = XmlPullUtil.test(pp, "itdDateTime") ? processItdDateTime(pp, time) : false;
|
||||
final Date stopTime = time.getTime(); // TODO arrival/departure, planned/predicted?
|
||||
XmlPullUtil.exit(pp, "itdPoint");
|
||||
|
||||
if (success1 || success2)
|
||||
intermediateStops.add(new Stop(stopLocation, stopPosition, time.getTime()));
|
||||
intermediateStops.add(new Stop(stopLocation, stopPosition, null, null, stopTime, null));
|
||||
}
|
||||
XmlPullUtil.exit(pp, "itdStopSeq");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue