The existence of urban external hub ensures the interconnection of urban internal and external transportation, a large number of passengers choose to transfer to rail transit at the external transport hub to enter the city. Passengers who enter the city usually carry more luggages, which requires higher comfort than commuters. To study the passenger route planning based on rail transit and supplemented by other public transport modes can reduce pressure on road network and improve passenger comfort and further attract passenger flow by "avoiding" congested sections and adjusting transportation. This paper uses web crawler method to obtain the running time and cost of urban rail transit from Beijing Daxing International Airport to Beijing from open data sources, and analyzes the accessibility and advantages and disadvantages of Beijing rail transit network compared with riding. Based on the above results, this paper designs a generalized cost considering congestion and other factors for connecting urban rail transit passengers. On the basis of the generalized cost, a passenger route planning algorithm to solve the shortest path by dividing sub networks was designed. Compared with the route provided by the existing route planning system, it is proved that the algorithm in this paper can provide more comfortable travel route for passengers.