mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
Adapt to API change of Vienna, Lower Austria and Burgenland
This commit is contained in:
parent
c375502229
commit
50021f5dc8
2 changed files with 6 additions and 5 deletions
|
@ -148,7 +148,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
apiBase + (coordEndpoint != null ? coordEndpoint : DEFAULT_COORD_ENDPOINT));
|
apiBase + (coordEndpoint != null ? coordEndpoint : DEFAULT_COORD_ENDPOINT));
|
||||||
}
|
}
|
||||||
|
|
||||||
private AbstractEfaProvider(final String departureMonitorEndpoint, final String tripEndpoint, final String stopFinderEndpoint,
|
public AbstractEfaProvider(final String departureMonitorEndpoint, final String tripEndpoint, final String stopFinderEndpoint,
|
||||||
final String coordEndpoint)
|
final String coordEndpoint)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -28,14 +28,15 @@ import de.schildbach.pte.dto.Style;
|
||||||
public class VorProvider extends AbstractEfaProvider
|
public class VorProvider extends AbstractEfaProvider
|
||||||
{
|
{
|
||||||
public static final NetworkId NETWORK_ID = NetworkId.VOR;
|
public static final NetworkId NETWORK_ID = NetworkId.VOR;
|
||||||
private final static String API_BASE = "http://efa.vor.at/wvb/";
|
private final static String EFA_API_BASE = "http://efa.vor.at/vor/";
|
||||||
|
private final static String RBL_API_BASE = "http://depmon.vor.at:8380/vorrbl/";
|
||||||
|
|
||||||
public VorProvider()
|
public VorProvider()
|
||||||
{
|
{
|
||||||
super(API_BASE);
|
super(RBL_API_BASE + DEFAULT_DEPARTURE_MONITOR_ENDPOINT, EFA_API_BASE + DEFAULT_TRIP_ENDPOINT, EFA_API_BASE + DEFAULT_STOPFINDER_ENDPOINT,
|
||||||
|
RBL_API_BASE + DEFAULT_COORD_ENDPOINT);
|
||||||
|
|
||||||
setHttpReferer(API_BASE + DEFAULT_DEPARTURE_MONITOR_ENDPOINT);
|
setHttpReferer(EFA_API_BASE + DEFAULT_TRIP_ENDPOINT);
|
||||||
setHttpRefererTrip(API_BASE + DEFAULT_TRIP_ENDPOINT);
|
|
||||||
setHttpPost(true);
|
setHttpPost(true);
|
||||||
setIncludeRegionId(false);
|
setIncludeRegionId(false);
|
||||||
setStyles(STYLES);
|
setStyles(STYLES);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue