mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
queryNearbyStations() has ResultHeader as well
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@787 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
2b6090bdea
commit
5cbbd7f175
5 changed files with 26 additions and 23 deletions
|
@ -118,9 +118,9 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
}
|
||||
|
||||
if (maxStations == 0 || maxStations >= stations.size())
|
||||
return new NearbyStationsResult(stations);
|
||||
return new NearbyStationsResult(null, stations);
|
||||
else
|
||||
return new NearbyStationsResult(stations.subList(0, maxStations));
|
||||
return new NearbyStationsResult(null, stations.subList(0, maxStations));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue