mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +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
|
@ -33,6 +33,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.QueryConnectionsResult;
|
||||
|
@ -358,7 +359,8 @@ public class RmvProvider extends AbstractHafasProvider
|
|||
final String min = mDetFine.group(7);
|
||||
if (min == null)
|
||||
{
|
||||
final String line = normalizeLine(ParserUtils.resolveEntities(mDetFine.group(1)));
|
||||
final String lineStr = normalizeLine(ParserUtils.resolveEntities(mDetFine.group(1)));
|
||||
final Line line = new Line(lineStr, lineColors(lineStr));
|
||||
|
||||
final Location destination = new Location(LocationType.ANY, 0, null, ParserUtils.resolveEntities(mDetFine.group(2)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue