mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
line attributes for circle lines of Berlin
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@897 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
8cab86e4e2
commit
057e56ec69
2 changed files with 7 additions and 1 deletions
|
@ -35,6 +35,7 @@ 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.Line.Attr;
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||
|
@ -892,6 +893,11 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
@Override
|
||||
protected Line normalizeLine(final String line)
|
||||
{
|
||||
if ("S41".equals(line))
|
||||
return newLine("SS41", Attr.CIRCLE_CLOCKWISE);
|
||||
if ("S42".equals(line))
|
||||
return newLine("SS42", Attr.CIRCLE_ANTICLOCKWISE);
|
||||
|
||||
final Matcher mRegional = P_LINE_REGIONAL.matcher(line);
|
||||
if (mRegional.matches())
|
||||
return newLine('R' + mRegional.group(1));
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class Line implements Serializable, Comparable<Line>
|
|||
{
|
||||
public enum Attr
|
||||
{
|
||||
WHEEL_CHAIR_ACCESS
|
||||
CIRCLE_CLOCKWISE, CIRCLE_ANTICLOCKWISE, WHEEL_CHAIR_ACCESS
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = -5642533805998375070L;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue