IntroductionCOVID-19, being a new type of infectious disease, holds significant implications for scientific prevention and control to understand its spatiotemporal transmission process. This study examines the diverse spatial patterns of COVID-19 within Wuhan by analyzing early case data alongside urban infrastructure information.MethodsThrough co-location analysis, we assess both local and global spatial risks linked to the epidemic. In addition, we use the Geodetector, identifying facilities displaying unique spatial risk characteristics, revealing factors contributing to heightened risk.ResultsOur findings unveil a noticeable spatial distribution of COVID-19 in the city, notably influenced by road networks and functional zones. Higher risk levels are observed in the central city compared to its outskirts. Specific facilities such as parking, residence, ATM, bank, entertainment, and hospital consistently exhibit connections with COVID-19 case sites. Conversely, facilities like subway station, dessert restaurant, and movie theater display a stronger association with case sites as distance increases, hinting at their potential as outbreak focal points.DiscussionDespite our success in containing the recent COVID-19 outbreak, uncertainties persist regarding its origin and initial spread. Some experts caution that with increased human activity, similar outbreaks might become more frequent. This research provides a comprehensive analytical framework centered on urban facilities, contributing quantitatively to understanding their impact on the spatial risks linked with COVID-19 outbreaks. It enriches our understanding of the interconnectedness between urban facility distribution and transportation flow, affirming and refining the distance decay law governing infectious disease risks. Furthermore, the study offers practical guidance for post-epidemic urban planning, promoting the development of safer urban environments resilient to epidemics. It equips government bodies with a reliable quantitative analysis method for more accurately predicting and assessing infectious disease risks. In conclusion, this study furnishes both theoretical and empirical support for tailoring distinct strategies to prevent and control COVID-19 epidemics.