mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +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
|
@ -56,7 +56,6 @@ import de.schildbach.pte.util.ParserUtils;
|
|||
*/
|
||||
public class InvgProvider extends AbstractHafasProvider
|
||||
{
|
||||
public static final NetworkId NETWORK_ID = NetworkId.INVG;
|
||||
private static final String API_BASE = "http://fpa.invg.de/bin/";
|
||||
|
||||
// http://invg.hafas.de/bin/
|
||||
|
@ -65,18 +64,13 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
|
||||
public InvgProvider()
|
||||
{
|
||||
super(API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 10, Charsets.UTF_8);
|
||||
super(NetworkId.INVG, API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 10, Charsets.UTF_8);
|
||||
|
||||
setStationBoardCanDoEquivs(false);
|
||||
setStyles(STYLES);
|
||||
setExtXmlEndpoint(API_BASE + "extxml.exe");
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
{
|
||||
return NETWORK_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean hasCapability(final Capability capability)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue