mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Migrate network IDs to constant field.
This commit is contained in:
parent
695fc56d8e
commit
cf651676d2
70 changed files with 130 additions and 480 deletions
|
@ -33,12 +33,11 @@ import de.schildbach.pte.dto.Style;
|
|||
*/
|
||||
public class VrrProvider extends AbstractEfaProvider
|
||||
{
|
||||
public static final NetworkId NETWORK_ID = NetworkId.VRR;
|
||||
private static final String API_BASE = "http://app.vrr.de/standard/";
|
||||
|
||||
public VrrProvider()
|
||||
{
|
||||
super(API_BASE);
|
||||
super(NetworkId.VRR, API_BASE);
|
||||
|
||||
setIncludeRegionId(false);
|
||||
setUseProxFootSearch(false);
|
||||
|
@ -48,11 +47,6 @@ public class VrrProvider extends AbstractEfaProvider
|
|||
setRequestUrlEncoding(Charsets.UTF_8);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
{
|
||||
return NETWORK_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Line parseLine(final @Nullable String id, final @Nullable String mot, final @Nullable String symbol, final @Nullable String name,
|
||||
final @Nullable String longName, final @Nullable String trainType, final @Nullable String trainNum, final @Nullable String trainName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue