For the coordinated development of regional logistics, there is a need to break down the administrative barriers between cities and build an efficient and smooth regional logistics network. Integrating regional logistics resources to achieve cross‐regional optimal allocation is essential for efficient logistics networks. The accessibility and high capacity of the railway transportation network make it possible and necessary for the coordinated construction of railway transportation and logistics networks. This paper studies a bilevel programming model to analyse the collaborative network planning process of railway transportation and logistics. The objective is to take into account the existing layout of regional railway traffic network and the future needs of regional logistics. For the upper level of the bilevel programming model, the social, economic, and logistics service index of regional railway traffic nodes is considered to determine the numbers and locations of radiation of the cities. Meanwhile, the lower programming model uses a logistics gravity model, 0‐1 integer programming model, and logistics membership degree to calculate the logistics correlation between node cities and the radiation range of the hub cities. An empirical study of the Beijing‐Tianjin‐Hebei region in China shows the process and effectiveness of the bilevel programming model. Four distinctive logistics radiation circles, five trunk lines, nine hub‐spoke branch lines, and six branch lines are suggested. A railway traffic‐oriented regional logistics network provides a reference for regional railway traffic planning, thereby optimizing the allocation of regional logistics resources, improving the level of regional logistics services, and contributing to the development of the regional logistics industry.