mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
remove duplicates
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@326 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
4530b72860
commit
3a5218ce88
1 changed files with 4 additions and 2 deletions
|
@ -692,12 +692,14 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
{
|
||||
try
|
||||
{
|
||||
final String line = parseLine(pp.getAttributeValue(null, "motType"), pp.getAttributeValue(null, "number"), pp
|
||||
final String lineStr = parseLine(pp.getAttributeValue(null, "motType"), pp.getAttributeValue(null, "number"), pp
|
||||
.getAttributeValue(null, "number"));
|
||||
final String destination = normalizeLocationName(pp.getAttributeValue(null, "direction"));
|
||||
final String destinationIdStr = pp.getAttributeValue(null, "destID");
|
||||
final int destinationId = destinationIdStr.length() > 0 ? Integer.parseInt(destinationIdStr) : 0;
|
||||
lines.add(new Line(line, lineColors(line), destinationId, destination));
|
||||
final Line line = new Line(lineStr, lineColors(lineStr), destinationId, destination);
|
||||
if (!lines.contains(line))
|
||||
lines.add(line);
|
||||
}
|
||||
catch (final IllegalArgumentException x)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue