VrsProvider: Small optimization in queryNearbyLocations().

This commit is contained in:
Andreas Schildbach 2020-09-19 15:04:19 +02:00
parent 45418a27f6
commit 11223415cd

View file

@ -404,7 +404,7 @@ public class VrsProvider extends AbstractNetworkProvider {
if (types.contains(loc.type) || types.contains(LocationType.ANY)) {
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);
return new NearbyLocationsResult(header, locations);