mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 17:10:30 +00:00
prepare for multiple stations per queryDepartures call
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@487 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
39fe5d52df
commit
5fe5f9f4e1
47 changed files with 260 additions and 113 deletions
|
@ -43,6 +43,7 @@ import de.schildbach.pte.dto.Fare;
|
|||
import de.schildbach.pte.dto.Fare.Type;
|
||||
import de.schildbach.pte.dto.GetConnectionDetailsResult;
|
||||
import de.schildbach.pte.dto.Line;
|
||||
import de.schildbach.pte.dto.StationDepartures;
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||
|
@ -957,11 +958,13 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
XmlPullUtil.exit(pp, "itdDepartureList");
|
||||
}
|
||||
|
||||
return new QueryDeparturesResult(location, departures, lines);
|
||||
final QueryDeparturesResult result = new QueryDeparturesResult();
|
||||
result.stationDepartures.add(new StationDepartures(location, departures, lines));
|
||||
return result;
|
||||
}
|
||||
else if ("notidentified".equals(nameState))
|
||||
{
|
||||
return new QueryDeparturesResult(QueryDeparturesResult.Status.INVALID_STATION, Integer.parseInt(stationId));
|
||||
return new QueryDeparturesResult(QueryDeparturesResult.Status.INVALID_STATION);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue