mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
AbstractEfaProvider: 'Bürgerbus' line.
This commit is contained in:
parent
fa98ef4bbd
commit
ac26926ef8
4 changed files with 3 additions and 19 deletions
|
@ -1378,6 +1378,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
||||||
} else if ("17".equals(mot)) {
|
} else if ("17".equals(mot)) {
|
||||||
if (trainNum == null && trainName != null && trainName.startsWith("Schienenersatz"))
|
if (trainNum == null && trainName != null && trainName.startsWith("Schienenersatz"))
|
||||||
return new Line(id, network, Product.BUS, "SEV");
|
return new Line(id, network, Product.BUS, "SEV");
|
||||||
|
} else if ("19".equals(mot)) {
|
||||||
|
if ("Bürgerbus".equals(trainName) || "BürgerBus".equals(trainName))
|
||||||
|
return new Line(id, network, Product.BUS, symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
|
|
|
@ -25,9 +25,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.Location;
|
import de.schildbach.pte.dto.Location;
|
||||||
import de.schildbach.pte.dto.Product;
|
|
||||||
import de.schildbach.pte.dto.Style;
|
import de.schildbach.pte.dto.Style;
|
||||||
import de.schildbach.pte.dto.TripOptions;
|
import de.schildbach.pte.dto.TripOptions;
|
||||||
|
|
||||||
|
@ -56,17 +54,6 @@ public class BsvagProvider extends AbstractEfaProvider {
|
||||||
url.addEncodedQueryParameter("inclMOT_11", "on");
|
url.addEncodedQueryParameter("inclMOT_11", "on");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Line parseLine(String id, String network, String mot, String symbol, String name, String longName,
|
|
||||||
String trainType, String trainNum, String trainName) {
|
|
||||||
if ("19".equals(mot)) {
|
|
||||||
if ("Bürgerbus".equals(trainName) || "BürgerBus".equals(trainName))
|
|
||||||
return new Line(id, network, Product.BUS, symbol);
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final Map<String, Style> STYLES = new HashMap<>();
|
private static final Map<String, Style> STYLES = new HashMap<>();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
|
@ -57,9 +57,6 @@ public class KvvProvider extends AbstractEfaProvider {
|
||||||
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
|
return new Line(id, network, Product.REGIONAL_TRAIN, trainNum);
|
||||||
if (trainName != null && trainName.startsWith("TRILEX"))
|
if (trainName != null && trainName.startsWith("TRILEX"))
|
||||||
return new Line(id, network, Product.REGIONAL_TRAIN, trainName);
|
return new Line(id, network, Product.REGIONAL_TRAIN, trainName);
|
||||||
} else if ("19".equals(mot)) {
|
|
||||||
if ("Bürgerbus".equals(trainName) || "BürgerBus".equals(trainName))
|
|
||||||
return new Line(id, network, Product.BUS, symbol);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName);
|
return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName);
|
||||||
|
|
|
@ -93,9 +93,6 @@ public class VrrProvider extends AbstractEfaProvider {
|
||||||
// H-Bahn TU Dortmund
|
// H-Bahn TU Dortmund
|
||||||
if ("H-Bahn".equals(trainName) || (longName != null && longName.startsWith("H-Bahn")))
|
if ("H-Bahn".equals(trainName) || (longName != null && longName.startsWith("H-Bahn")))
|
||||||
return new Line(id, network, Product.CABLECAR, name);
|
return new Line(id, network, Product.CABLECAR, name);
|
||||||
} else if ("19".equals(mot)) {
|
|
||||||
if ("Bürgerbus".equals(trainName) || "BürgerBus".equals(trainName))
|
|
||||||
return new Line(id, network, Product.BUS, symbol);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName);
|
return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue