mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 15:29:49 +00:00
ignore 'gesicherter Anschluss'
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@258 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
4ecc11d814
commit
6046ebd5a1
1 changed files with 13 additions and 10 deletions
|
@ -774,25 +774,28 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
||||||
XmlPullUtil.skipRestOfTree(pp);
|
XmlPullUtil.skipRestOfTree(pp);
|
||||||
|
|
||||||
XmlPullUtil.jumpToStartTag(pp, null, "itdMeansOfTransport");
|
XmlPullUtil.jumpToStartTag(pp, null, "itdMeansOfTransport");
|
||||||
Connection.Part part;
|
final String productName = pp.getAttributeValue(null, "productName");
|
||||||
if (!"Fussweg".equals(pp.getAttributeValue(null, "productName")))
|
if ("Fussweg".equals(productName))
|
||||||
|
{
|
||||||
|
final int min = (int) (arrivalTime.getTimeInMillis() - departureTime.getTimeInMillis()) / 1000 / 60;
|
||||||
|
parts.add(new Connection.Footway(min, departureId, departure, arrivalId, arrival));
|
||||||
|
}
|
||||||
|
else if ("gesicherter Anschluss".equals(productName))
|
||||||
|
{
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
final String destinationIdStr = pp.getAttributeValue(null, "destID");
|
final String destinationIdStr = pp.getAttributeValue(null, "destID");
|
||||||
final int destinationId = destinationIdStr.length() > 0 ? Integer.parseInt(destinationIdStr) : 0;
|
final int destinationId = destinationIdStr.length() > 0 ? Integer.parseInt(destinationIdStr) : 0;
|
||||||
final String destination = normalizeLocationName(pp.getAttributeValue(null, "destination"));
|
final String destination = normalizeLocationName(pp.getAttributeValue(null, "destination"));
|
||||||
final String line = parseLine(pp.getAttributeValue(null, "motType"), pp.getAttributeValue(null, "shortname"), pp
|
final String line = parseLine(pp.getAttributeValue(null, "motType"), pp.getAttributeValue(null, "shortname"), pp
|
||||||
.getAttributeValue(null, "name"));
|
.getAttributeValue(null, "name"));
|
||||||
part = new Connection.Trip(line, lineColors(line), destinationId, destination, departureTime.getTime(),
|
parts.add(new Connection.Trip(line, lineColors(line), destinationId, destination, departureTime.getTime(),
|
||||||
departurePosition, departureId, departure, arrivalTime.getTime(), arrivalPosition, arrivalId, arrival);
|
departurePosition, departureId, departure, arrivalTime.getTime(), arrivalPosition, arrivalId, arrival));
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
final int min = (int) (arrivalTime.getTimeInMillis() - departureTime.getTimeInMillis()) / 1000 / 60;
|
|
||||||
part = new Connection.Footway(min, departureId, departure, arrivalId, arrival);
|
|
||||||
}
|
}
|
||||||
XmlPullUtil.skipRestOfTree(pp);
|
XmlPullUtil.skipRestOfTree(pp);
|
||||||
|
|
||||||
parts.add(part);
|
|
||||||
XmlPullUtil.skipRestOfTree(pp);
|
XmlPullUtil.skipRestOfTree(pp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue