BackgroundThe transmission of 2019 novel coronavirus (COVID-19) has caused global panic in the past three years. Countries have learned an important lesson in the practice of responding to COVID-19 pandemic: timely and accurate diagnosis is critical. As an important technology of virus diagnosis, nucleic acid testing (NAT) is also widely used in the identification of other infectious diseases. However, geographic factors often constrain the provision of public health services such as NAT services, and the spatial nature of their resource allocation is a significant problem.MethodsWe used OLS, OLS-SAR, GWR, GWR-SAR, MGWR, and MGWR-SAR models to identify the determinants of spatial difference and spatial heterogeneity affecting NAT institutions in China.ResultsFirstly, we identify that the distribution of NAT institutions in China shows a clear spatial agglomeration, with an overall trend of increasing distribution from west to east. There is significant spatial heterogeneity in Chinese NAT institutions. Secondly, the MGWR-SAR model results show that city level, population density, number of tertiary hospitals and number of public health emergency outbreaks are important factors influencing the spatial heterogeneity of NAT institutions in China.ConclusionsTherefore, the government should allocate health resources rationally, optimise the spatial layout of testing facilities, and improve the ability to respond to public health emergencies. Meanwhile, third-party testing facilities need to focus on their role in the public health emergency response system as a market force to alleviate the inequitable allocation of health resources between regions. By taking these measures to prepare adequately for possible future public health emergencies.