The long-term processes of urbanization and industrialization have led to the agglomeration of population and industry, fostering economic development while introducing opportunities and challenges for carbon reduction in transport. This paper integrates the Stochastic Impacts by Regression on Population, Affluence, and Technology Model with the Spatial Durbin Model to assess the effects of population agglomeration and industrial agglomeration on transport carbon dioxide emissions. The empirical results show that a 1% increase in population agglomeration decreases local transport carbon dioxide emissions by 1.7065% and generates a spillover effect of 1.0542% in surrounding areas. In contrast, industrial agglomeration increases regional transport carbon dioxide emissions by an average of 0.3309% without significant spillover effects. Furthermore, economic agglomeration exhibits an N-shaped relationship with transport carbon dioxide emissions, reflecting the dual influences of the "economic effect" and the "congestion effect". Mechanism analysis reveals that both types of agglomeration can modulate the impact of infrastructure development on transport carbon dioxide emissions, suggesting that effective infrastructure planning can help alleviate the negative environmental impacts. This study provides a spatial mode for understanding the synergistic effects of population planning, industrial development, and environmental improvement, offering significant reference value for policymakers in the decision-making related to low-carbon transport development.