Bus branch line setting method
The technical field is as follows:
the invention belongs to the technical field of intelligent transportation systems, and relates to a method for setting bus branches, which is used for urban bus network optimization and an intelligent bus system.
Background art:
the public transport branch line (also called as 'community public transport') serves local areas such as residential communities and business areas, fills up the blank of a public transport network or an area with inconvenient service by being connected with public activity areas such as rail transit stations, transportation hubs and peripheral schools, community service centers, hospitals and shopping malls, meets the requirements of passenger transfer or living and commuting trips of residential communities and business areas, and mainly undertakes short-distance trips. At present, few researches on bus branch setting methods are carried out in China, and the existing research technology mainly adopts a qualitative analysis method to discuss the function, service condition and development mode of branch buses. The Dianthus superbus and the like put forward a planning principle and a method for arranging branch bus lines, but the given method has low operability; according to the method, whether a branch line is suitable to be set is judged according to road conditions in an area and traveling requirements of residents, but a manual investigation mode is adopted, so that the problem that research data is difficult to timely and effectively obtain exists; hui Ying et al discusses the passenger flow demand and the wiring network layout of the community bus based on the travel chain, but only gives the general principle of the community bus line setting; the Yuan-Hai Qin and the like propose that community buses and express line branch buses are fused from planning to operation level by analyzing the operation characteristics and current situation of the public buses in the Shanghai community, and provide improvement measures of the public buses in the Shanghai community; chengxian discusses the function positioning and operation characteristics of the community bus, deeply analyzes the travel demand characteristics of the community bus passengers, and provides an improvement suggestion of the community bus system.
The existing bus branch line research technology mainly provides a guiding principle of bus branch line setting, mostly discusses from a qualitative perspective, only a small amount of quantitative research is mainly based on manual investigation data, and the obtained data period is long and the quality is difficult to guarantee. Therefore, the method for setting the bus branches is provided, and the method analyzes and obtains the blank area and the service-inconvenient area of the bus network by analyzing and recording the travel track information of passengers in the bus IC card, and provides the setting route of the bus branches.
The invention content is as follows:
the invention aims to provide a method for setting bus branches, aiming at the problems that the existing bus branch setting is mostly based on manual experience and qualitative analysis and lacks quantitative analysis and has poor practical operability.
In order to achieve the above purpose, the method for setting the bus branch lines according to the present invention is implemented by finding out the blank area and the area inconvenient for service of the bus line network by using the bus IC card data. The specific setting method comprises the following steps:
(1) collecting historical data of passenger card punching:
the method comprises the following steps of collecting historical data of boarding and card punching of passengers through a bus IC card system, wherein the historical data comprises a card punching record of each passenger: a line number, a line name, a card number, a transaction date and time, a transfer line number, and a transfer time;
(2) the structural data of the public transport network are collected:
collecting structural data of a public transport network, wherein the structural data of the network consists of a stop name, a stop number and stop longitude and latitude data of each public transport line;
(3) and calculating the passenger transfer number:
defining transfer as taking more than one bus line within a given time interval T (such as one hour), numbering the lines taken by passengers according to the taking sequence (starting from 1), recording one transfer as < x, y >, wherein x ≠ y, x, y ∈ N, grouping a first element x as a preorder line and a second element y as a post-order line, defining the transfer times of the passengers as the number of < x, y > within one hour, calculating the number of transfer persons by firstly grouping historical data taken by the passengers according to < x, y >, then counting the sum of the number of bars recorded in each group as the number of transfer persons, and placing the number of transfer persons in a set S, wherein the sum of the number of transfer persons is greater than the < x, y > of a given transfer person threshold T;
(4) calculating a transfer distance:
for each of the set S<x,y>Reading the bus stop sets of the preceding line x and the subsequent line y by using the structural data of the bus network, and respectively recording the bus stop sets as xs={x1,x2,…,xm},ys={y1,y2,…,ynIn which xi,yjCalculating for ith and jth stations of preceding line x and following line y
Wherein geo (x)i) As site xiGeographic coordinates (latitude and longitude), geo (y)j) As station yjDist is a function for calculating the linear distance between two longitude and latitude coordinates, min _ dist is the linear distance between two stations with the nearest distance between two lines, and the output is<x,y,min_dist(x,y)>Put into the set R;
(5) setting of bus branch line
Given a distance threshold T' for each of the set R<x,y,min_dist(x,y)>If min isdist(x,y)If the distance is more than T', a bus branch line should be built between the lines x and y, so that the transfer of the lines x and y is facilitated.
Compared with the prior art, the invention has the following beneficial effects: the method comprises the steps that firstly, aiming at the problems that the existing bus branch setting is mostly based on manual experience and qualitative analysis and lacks quantitative analysis and the actual operability is not strong, the method for setting the bus branches is provided, the method analyzes and records the travel track information of passengers in a bus IC card to obtain the blank area of a bus line network and the area with inconvenient service, and the setting route of the bus branches is given; secondly, the method discovers the bus blind area based on the extracted passenger transfer behavior characteristics, is simple and convenient to operate, has strong practicability, can monitor the transfer path of the passenger in real time, and can discover the inconvenient line of the bus transfer in time; thirdly, the method is novel in design, high in calculation efficiency, strong in practicability and wide in market prospect.
Description of the drawings:
fig. 1 is a 3-way and 1-way tunnel bus route diagram related to the invention.
Fig. 2 is a branch bus route diagram between 3 routes and 1 route of a tunnel according to the invention.
The specific implementation mode is as follows:
the invention is further illustrated by way of example and with reference to the accompanying drawings.
Example 1:
the bus branch setting method related to the embodiment is realized by the following technical scheme:
(1) collecting historical data of passenger card punching:
the method comprises the following steps of collecting historical data of boarding and card punching of passengers through a bus IC card system, wherein the historical data comprises a card punching record of each passenger: a line number, a line name, a card number, a transaction date and time, a transfer line number, and a transfer time;
(2) the structural data of the public transport network are collected:
collecting structural data of a public transport network, wherein the structural data of the network consists of a stop name, a stop number and stop longitude and latitude data of each public transport line;
(3) and calculating the passenger transfer number:
defining transfer as taking more than one bus line within a given time interval T (such as one hour), numbering the lines taken by passengers according to the taking sequence (starting from 1), recording one transfer as < x, y >, wherein x ≠ y, x, y ∈ N, grouping a first element x as a preorder line and a second element y as a post-order line, defining the transfer times of the passengers as the number of < x, y > within one hour, calculating the number of transfer persons by firstly grouping historical data taken by the passengers according to < x, y >, then counting the sum of the number of bars recorded in each group as the number of transfer persons, and placing the number of transfer persons in a set S, wherein the sum of the number of transfer persons is greater than the < x, y > of a given transfer person threshold T;
(4) calculating a transfer distance:
for each of the set S<x,y>Reading the bus stop sets of the preceding line x and the subsequent line y by using the structural data of the bus network, and respectively recording the bus stop sets as xs= {x1,x2,…,xm},ys={y1,y2,…,ynIn which xi,yjIs a preamble linex and the ith and jth sites of the subsequent line y, calculating
Wherein geo (x)i) As site xiGeographic coordinates (latitude and longitude), geo (y)j) As station yjDist is a function for calculating the linear distance between two longitude and latitude coordinates, min _ dist is the linear distance between two stations with the nearest distance between two lines, and the output is<x,y,min_dist(x,y)>Put into the set R;
(5) setting of bus branch line
Given a distance threshold T' for each of the set R<x,y,mindist(x,y)>If min isdist(x,y)If the distance is more than T', a bus branch line should be built between the lines x and y, so that the transfer of the lines x and y is facilitated.
Example 2
The embodiment uses the public transportation IC card data in Qingdao city to perform empirical analysis, and the data comes from the Qingdao public transportation group and the Qingdao transportation group. Wherein, the Qingdao public transportation group has 212 bus lines which are mainly distributed in four urban areas; the public transportation lines governed by the Qingdao transportation group are distributed in four urban areas and surrounding counties, so that all the lines of the public transportation group and 77 urban four-area lines (warm bus lines) of the Qingdao transportation group are selected for analysis. The time range of the data was from 13 days to 19 days in 3 months in 2017. Using the above algorithm steps, the threshold number of transfers T is set to 100, and the set S is obtained as shown in table 1, where the number of public stations is the number of stations shared by the two lines, and a number of public stations other than 0 indicates that the shortest distance between the two lines is 0. The more public stations, the more convenient passenger transfer; the preorder line and the posterior line with the common station number of 0 have no common station to transfer, and passengers can only transfer by walking.
TABLE 1 preorder and postorder lines for a transfer of more than 100 people
The line distance threshold T' is 1000 meters, and the structure after screening the set R is shown in table 2:
TABLE 2 lines with transfer number greater than 100 and line distance greater than 1000 m