Utilizing patient trajectory data from 2050 case text documents, we constructed a location-contact network to analyze the spatial transmission of the late 2021 COVID-19 outbreak in a megacity of China. Employing complex network analysis, we had several significant findings. The network exhibited 266 components, indicating a relatively sparse network density. Notably, locations with a higher risk of transmission encompassed universities, convenience stores, agricultural markets, and restaurants. Moreover, we applied a network immunization strategy to simulate the impact of lockdowns at various location types on virus spread. Our results show that lock down "shops" and "restaurants" can significantly diminish network connectivity.