getVehiclesInRange() was using a copy of vehiclesOnGIS and causing all sorts of problems.