mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
separate Line class for lines without destination
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@524 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
11154da61f
commit
4da349339d
8 changed files with 90 additions and 15 deletions
|
@ -32,6 +32,7 @@ import java.util.regex.Pattern;
|
|||
import de.schildbach.pte.dto.Connection;
|
||||
import de.schildbach.pte.dto.Departure;
|
||||
import de.schildbach.pte.dto.GetConnectionDetailsResult;
|
||||
import de.schildbach.pte.dto.Line;
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||
|
@ -349,7 +350,8 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
|
||||
if (mDetFine.group(2) != null)
|
||||
{
|
||||
final String line = normalizeLine(ParserUtils.resolveEntities(mDetFine.group(2)));
|
||||
final String lineStr = normalizeLine(ParserUtils.resolveEntities(mDetFine.group(2)));
|
||||
final Line line = new Line(lineStr, lineColors(lineStr));
|
||||
|
||||
final Date departureTime = ParserUtils.parseTime(mDetFine.group(3));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue