mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
fixed empty destination arrow on some providers
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@433 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a5841db660
commit
0be28a9c29
1 changed files with 4 additions and 5 deletions
|
@ -343,7 +343,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
|
|
||||||
// journey
|
// journey
|
||||||
String line = null;
|
String line = null;
|
||||||
String direction = null;
|
Location destination = null;
|
||||||
int min = 0;
|
int min = 0;
|
||||||
|
|
||||||
final String tag = pp.getName();
|
final String tag = pp.getName();
|
||||||
|
@ -377,7 +377,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
else if ("DIRECTION".equals(attrName))
|
else if ("DIRECTION".equals(attrName))
|
||||||
{
|
{
|
||||||
direction = attributeVariants.get("NORMAL");
|
destination = new Location(LocationType.ANY, 0, attributeVariants.get("NORMAL"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
XmlPullUtil.exit(pp);
|
XmlPullUtil.exit(pp);
|
||||||
|
@ -424,9 +424,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
|
|
||||||
if (min == 0 || line != null)
|
if (min == 0 || line != null)
|
||||||
{
|
{
|
||||||
parts.add(new Connection.Trip(line, lineColors(line), new Location(LocationType.ANY, 0, direction), departureTime,
|
parts.add(new Connection.Trip(line, lineColors(line), destination, departureTime, departurePos, sectionDeparture.id,
|
||||||
departurePos, sectionDeparture.id, sectionDeparture.name, arrivalTime, arrivalPos, sectionArrival.id,
|
sectionDeparture.name, arrivalTime, arrivalPos, sectionArrival.id, sectionArrival.name, null));
|
||||||
sectionArrival.name, null));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue