AbstractHafasClientInterfaceProvider: Skip cancelled departures on jsonStationBoard().

This commit is contained in:
Andreas Schildbach 2018-12-17 21:37:54 +01:00
parent c4576c399e
commit 4affd18885

View file

@ -303,6 +303,10 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
final JSONObject jny = jnyList.getJSONObject(iJny);
final JSONObject stbStop = jny.getJSONObject("stbStop");
final boolean cancelled = stbStop.optBoolean("dCncl", false);
if (cancelled)
continue;
final String stbStopPlatformS = stbStop.optString("dPlatfS", null);
c.clear();
ParserUtils.parseIsoDate(c, jny.getString("date"));