mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
61 lines
2.4 KiB
Java
61 lines
2.4 KiB
Java
/*
|
|
* Copyright 2010-2015 the original author or authors.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package de.schildbach.pte;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import de.schildbach.pte.dto.Style;
|
|
|
|
/**
|
|
* @author Andreas Schildbach
|
|
*/
|
|
public class SvvProvider extends AbstractEfaProvider
|
|
{
|
|
private final static String API_BASE = "http://efa.svv-info.at/svv/";
|
|
|
|
public SvvProvider()
|
|
{
|
|
super(NetworkId.SVV, API_BASE);
|
|
|
|
setStyles(STYLES);
|
|
}
|
|
|
|
private static final Map<String, Style> STYLES = new HashMap<String, Style>();
|
|
|
|
static
|
|
{
|
|
STYLES.put("svv|SS1", new Style(Style.parseColor("#b61d33"), Style.WHITE));
|
|
STYLES.put("svv|SS2", new Style(Style.parseColor("#0069b4"), Style.WHITE));
|
|
STYLES.put("svv|SS3", new Style(Style.parseColor("#0aa537"), Style.WHITE));
|
|
STYLES.put("svv|SS4", new Style(Style.parseColor("#a862a4"), Style.WHITE));
|
|
STYLES.put("svv|SS11", new Style(Style.parseColor("#b61d33"), Style.WHITE));
|
|
|
|
STYLES.put("svv|B1", new Style(Style.parseColor("#e3000f"), Style.WHITE));
|
|
STYLES.put("svv|B2", new Style(Style.parseColor("#0069b4"), Style.WHITE));
|
|
STYLES.put("svv|B3", new Style(Style.parseColor("#956b27"), Style.WHITE));
|
|
STYLES.put("svv|B4", new Style(Style.parseColor("#ffcc00"), Style.WHITE));
|
|
STYLES.put("svv|B5", new Style(Style.parseColor("#04bbee"), Style.WHITE));
|
|
STYLES.put("svv|B6", new Style(Style.parseColor("#85bc22"), Style.WHITE));
|
|
STYLES.put("svv|B7", new Style(Style.parseColor("#009a9b"), Style.WHITE));
|
|
STYLES.put("svv|B8", new Style(Style.parseColor("#f39100"), Style.WHITE));
|
|
STYLES.put("svv|B10", new Style(Style.parseColor("#f8baa2"), Style.BLACK));
|
|
STYLES.put("svv|B12", new Style(Style.parseColor("#b9dfde"), Style.WHITE));
|
|
STYLES.put("svv|B14", new Style(Style.parseColor("#cfe09a"), Style.WHITE));
|
|
}
|
|
}
|