mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 09:49:49 +00:00
Philadelphia directions
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@602 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
194a2738f0
commit
a8f006821f
3 changed files with 36 additions and 11 deletions
|
@ -587,7 +587,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
{
|
||||
final String id = XmlPullUtil.attr(pp, "id");
|
||||
|
||||
XmlPullUtil.enter(pp);
|
||||
XmlPullUtil.enter(pp, "Connection");
|
||||
while (pp.getName().equals("RtStateList"))
|
||||
XmlPullUtil.next(pp);
|
||||
XmlPullUtil.enter(pp, "Overview");
|
||||
|
@ -614,12 +614,12 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
|
||||
XmlPullUtil.exit(pp, "Overview");
|
||||
|
||||
XmlPullUtil.enter(pp, "ConSectionList");
|
||||
|
||||
final List<Connection.Part> parts = new ArrayList<Connection.Part>(4);
|
||||
Date firstDepartureTime = null;
|
||||
Date lastArrivalTime = null;
|
||||
|
||||
XmlPullUtil.enter(pp, "ConSectionList");
|
||||
|
||||
while (XmlPullUtil.test(pp, "ConSection"))
|
||||
{
|
||||
XmlPullUtil.enter(pp, "ConSection");
|
||||
|
@ -736,7 +736,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
XmlPullUtil.exit(pp, "BasicStop");
|
||||
XmlPullUtil.exit(pp, "Arrival");
|
||||
|
||||
XmlPullUtil.exit(pp);
|
||||
XmlPullUtil.exit(pp, "ConSection");
|
||||
|
||||
if (min == 0 || line != null)
|
||||
{
|
||||
|
@ -761,9 +761,9 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
lastArrivalTime = arrivalTime.getTime();
|
||||
}
|
||||
|
||||
XmlPullUtil.exit(pp);
|
||||
XmlPullUtil.exit(pp, "ConSectionList");
|
||||
|
||||
XmlPullUtil.exit(pp);
|
||||
XmlPullUtil.exit(pp, "Connection");
|
||||
|
||||
connections.add(new Connection(id, null, firstDepartureTime, lastArrivalTime, departure, arrival, parts, null));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue