mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +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
|
@ -34,6 +34,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;
|
||||
|
@ -502,7 +503,8 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
|
||||
final String departurePosition = mDetFine.group(7);
|
||||
|
||||
final String line = normalizeLine(ParserUtils.resolveEntities(mDetFine.group(8)));
|
||||
final String lineStr = normalizeLine(ParserUtils.resolveEntities(mDetFine.group(8)));
|
||||
final Line line = new Line(lineStr, lineColors(lineStr));
|
||||
|
||||
final String[] destinationPlaceAndName = splitNameAndPlace(ParserUtils.resolveEntities(mDetFine.group(9)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue