mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
BSVAG: 'Bürgerbus' line.
This commit is contained in:
parent
05ddaf8aab
commit
e1dae13874
1 changed files with 13 additions and 0 deletions
|
@ -25,7 +25,9 @@ import javax.annotation.Nullable;
|
|||
|
||||
import com.google.common.base.Charsets;
|
||||
|
||||
import de.schildbach.pte.dto.Line;
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.Product;
|
||||
import de.schildbach.pte.dto.Style;
|
||||
import de.schildbach.pte.dto.TripOptions;
|
||||
|
||||
|
@ -54,6 +56,17 @@ public class BsvagProvider extends AbstractEfaProvider {
|
|||
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<>();
|
||||
|
||||
static {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue