mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 08:19:51 +00:00
parse well-formatted StationTable
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@793 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
ce033e31cb
commit
535ee011bd
1 changed files with 10 additions and 0 deletions
|
@ -470,6 +470,13 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
throw new IllegalArgumentException("unknown error " + code + ", " + text);
|
||||
}
|
||||
|
||||
if (XmlPullUtil.test(pp, "StationTable"))
|
||||
{
|
||||
XmlPullUtil.enter(pp, "StationTable");
|
||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
||||
pp.nextTag();
|
||||
}
|
||||
|
||||
while (XmlPullUtil.test(pp, "Journey"))
|
||||
{
|
||||
final String fpTime = XmlPullUtil.attr(pp, "fpTime");
|
||||
|
@ -597,6 +604,9 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
XmlPullUtil.enter(pp, "Journey");
|
||||
XmlPullUtil.exit(pp, "Journey");
|
||||
}
|
||||
|
||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
||||
pp.nextTag();
|
||||
}
|
||||
|
||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, stationId), departures, null));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue