mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 13:59:50 +00:00
KVV: 'Bürgerbus' line.
This commit is contained in:
parent
a776a0ae89
commit
df3bb04c13
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,7 @@ import javax.annotation.Nullable;
|
||||||
import com.google.common.base.Charsets;
|
import com.google.common.base.Charsets;
|
||||||
|
|
||||||
import de.schildbach.pte.dto.Line;
|
import de.schildbach.pte.dto.Line;
|
||||||
|
import de.schildbach.pte.dto.Product;
|
||||||
import de.schildbach.pte.dto.Style;
|
import de.schildbach.pte.dto.Style;
|
||||||
import de.schildbach.pte.dto.Style.Shape;
|
import de.schildbach.pte.dto.Style.Shape;
|
||||||
|
|
||||||
|
@ -55,6 +56,11 @@ public class KvvProvider extends AbstractEfaProvider {
|
||||||
protected Line parseLine(final @Nullable String id, final @Nullable String network, final @Nullable String mot,
|
protected Line parseLine(final @Nullable String id, final @Nullable String network, final @Nullable String mot,
|
||||||
@Nullable String symbol, @Nullable String name, @Nullable String longName, final @Nullable String trainType,
|
@Nullable String symbol, @Nullable String name, @Nullable String longName, final @Nullable String trainType,
|
||||||
final @Nullable String trainNum, final @Nullable String trainName) {
|
final @Nullable String trainNum, final @Nullable String trainName) {
|
||||||
|
if ("19".equals(mot)) {
|
||||||
|
if ("Bürgerbus".equals(trainName) || "BürgerBus".equals(trainName))
|
||||||
|
return new Line(id, network, Product.BUS, symbol);
|
||||||
|
}
|
||||||
|
|
||||||
if (symbol != null) {
|
if (symbol != null) {
|
||||||
final Matcher m = P_LINE.matcher(symbol);
|
final Matcher m = P_LINE.matcher(symbol);
|
||||||
if (m.matches())
|
if (m.matches())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue