mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 19:48:49 +00:00
VrsProvider: Small optimization in queryNearbyLocations().
This commit is contained in:
parent
45418a27f6
commit
11223415cd
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ public class VrsProvider extends AbstractNetworkProvider {
|
||||||
if (types.contains(loc.type) || types.contains(LocationType.ANY)) {
|
if (types.contains(loc.type) || types.contains(LocationType.ANY)) {
|
||||||
locations.add(loc);
|
locations.add(loc);
|
||||||
}
|
}
|
||||||
serverTime = parseDateTime(timetable.getJSONObject(i).getString("generated")).getTime();
|
serverTime = parseDateTime(entry.getString("generated")).getTime();
|
||||||
}
|
}
|
||||||
final ResultHeader header = new ResultHeader(NetworkId.VRS, SERVER_PRODUCT, null, null, serverTime, null);
|
final ResultHeader header = new ResultHeader(NetworkId.VRS, SERVER_PRODUCT, null, null, serverTime, null);
|
||||||
return new NearbyLocationsResult(header, locations);
|
return new NearbyLocationsResult(header, locations);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue