mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
refactored normalizeLine to parseLine
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@788 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
5cbbd7f175
commit
ed80d13ff9
5 changed files with 41 additions and 25 deletions
|
@ -257,7 +257,7 @@ public class SeptaProvider extends AbstractHafasProvider
|
|||
|
||||
final String lineType = mDepFine.group(3);
|
||||
|
||||
final String line = normalizeLine(lineType, ParserUtils.resolveEntities(mDepFine.group(4)));
|
||||
final Line line = parseLine(lineType, ParserUtils.resolveEntities(mDepFine.group(4)));
|
||||
|
||||
final int destinationId = mDepFine.group(5) != null ? Integer.parseInt(mDepFine.group(5)) : 0;
|
||||
|
||||
|
@ -265,8 +265,8 @@ public class SeptaProvider extends AbstractHafasProvider
|
|||
|
||||
final String position = mDepFine.group(7) != null ? "Gl. " + ParserUtils.resolveEntities(mDepFine.group(7)) : null;
|
||||
|
||||
final Departure dep = new Departure(plannedTime.getTime(), predictedTime != null ? predictedTime.getTime() : null, new Line(null,
|
||||
line, line != null ? lineColors(line) : null), position, destinationId, destination, null, null);
|
||||
final Departure dep = new Departure(plannedTime.getTime(), predictedTime != null ? predictedTime.getTime() : null, line,
|
||||
position, destinationId, destination, null, null);
|
||||
|
||||
if (!departures.contains(dep))
|
||||
departures.add(dep);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue