mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
Fix departures for Stockholm.
This commit is contained in:
parent
d63dc843eb
commit
e1233210dd
3 changed files with 6 additions and 3 deletions
|
@ -662,7 +662,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
// TODO is_reachable
|
||||
// TODO disableTrainInfo
|
||||
|
||||
if (depStation == null && !"cancel".equals(eDelay))
|
||||
final boolean isEquivStation = canDoEquivs && depStation != null;
|
||||
|
||||
if (!isEquivStation && !"cancel".equals(eDelay))
|
||||
{
|
||||
final Calendar plannedTime = new GregorianCalendar(timeZone());
|
||||
plannedTime.clear();
|
||||
|
|
|
@ -51,6 +51,7 @@ public class StockholmProvider extends AbstractHafasProvider
|
|||
super(API_BASE + "stboard.exe/sn", API_BASE + "ajax-getstop.exe/sny", API_BASE + "query.exe/sn", 7);
|
||||
|
||||
setStyles(STYLES);
|
||||
setCanDoEquivs(false);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
|
|
|
@ -45,7 +45,7 @@ public class StockholmProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void nearbyStations() throws Exception
|
||||
{
|
||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 311109529), 0, 0);
|
||||
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.STATION, 301109600), 0, 0);
|
||||
|
||||
print(result);
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class StockholmProviderLiveTest extends AbstractProviderLiveTest
|
|||
@Test
|
||||
public void queryDepartures() throws Exception
|
||||
{
|
||||
final QueryDeparturesResult result = provider.queryDepartures(311109529, 0, false);
|
||||
final QueryDeparturesResult result = provider.queryDepartures(301109600, 0, false);
|
||||
|
||||
print(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue