line attributes for airport lines of Berlin

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@899 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2012-01-22 19:22:24 +00:00
parent 0607164c57
commit 26b2281fbd
2 changed files with 10 additions and 3 deletions

View file

@ -898,11 +898,18 @@ public final class BvgProvider extends AbstractHafasProvider
if ("S42".equals(line))
return newLine("SS42", Attr.CIRCLE_ANTICLOCKWISE);
if ("BS41".equals(line))
if ("Bus S41".equals(line))
return newLine("BS41", Attr.SERVICE_REPLACEMENT, Attr.CIRCLE_CLOCKWISE);
if ("BS42".equals(line))
if ("Bus S42".equals(line))
return newLine("BS42", Attr.SERVICE_REPLACEMENT, Attr.CIRCLE_ANTICLOCKWISE);
if ("Bus TXL".equals(line))
return newLine("BTXL", Attr.LINE_AIRPORT);
if ("S9".equals(line))
return newLine("SS9", Attr.LINE_AIRPORT);
if ("S45".equals(line))
return newLine("SS45", Attr.LINE_AIRPORT);
final Matcher mRegional = P_LINE_REGIONAL.matcher(line);
if (mRegional.matches())
return newLine('R' + mRegional.group(1));

View file

@ -27,7 +27,7 @@ public final class Line implements Serializable, Comparable<Line>
{
public enum Attr
{
CIRCLE_CLOCKWISE, CIRCLE_ANTICLOCKWISE, SERVICE_REPLACEMENT, WHEEL_CHAIR_ACCESS
CIRCLE_CLOCKWISE, CIRCLE_ANTICLOCKWISE, SERVICE_REPLACEMENT, LINE_AIRPORT, WHEEL_CHAIR_ACCESS
}
private static final long serialVersionUID = -5642533805998375070L;