places_data will stop existing once this function exits. Maybe we should return that object instead and do a .length on it if we need the length?