Method, system, device and medium for generating park-and-ride routes

By constructing the topological relationship between vehicles and public transportation networks and using multiple heuristic functions, a park-and-ride route from the starting point to the end point is generated, which solves the problem of inability to adaptively switch in the existing technology and realizes the optimal travel plan. generation and support for low-carbon travel.

CN117809474BActive Publication Date: 2024-10-22SUZHOU UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311552258.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2024-10-22
Estimated Expiration
2043-11-21

AI Technical Summary

Technical Problem

The existing path analysis algorithm cannot effectively solve the problem of adaptive switching between P&R parking lots and public transportation networks, and cannot provide travelers with a reasonable combination of car and public transportation travel plans.

Method used

By constructing the topological relationship between the road network and the public transportation network, using a multivariate heuristic function to obtain the minimum cost value, a park-and-ride route from the starting point to the end point is generated, and based on the number of switches, travel time, travel cost and walking distance Prioritize.

Benefits of technology

It achieves the generation of the optimal park-and-ride route from the starting point to the end point, meets the adaptive switching needs between vehicles and public transportation networks, provides a more reasonable travel plan, and is in line with the concept of low-carbon travel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117809474B_ABST
    Figure CN117809474B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for generating a park-and-ride route, the method comprising: expanding the extended network nodes between the starting position and the end position in constructing the topological relationship between the vehicle road network and the public transportation network; obtaining the minimum cost value from the starting position through the extended network nodes to the end position by using a multivariate heuristic function; and generating a park-and-ride route from the starting position to the end position according to the minimum cost value from the starting position through the extended network nodes to the end position obtained by using a multivariate heuristic function; the present invention generates a park-and-ride route from the starting position to the end position according to the minimum cost value from the starting position through the extended network nodes to the end position obtained by using a multivariate heuristic function; and realizes adaptive switching between the vehicle road network and the public transportation line network via the P&R parking lot, meeting the needs of mixed travel of the vehicle road network and the public transportation line network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of traffic technology, and in particular to a method, system, device and medium for generating a park-and-ride route. Background Art

[0002] In modern urban transportation systems, people have more and more choices in travel modes. In addition to private cars and taxis, there are also various public transportation modes, such as rail transit, buses, tourist special lines, ferries, etc. In addition, with the promotion of P&R (Park and Ride) parking and transfer modes, the mixed travel mode of car and public transportation has become more and more popular among travelers. In addition, the gradual popularization of shared bicycles in recent years has provided more choices for people's travel modes. Faced with such a complex transportation service network and numerous travel options, it is generally not easy for travelers to find a more reasonable travel plan. At present, the existing path analysis algorithms are mostly used to solve the path analysis problem of a single transportation network. For example, for the road network car travel plan, the most common one is the various navigation software algorithms used for driving; the other is to solve the public transportation travel plan problem and provide travelers with travel plans between rail transit and buses. However, these algorithms do not solve the problem of adaptive switching between the road network and the public transportation network via the P&R parking lot, that is, they cannot provide travelers with a combination of car and public transportation via the P&R parking lot. With the continuous expansion of cities, there are more and more P&R parking lots in cities, which provide great convenience for travelers who live in the suburbs and work in the city. In addition, travelers who drive from surrounding cities to the city center for business can also make full use of the convenience of P&R parking lots. In the modern urban transportation system, a single transportation network path analysis algorithm can no longer meet the needs. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the defect that the transportation travel scheme in the prior art cannot solve the adaptive switching between the public transportation network and the road network via the P&R parking lot, and to provide a method, system, device and medium for generating a parking and transfer route.

[0004] The present invention solves the above technical problems through the following technical solutions:

[0005] A first aspect of the present invention provides a method for generating a park-and-ride route, the method comprising:

[0006] Construct the topological relationship between the road network and the public transportation network;

[0007] Expanding the extended network nodes from the starting position to the end position in the topological relationship;

[0008] Using a multivariate heuristic function to obtain a minimum cost value from the starting position through the extended network node to the end position;

[0009] A park-and-ride route from the starting position to the end position is generated according to the minimum cost value.

[0010] Preferably, the step of constructing a topological relationship between the vehicle road network and the public transportation network comprises:

[0011] Obtain public transportation network data and road network data;

[0012] A topological relationship between the vehicle road network and the public transportation network is constructed according to the public transportation network data and the vehicle road network data.

[0013] Preferably, after the step of generating a park-and-ride route from the starting position to the end position according to the minimum cost value, the generating method further comprises:

[0014] Obtaining the number of switches and / or travel time and / or travel cost and / or walking distance in the park-and-ride route;

[0015] The park-and-ride routes are prioritized according to the number of switches and / or the travel time and / or the travel cost and / or the walking distance.

[0016] Preferably, the step of generating a park-and-ride route from the starting position to the end position according to the minimum cost value comprises:

[0017] Acquire adjacent network nodes adjacent to the extended network node;

[0018] Determine whether the adjacent network node overlaps with a node in the network node to be expanded, and if so, replace the overlapping network node with the adjacent network node; if not, record the adjacent network node in the network node to be expanded;

[0019] Determine whether the extended network node is a terminal position, and if so, generate a park-and-ride route from the starting position to the extended network node according to the adjacent network nodes; if not, generate a park-and-ride route from the starting position to the extended network node and from the extended network node to the terminal position according to the adjacent network nodes, so as to obtain a park-and-ride route from the starting position to the terminal position;

[0020] and / or,

[0021] The extended network node includes at least one of a road intersection, a public transportation station, a rail transit station, and a parking lot.

[0022] A second aspect of the present invention provides a system for generating a park-and-ride route, the system comprising:

[0023] A construction module for constructing the topological relationship between the vehicle road network and the public transportation network;

[0024] An expansion module, used for expanding the expansion network nodes between the starting position and the end position in the topological relationship;

[0025] A first acquisition module, used for acquiring a minimum cost value from the starting position through the extended network node to the end position by using a multivariate heuristic function;

[0026] The first generating module is used to generate a park-and-ride route from the starting position to the end position according to the minimum cost value.

[0027] Preferably, the building blocks include:

[0028] A first acquisition unit is used to acquire public transportation network data and vehicle road network data;

[0029] A construction unit is used to construct a topological relationship between the vehicle road network and the public transportation network according to the public transportation network data and the vehicle road network data.

[0030] Preferably, the generation system further comprises:

[0031] A second acquisition module is used to acquire the number of switching times and / or travel time and / or travel cost and / or walking distance in the park-and-ride route;

[0032] A sorting module is used to prioritize the park-and-ride routes according to the number of switching times and / or the travel time and / or the travel cost and / or the walking distance.

[0033] Preferably, the first generating module includes:

[0034] A second acquisition unit, used for acquiring adjacent network nodes adjacent to the extended network node;

[0035] A first judging unit is used to judge whether the adjacent network node coincides with a node in the network node to be expanded, and if so, to call the replacement unit; if not, to call the recording unit;

[0036] The replacement unit is used to replace the overlapping network nodes with the adjacent network nodes;

[0037] The recording unit is used to record the adjacent network node into the network node to be expanded;

[0038] A second judging unit is used to judge whether the extended network node is an end point, and if so, call the first generating unit; if not, call the second generating unit;

[0039] The first generating unit is used to generate a park-and-ride route from the starting position to the extended network node according to the adjacent network node;

[0040] The second generating unit is used to generate a park-and-ride route from the starting position to the extended network node and from the extended network node to the terminal position according to the adjacent network node, so as to obtain a park-and-ride route from the starting position to the terminal position;

[0041] and / or,

[0042] The extended network node includes at least one of a road intersection, a public transportation station, a rail transit station, and a parking lot.

[0043] A third aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein when the processor executes the computer program, the method for generating a park-and-ride route as described in the first aspect is implemented.

[0044] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for generating a park-and-ride route as described in the first aspect.

[0045] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present invention.

[0046] The positive and progressive effects of the present invention are:

[0047] The present invention expands the extended network nodes between the starting position and the end position in the topological relationship between the constructed vehicle road network and the public transportation network; generates a parking and transfer route from the starting position to the end position according to the minimum cost value from the starting position through the extended network nodes to the end position obtained by using a multivariate heuristic function, realizes adaptive switching between the vehicle road network and the public transportation line network through the P&R parking lot, and meets the mixed travel needs of the vehicle road network and the public transportation line network. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is a flow chart of a method for generating a park-and-ride route according to Embodiment 1 of the present invention.

[0049] Figure 2Schematic diagram of the rail transit line network and bus line network of embodiments 1 and 2 of the present invention.

[0050] Figure 3 Schematic diagram of public transportation network according to embodiments 1 and 2 of the present invention.

[0051] Figure 4 Schematic diagram of the adjacency matrix of the public transportation network of Examples 1 and 2 of the present invention.

[0052] Figure 5 Schematic diagram of the hybrid traffic network of embodiments 1 and 2 of the present invention.

[0053] Figure 6 Schematic diagram of the transfer matrix of embodiments 1 and 2 of the present invention.

[0054] Figure 7 It is a partial schematic diagram of the transfer matrix of embodiments 1 and 2 of the present invention.

[0055] Figure 8 This is a schematic diagram of transfer route 1 of Example 1 of Embodiments 1 and 2 of the present invention.

[0056] Fig. 9 It is a schematic diagram of transfer route 2 of Example 1 of Embodiments 1 and 2 of the present invention.

[0057] Fig.10 It is a schematic diagram of transfer route 1 of Example 2 of Embodiments 1 and 2 of the present invention.

[0058] Fig.11 This is a schematic diagram of transfer route 2 of Example 2 of Embodiments 1 and 2 of the present invention.

[0059] Fig.12 This is a module diagram of a system for generating a parking and transfer route according to Embodiment 2 of the present invention.

[0060] Fig.13 This is a schematic diagram of the structure of an electronic device for implementing a method for generating a park-and-ride route according to Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0061] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0062] Example 1

[0063] This embodiment provides a method for generating a park-and-ride route, such as Figure 1 As shown, the generation method includes:

[0064] Step 101: construct a topological relationship between a vehicle road network and a public transportation network;

[0065] Step 102: Expand the extended network nodes from the starting position to the end position in the topological relationship;

[0066] In an optional embodiment, the extended network node includes at least one of a road intersection, a public transportation station, a rail transit station, and a parking lot.

[0067] Step 103, using a multivariate heuristic function to find the minimum cost from the starting position through the extended network nodes to the end position;

[0068] In this embodiment, when searching for a park-and-ride route, whenever a network node is expanded, a network node with the smallest cost value F(N) is always selected from all network nodes to be expanded as the expansion object, so that the search is carried out in the most promising direction as much as possible. The following formula (1) is an expression of F(N):

[0069] F(N)=G(N)+H(N) (1)

[0070] Where F(N) represents the minimum cost; G(N) represents the route cost paid from the starting point O to any point N; H(N) represents the transfer cost required for any point N to reach the end point D;

[0071] The expression of H(N) is shown in formula (2):

[0072]

[0073] In formula (2), D nd represents the distance from any point N to the end point D, Q nd represents the number of transfers required from any point N to the final location D, T nd C represents the time required from any point N to the final location D. nd Represents the cost required to get from any point N to the final location D.

[0074] Step 104: Generate a park-and-ride route from the starting position to the end position according to the minimum cost value.

[0075] In the specific implementation process, starting from the starting point, first traverse the neighboring network nodes around the starting point, and then traverse the neighboring network nodes of the network nodes that have been traversed (i.e., in the extended network node array), and gradually expand outward. The criterion for node expansion is the minimum cost of the multivariate heuristic function. The evaluation standard of the cost is determined according to the priority of each evaluation index in the multivariate heuristic function, and finally expands to the terminal position. When the traversed extended network node is a P&R parking lot, adaptive switching is performed according to the multivariate heuristic function and traversal is performed in sequence until the conditions are met and terminated.

[0076] In this embodiment, the cost value of the multivariate heuristic function is dynamically calculated based on the expansion state of the extended network node. Each time an extended network node is traversed, the multivariate heuristic function of the extended network node needs to be calculated to estimate the optimal route cost value F(N) of the starting point position through the extended network node to the target network node; whenever a network node is expanded, the network node with the smallest cost value F(N) is always selected from all the network nodes to be expanded as the expansion object, so that the search can be carried out in the most promising direction as much as possible. Therefore, each time a network node is expanded, the network node with the smallest F(N) value is always selected from the array of network nodes to be expanded ExNodes to be expanded, and the search is carried out in the direction of the optimal path as much as possible. During the search process, the extended network nodes that meet the conditions are placed in the ExNodes array until they are expanded to the terminal position D, and the search process ends. It should be noted that the algorithm for the parking and transfer route in this embodiment only requires part of the network nodes and their relationships in the entire state space of the problem to solve the problem, so compared with other algorithms, its search efficiency is higher.

[0077] In addition, the travel time and travel cost of public transportation between any two stations can be easily obtained. The travel time, travel cost and transfer matrix between any two stations can be pre-batch generated during initialization, which can greatly optimize the execution efficiency of the algorithm. The walking distance is not included in the multivariate heuristic function here. The main consideration is that the walking distance needs to be calculated in real time in the road network according to different starting and ending positions, which will affect the execution efficiency of the algorithm. In this embodiment, the walking distance is used as a sorting condition to prioritize the searched transfer routes.

[0078] This embodiment generates a park-and-ride route from the starting position to the end position according to the minimum cost value from the starting position through the extended network nodes to the end position obtained by using a multivariate heuristic function; realizes adaptive switching between the road network through the P&R parking lot and the public transportation line network, so that the cost from the starting position to the end position is minimized, solves the problem of adaptively searching for the best and most comfortable (minimum cost) travel route via the P&R parking lot, meets the needs of mixed travel on the road network and the public transportation line network, and meets the requirements of the low-carbon travel concept. Especially for megacities, it can help users find a reasonable and optimal travel route in a complex urban transportation system.

[0079] In an optional embodiment, step 101 includes:

[0080] Step 101-1, obtaining public transportation network data and vehicle road network data;

[0081] Step 100-2: constructing a topological relationship between the vehicle road network and the public transportation network according to the public transportation network data and the vehicle road network data;

[0082] In this embodiment, in the urban mixed transportation network, the extended network nodes include at least one of road intersections, public transportation stations, rail transit stations, and parking lots. The lines between nodes are edges in the mixed transportation network. First, a topological relationship between the vehicle road network and the public transportation network is established based on mathematical laws and network connectivity rules, that is, spatial relationships between nodes, between nodes and edges, and between edges are established. A connection relationship is established between the road network and the public transportation network through P&R parking lots.

[0083] In this embodiment, although the public transportation network and the road traffic network are two independent network systems, and the vehicles run in an orderly manner in the corresponding networks without interfering with each other, there is a topological relationship between the two networks. For example, although buses have their own fixed routes, these routes are built on the basis of the road network. Figure 2 Figure 1 is a schematic diagram of the rail transit network and bus network. Figure 2 As shown in (a), the rail transit line R1 (1→2→3→4), the bus line R2 (5→2→3→6). The rail transit line network is a restricted network. Since rail transit vehicles do not travel on the road, there is no topological relationship between the restricted network and the road centerline network. There is only a topological relationship between the rail transit station and the road network, that is, the rail transit station is located on the centerline of the road network, such as Figure 2 As shown in (b), bus routes are also a kind of restricted network. Buses in the restricted network actually travel on the road, so there is a strong topological relationship between the bus route network and the road network. Figure 2 As shown in (c), the bus route consists of all or part of the boundaries of many road centerlines, and route R2 (5→6) consists of road centerlines E5,7, E7,8, E8,9, E9,10, E10,2, E2,3, E3,11, E11,12 and E12,6. The topological relationship between the two restriction networks and the road network is shown in Figure 2 It should be noted that no matter what mode of transportation is used, travelers will travel along the urban road traffic network.

[0084] Specifically, Figure 3 The figure shows a public transportation network consisting of two lines R1 and R2, where network nodes 1 to 6 represent stations, and the edges in the network are the lines between two stations. Each line has a predetermined route direction, and there can be one or more common stations between the lines.

[0085] For public transportation networks, in network analysis, the adjacency matrix is ​​used to express the connectivity between nodes in the network. The adjacency matrix can be used to express the connectivity between stations. The elements T in the matrix ij= k, indicating that there are k service routes from site i to site j so that ij is connected, and the diagonal elements T ii is 0. Figure 3 The adjacency matrix of sites 1 to 6 is as follows Figure 4 As shown, for example, from site 2 to site 3, there are two lines R1 and R2, which connect 2 and 3. Therefore, T 23 = 2. The weight matrix of the adjacency matrix T It means that there are k service solutions from site i to site j through n-1 handovers. It means that there are two service plans from station 2 to station 4 through one switch, namely R1(2→3) to R1(3→4); R2(2→3) to R1(3→4). Although switching for the same vehicle is almost impossible in practice, it is theoretically possible. Based on the above conclusions, the minimum number of switches between any two points in the public transportation network can be solved by the adjacency matrix and its weight matrix. In other words, the matrix composed of the nth power of the weight matrix is ​​called the switching number matrix.

[0086] The above is an analysis of the public transportation network. For the hybrid network, when solving the switching frequency matrix, in addition to considering the adjacency matrix and its weight matrix, the network node type must also be taken into account. The switching frequency matrix solution algorithm for the hybrid network is different from the above method. Figure 5 Shown is a Figure 3 The diagram of the urban mixed transportation network with the topological relationship between the public transportation network and the road network is shown in the figure. The extended network nodes 7-12 are the road intersections located on the road. In the network analysis, the road intersections and bus stops are both regarded as nodes in the network, and the topological connectivity is consistent. However, in reality, there must be at least one switching between the road intersections and bus stops. According to this theory, the switching number matrix of the mixed network is solved as follows:

[0087] 1. Establish the adjacency matrix T between nodes and clear all elements of the switching number matrix Q to zero;

[0088] 2. Calculate the weight matrix T of the adjacency matrix n (n starts from 1 and accumulates sequentially);

[0089] 3. Compare Q in order ij and T ij , if Q ij =0, and Q ij =n;

[0090] 4. Determine the types of nodes i and j. If they are both road intersections or public transportation stops, then Q ij =n, otherwise Q ij =n+1;

[0091] 5. Repeat steps 2 and 3 until all elements in Q except the diagonal are non-zero, and end the loop.

[0092] Figure 6 is the switching number matrix of nodes 1 to 12, where the diagonal elements and the elements between two points that cannot be reached no matter how many times the switching is performed are 0.

[0093] In an optional embodiment, after step 104, the generating method further includes:

[0094] Step 105: Obtain the number of switching times and / or travel time and / or travel cost and / or walking distance in the park-and-ride route;

[0095] Step 106: Prioritize the park-and-ride routes according to the number of switching times and / or travel time and / or travel cost and / or walking distance.

[0096] In an optional embodiment, step 104 includes:

[0097] Step 104-1, obtaining adjacent network nodes adjacent to the extended network node;

[0098] Step 104-2, determine whether the adjacent network node coincides with the node in the network node to be expanded, if so, execute step 104-3; if not, execute step 104-4;

[0099] Step 104-3, replacing the overlapping network nodes with adjacent network nodes;

[0100] Step 104-4, recording the adjacent network nodes into the network nodes to be expanded;

[0101] Step 104-5, determine whether the extended network node is the end point, if so, execute step 104-6; if not, execute step 104-7;

[0102] Step 104-6, generating a transfer route from the starting point to the extended network node according to the adjacent network nodes;

[0103] Step 104-7, generating a park-and-ride route from the starting position to the extended network node and from the extended network node to the terminal position according to the adjacent network nodes, so as to obtain a park-and-ride route from the starting position to the terminal position;

[0104] The multivariate heuristic function H(N) in this embodiment is used to estimate the transfer cost required for any point N to reach the destination position D, and G(N) is the route cost paid from the starting position O to any point N. The specific steps of the P&R parking travel path adaptive switching algorithm are as follows:

[0105] a. Load the bus network data and calculate G(N), H(N) and F(N) of the starting point O, which are represented by g, h and f respectively. According to the previous analysis, we have: f0=g0+h0, and put the starting point O into the network node array ExNodes to be expanded, where Q od ,T od and C od The cost of traveling from the starting point O to the final point D;

[0106] b. If the array ExNodes is not empty, select the extended network node M with the smallest f value from ExNodes and expand the extended network node M. The minimum f value calculation rule is to prioritize Q. od , minimum Q od The f is the minimum f value. If Q od If they are equal, then choose T od , in Q od Minimum T under equal conditions od The f is the lowest f value. If T od If they are equal, then choose C. od , in Q od and T od The minimum C when all are equal od The corresponding f is the minimum value;

[0107] c. The expansion steps of network node M are as follows:

[0108] 1) Search all the adjacent network nodes adjacent to the extended network node M, and calculate the g, h, and f of these adjacent network nodes respectively. For any extended network node E of the extended network node M, if any extended network node E is on the same line as the extended network node M, then Q oe =Q om , otherwise Q oe =Q om +1;

[0109] 2) Then determine whether any extended network node E coincides with a network node in ExNodes. If any extended network node E coincides with one of the network nodes P, and Q oe op , then replace the network node P in ExNodes with any extended network node E, if Q oe >Q op , then delete any extended network node E;

[0110] 3) If any extended network node E does not overlap with any network node in ExNodes, the state of any extended network node E is recorded and inserted into ExNodes;​

[0111] d. After the expansion of the extended network node M, record the best path from the starting position O to the extended network node M;

[0112] e. Determine whether the extended network node M is the terminal position. If the extended network node M is not the terminal position, continue to select the extended network node M with the smallest f value from ExNodes for expansion, and repeat steps bd until it is extended to the terminal position D;

[0113] f. If the extended network node M is the end point D, output the park-and-ride route from the starting point O to the end point D.

[0114] In this embodiment, after the expansion of the extended network node M is completed, it is determined whether the extended network node M is a P&R parking spot. If not, the next algorithm is the same as the public transportation network algorithm. If so, the road network data is loaded; it is determined which point of the starting point and the end point of the travel route may be a parking transfer point, that is, the parking transfer point is the starting point or the destination point of the traveler's driving. According to the characteristics of the P&R parking spot, the parking transfer point is generally located in the suburbs of the city. According to this condition, if the starting point and the end point are not located in the suburbs or are both located in the suburbs, a city center point is selected to determine which point is the closest to the starting point and the end point. The farther away from the city center, the more likely it is to be a parking and transfer point. If the starting point is a parking and transfer point, then in the unrestricted network, that is, the road network, calculate the best path from the starting point O to the extended network node M, and record the best path. In this step, the number of switches in the multivariate heuristic function is ineffective, and the weight is set to 0. If the terminal position is a parking and transfer point, then in the unrestricted network, that is, the road network, calculate the best path from the extended network node M to the terminal position D, and record the best path from the extended network node M to the terminal position D. Output the parking and transfer route from the starting point O to the terminal position D.

[0115] In the specific implementation process, due to the large number of types of urban bus lines, including bus special lines, airport express lines, tourist lines and ordinary lines, the stations of various lines are staggered and overlapped. In addition, rail transit stations and bus stations often overlap to facilitate transfers. This embodiment first pre-processes the bus and rail transit data before the algorithm is implemented, and merges adjacent stations to facilitate the subsequent algorithm implementation. For example, the station merging rules are as follows:

[0116] 1) Merge bus stops within 100 meters of each other;

[0117] 2) Merge rail transit stations within 300 meters of each other;

[0118] 3) Merge bus and rail transit stations within 500 meters of each other;

[0119] 4) For the merged site, store the merged site ID and the corresponding line ID.

[0120] Based on data preprocessing, according to the generation algorithm of the switching number matrix, firstly, the switching number matrix of all stations (such as bus stations and rail transit stations) is generated by batch processing. The switching number matrix is ​​called as a pre-generated file during the algorithm implementation process. The local schematic diagram of the switching number matrix is ​​shown in Figure 7 As shown;

[0121] In this embodiment, bus stops, P&R parking and transfer points, rail transit stops and road intersections are named as extended network nodes. The data structures of these extended network nodes are shown in Table 1. For an extended network node, information such as the network node number, network node type and the line number and type of the network node are stored. For the public transportation network, the line is the bus line number or the rail transit line number. For the road network, the line is the road centerline number. In addition, the extended network node also stores the judgment value of the network node property to identify whether the network node is the starting point, the end point or the P&R parking and transfer point. In addition, the values ​​of G(N) and F(N) are also stored in the extended network node as the key judgment factor when searching for the best path. Finally, the previous connection node pointer of the network node is also stored in the extended network node, which is used to establish an extended network node pointer linked list.

[0122] Table 1

[0123]

[0124]

[0125] In this embodiment, the input values ​​are the starting point and the end point, and the output is the parking transfer route between the starting point and the end point; Example 1, the starting point is located at the intersection of Boxue Road and Fengnian Road in Jiading District, Shanghai, and the end point is located at the intersection of Zhenhua Road and Fuping Road. According to the transfer method of this embodiment, the following is obtained: Figure 8-9 two park-and-ride routes;

[0126] Park and Ride routes remain the same Figure 8 As shown, the traveler drives from the starting point to the Nanxiang P&R parking lot, switches to Metro Line 11 from Nanxiang Station to Shanghai West Station, and then rides a shared bicycle to the end point. The total cost is 14 yuan and the journey takes 46 minutes.

[0127] Park and Ride Route 2 Fig. 9As shown, the traveler walks 1,200 meters from the starting point to Fengrao East Road Station, takes Jiading Bus No. 58 from Fengrao East Road Station to Zhennan Road Station, walks 500 meters to Nanxiang Station, switches to Metro Line 11 from Nanxiang Station to Shanghai West Station, and then rides a shared bicycle to the end point. The total fare is 6 yuan and the journey takes 85 minutes.

[0128] Example 2, the starting point is located at Fashion Valley Creative Park, Songjiang District, Shanghai, and the end point is located at People's Square, Shanghai. According to the transfer method of this embodiment, the following is obtained: Figure 10-11 two park-and-ride routes;

[0129] Park and Ride routes remain the same Fig.10 As shown, the traveler drives from the starting point to the Shanghai Songjiang University Town P&R Parking Lot, switches to Metro Line 9 from Songjiang University Town Station to Lujiabang Road Station, and switches to Metro Line 8 from Lujiabang Road Station to the terminal. The total fare is 12 yuan and the journey takes 80 minutes.

[0130] Park and Ride Route 2 Fig.11 As shown, the traveler walks 1,400 meters from the starting point to Sixian Road Station, takes bus No. 16 from Sixian Road Station to Songjiang New Town Station, switches to Metro Line 9 from Songjiang New Town Station to Lujiabang Road Station, and switches to Metro Line 8 from Lujiabang Road Station to the terminal. The total fare is 7 yuan and it takes 120 minutes.

[0131] It can be seen from the above-mentioned park-and-ride route one and park-and-ride route two that the travel plan via P&R takes the least time. By choosing this plan, travelers can take into account both comfort and low-carbon and environmentally friendly travel concepts, which has undoubtedly become the current preferred mode of travel.

[0132] This embodiment constructs the topological relationship between the road network and the public transportation network based on the road traffic network data and the public transportation network data, and combines the multivariate heuristic function to expand, compare, and select the network connection points according to certain rules through the input starting point and end point, and takes the minimum number of switching times, the minimum time, or the shortest distance as the optimal standard, thereby generating the best path from the starting point to the end point, and can quickly, accurately, in real time, and reliably provide reasonable travel plans for travelers. Furthermore, in response to the needs of the rapid development of cities, the needs of P&R parking transfer travel and shared bicycle travel are met.

[0133] Example 2

[0134] This embodiment provides a system for generating a park-and-ride route, such as Fig.12 As shown, the generation system includes: a construction module 20, an expansion module 21, a first acquisition module 22, and a first generation module 23;

[0135] A construction module 20 is used to construct a topological relationship between a vehicle road network and a public transportation network;

[0136] An expansion module 21, used to expand the expansion network node from the starting position to the end position in the topological relationship;

[0137] In an optional embodiment, the extended network node includes at least one of a road intersection, a public transportation station, a rail transit station, and a parking lot.

[0138] A first acquisition module 22, used to obtain a minimum cost value from a starting position through an extended network node to an end position using a multivariate heuristic function;

[0139] In this embodiment, when searching for a park-and-ride route, whenever a network node is expanded, a network node with the smallest cost value F(N) is always selected from all the network nodes to be expanded as the expansion object, so that the search can be carried out in the most promising direction as much as possible. The expression of F(N) is shown in formula (1) in embodiment 1; the expression of H(N) is shown in formula (2) in embodiment 1.

[0140] The first generating module 23 is used to generate a park-and-ride route from a starting position to an end position according to a minimum cost value.

[0141] In the specific implementation process, starting from the starting point, first traverse the neighboring network nodes around the starting point, and then traverse the neighboring network nodes of the network nodes that have been traversed (i.e., in the extended network node array), and gradually expand outward. The criterion for node expansion is the minimum cost of the multivariate heuristic function. The evaluation standard of the cost is determined according to the priority of each evaluation index in the multivariate heuristic function, and finally expands to the terminal position. When the traversed extended network node is a P&R parking lot, adaptive switching is performed according to the multivariate heuristic function and traversal is performed in sequence until the conditions are met and terminated.

[0142] In this embodiment, the cost value of the multivariate heuristic function is dynamically calculated based on the expansion state of the extended network node. Each time an extended network node is traversed, the multivariate heuristic function of the network node needs to be calculated to estimate the optimal route cost value F(N) of the starting point position through the extended network node to the target network node; whenever a network node is expanded, the network node with the smallest cost value F(N) is always selected from all the network nodes to be expanded as the expansion object, so that the search can be carried out in the most promising direction as much as possible. Therefore, each time a network node is expanded, the network node with the smallest F(N) value is always selected from the array of network nodes to be expanded ExNodes to be expanded, and the search is carried out in the direction of the optimal path as much as possible. During the search process, the extended network nodes that meet the conditions are placed in the ExNodes array until they are expanded to the terminal position D, and the search process ends. It should be noted that the algorithm for the parking and transfer route in this embodiment only requires part of the network nodes and their relationships in the entire state space of the problem to solve the problem, so compared with other algorithms, its search efficiency is higher.

[0143] In addition, the travel time and travel cost of public transportation between any two stations can be easily obtained. The travel time, travel cost and transfer matrix between any two stations can be pre-batch generated during initialization, which can greatly optimize the execution efficiency of the algorithm. The walking distance is not included in the multivariate heuristic function here. The main consideration is that the walking distance needs to be calculated in real time in the road network according to different starting and ending positions, which will affect the execution efficiency of the algorithm. In this embodiment, the walking distance is used as a sorting condition to prioritize the searched transfer routes.

[0144] This embodiment generates a park-and-ride route from the starting position to the end position according to the minimum cost value from the starting position through the extended network nodes to the end position obtained by using a multivariate heuristic function; realizes adaptive switching between the road network through the P&R parking lot and the public transportation line network, so that the cost from the starting position to the end position is minimized, solves the problem of adaptively searching for the best and most comfortable (minimum cost) travel route via the P&R parking lot, meets the needs of mixed travel on the road network and the public transportation line network, and meets the requirements of the low-carbon travel concept. Especially for megacities, it can help users find a reasonable and optimal travel route in a complex urban transportation system.

[0145] In an optional embodiment, if Fig.12 As shown, the construction module 20 includes: a first acquisition unit 201, a construction unit 202;

[0146] A first acquisition unit 201 is used to acquire public transportation network data and vehicle road network data;

[0147] A construction unit 202, configured to construct a topological relationship between the vehicle road network and the public transportation network according to the public transportation network data and the vehicle road network data;

[0148] In this embodiment, in the urban mixed transportation network, the extended network nodes include at least one of road intersections, public transportation stations, rail transit stations, and parking lots. The lines between nodes are edges in the mixed transportation network. First, a topological relationship between the vehicle road network and the public transportation network is established based on mathematical laws and network connectivity rules, that is, spatial relationships between nodes, between nodes and edges, and between edges are established. A connection relationship is established between the road network and the public transportation network through P&R parking lots.

[0149] In this embodiment, although the public transportation network and the road traffic network are two independent network systems, and the vehicles run in an orderly manner in the corresponding networks without interfering with each other, there is a topological relationship between the two networks. For example, although buses have their own fixed routes, these routes are built on the basis of the road network. Figure 2 Figure 1 is a schematic diagram of the rail transit network and bus network. Figure 2 As shown in (a), the rail transit line R1 (1→2→3→4), the bus line R2 (5→2→3→6). The rail transit line network is a restricted network. Since rail transit vehicles do not travel on the road, there is no topological relationship between the restricted network and the road centerline network. There is only a topological relationship between the rail transit station and the road network, that is, the rail transit station is located on the centerline of the road network, such as Figure 2 As shown in (b), bus routes are also a kind of restricted network. Buses in the restricted network actually travel on the road, so there is a strong topological relationship between the bus route network and the road network. Figure 2 As shown in (c), the bus route consists of all or part of the boundaries of many road centerlines, and route R2 (5→6) consists of road centerlines E5,7, E7,8, E8,9, E9,10, E10,2, E2,3, E3,11, E11,12 and E12,6. The topological relationship between the two restriction networks and the road network is shown in Figure 2 It should be noted that no matter what mode of transportation is used, travelers will travel along the urban road traffic network.

[0150] Specifically, Figure 3 The figure shows a public transportation network consisting of two lines R1 and R2, where network nodes 1 to 6 represent stations, and the edges in the network are the lines between two stations. Each line has a predetermined route direction, and there can be one or more common stations between the lines.

[0151] For public transportation networks, in network analysis, the adjacency matrix is ​​used to express the connectivity between nodes in the network. The adjacency matrix can be used to express the connectivity between stations. The elements T in the matrix ij = k, indicating that there are k service routes from site i to site j so that ij is connected, and the diagonal elements T ii is 0. Figure 3 The adjacency matrix of sites 1 to 6 is as follows Figure 4 As shown, for example, from site 2 to site 3, there are two lines R1 and R2, which connect 2 and 3. Therefore, T 23 = 2. The weight matrix of the adjacency matrix T It means that there are k service solutions from site i to site j through n-1 handovers. It means that there are two service plans from station 2 to station 4 through one switch, namely R1(2→3) to R1(3→4); R2(2→3) to R1(3→4). Although switching for the same vehicle is almost impossible in practice, it is theoretically possible. Based on the above conclusions, the minimum number of switches between any two points in the public transportation network can be solved by the adjacency matrix and its weight matrix. In other words, the matrix composed of the nth power of the weight matrix is ​​called the switching number matrix.

[0152] The above is an analysis of the public transportation network. For the hybrid network, when solving the switching frequency matrix, in addition to considering the adjacency matrix and its weight matrix, the network node type must also be taken into account. The switching frequency matrix solution algorithm for the hybrid network is different from the above method. Figure 5 Shown is a Figure 3 The diagram of urban parking with a topological relationship between the public transportation network and the road network is shown in the figure. Network nodes 7-12 are road intersections located on the road. In network analysis, road intersections and bus stops are both considered as nodes in the network, and the topological connectivity is consistent. However, in reality, there must be at least one handover between the road intersections and bus stops. Based on this theory, the steps for solving the handover matrix of the hybrid network are as follows:

[0153] 1. Establish the adjacency matrix T between nodes and clear all elements of the switching number matrix Q to zero;

[0154] 2. Calculate the weight matrix T of the adjacency matrix n (n starts from 1 and accumulates sequentially);

[0155] 3. Compare Q in order ij and T ij , if Q ij =0, and Q ij =n;

[0156] 4. Determine the types of nodes i and j. If they are both road intersections or public transportation stops, then Q ij =n, otherwise Q ij =n+1;

[0157] 5. Repeat steps 2 and 3 until all elements in Q except the diagonal are non-zero, and end the loop.

[0158] Figure 6 is the switching number matrix of nodes 1 to 12, where the diagonal elements and the elements between two points that cannot be reached no matter how many times the switching is performed are 0.

[0159] In an optional embodiment, if Fig.12 As shown, the generation system further includes: a second acquisition module 24, a sorting module 25;

[0160] A second acquisition module 24 is used to acquire the number of switching times and / or travel time and / or travel cost and / or walking distance in the park-and-ride route;

[0161] The sorting module 25 is used to prioritize the park-and-ride routes according to the number of switching times and / or travel time and / or travel cost and / or walking distance.

[0162] In an optional embodiment, if Fig.12 As shown, the first generating module 23 includes: a second acquiring unit 231, a first judging unit 232, a replacing unit 233, a recording unit 234, a second judging unit 235, a first generating unit 236, and a second generating unit 237;

[0163] The second acquisition unit 231 is used to acquire the adjacent network nodes adjacent to the extended network node;

[0164] The first judging unit 232 is used to judge whether the adjacent network node coincides with the node in the network node to be expanded, and if so, call the replacing unit 233; if not, call the recording unit 234;

[0165] A replacement unit 233, used to replace the overlapping network nodes with adjacent network nodes;

[0166] The recording unit 234 is used to record the adjacent network nodes into the network nodes to be expanded;

[0167] The second judging unit 235 is used to judge whether the extended network node is the end point, and if so, call the first generating unit 236; if not, call the second generating unit 237;

[0168] A first generating unit 236, configured to generate a park-and-ride route from a starting point to an extended network node according to adjacent network nodes;

[0169] The second generating unit 237 is used to generate a park-and-ride route from the starting position to the extended network node and from the extended network node to the terminal position according to the adjacent network nodes, so as to obtain a park-and-ride route from the starting position to the terminal position;

[0170] The multivariate heuristic function H(N) in this embodiment is used to estimate the transfer cost required for any point N to reach the destination position D, and G(N) is the route cost paid from the starting position O to any point N. The specific steps of the P&R parking travel path adaptive switching algorithm are as follows:

[0171] a. Load the bus network data and calculate G(N), H(N) and F(N) of the starting point O, which are represented by g, h and f respectively. According to the previous analysis, we have: f0=g0+h0, and put the starting point O into the network node array ExNodes to be expanded, where Q od ,T od and C od The cost of traveling from the starting point O to the final point D;

[0172] b. If the array ExNodes is not empty, select the extended network node M with the smallest f value from ExNodes and expand the extended network node M. The minimum f value calculation rule is to prioritize Q. od , minimum Q od The f is the minimum f value. If Q od If they are equal, then choose T od , in Q od Minimum T under equal conditions od The f is the lowest f value. If T od If they are equal, then choose C. od , in Q od and T od The minimum C when all are equal od The corresponding f is the minimum value;

[0173] c. The expansion steps of network node M are as follows:

[0174] 1) Search all the adjacent network nodes adjacent to the extended network node M, and calculate the g, h, and f of these adjacent network nodes respectively. For any extended network node E of the extended network node M, if any extended network node E is on the same line as the extended network node M, then Q oe =Q om , otherwise Q oe =Q om +1;

[0175] 2) Then determine whether any extended network node E coincides with a network node in ExNodes. If any extended network node E coincides with one of the network nodes P, and Q oe op , then replace the network node P in ExNodes with any extended network node E, if Q oe >Q op , then delete any extended network node E;

[0176] 3) If any extended network node E does not overlap with any network node in ExNodes, the state of any extended network node E is recorded and inserted into ExNodes;

[0177] d. After the expansion of the extended network node M, record the best path from the starting position O to the extended network node M;

[0178] e. Determine whether the extended network node M is the terminal position. If the extended network node M is not the terminal position, continue to select the extended network node M with the smallest f value from ExNodes for expansion, and repeat steps bd until it is extended to the terminal position D;

[0179] f. If the extended network node M is the end point D, output the park-and-ride route from the starting point O to the end point D.

[0180] In this embodiment, after the expansion of the extended network node M is completed, it is determined whether the extended network node M is a P&R parking spot. If not, the next algorithm is the same as the public transportation network algorithm. If so, the road network data is loaded; it is determined which point of the starting point and the end point of the travel route may be a parking transfer point, that is, the parking transfer point is the starting point or the destination point of the traveler's driving. According to the characteristics of the P&R parking spot, the parking transfer point is generally located in the suburbs of the city. According to this condition, if the starting point and the end point are not located in the suburbs or are both located in the suburbs, a city center point is selected to determine which point is the closest to the starting point and the end point. The farther away from the city center, the more likely it is to be a parking and transfer point. If the starting point is a parking and transfer point, then in the unrestricted network, that is, the road network, calculate the best path from the starting point O to the extended network node M, and record the best path. In this step, the number of switches in the multivariate heuristic function is ineffective, and the weight is set to 0. If the terminal position is a parking and transfer point, then in the unrestricted network, that is, the road network, calculate the best path from the extended network node M to the terminal position D, and record the best path from the extended network node M to the terminal position D. Output the parking and transfer route from the starting point O to the terminal position D.

[0181] ​In the specific implementation process, due to the large number of types of urban bus lines, including bus special lines, airport express lines, tourist lines and ordinary lines, the stations of various lines are staggered and overlapped. In addition, rail transit stations and bus stations often overlap to facilitate transfers. This embodiment first pre-processes the bus and rail transit data before the algorithm is implemented, and merges adjacent stations to facilitate the subsequent algorithm implementation. For example, the station merging rules are as follows:

[0182] 1) Merge bus stops within 100 meters of each other;

[0183] 2) Merge rail transit stations within 300 meters of each other;

[0184] 3) Merge bus and rail transit stations within 500 meters of each other;

[0185] 4) For the merged site, store the merged site ID and the corresponding line ID.

[0186] Based on data preprocessing, according to the generation algorithm of the switching number matrix, firstly, the switching number matrix of all stations (such as bus stations and rail transit stations) is generated by batch processing. The switching number matrix is ​​called as a pre-generated file during the algorithm implementation process. The local schematic diagram of the switching number matrix is ​​shown in Figure 7 As shown;

[0187] In this embodiment, bus stops, P&R parking and transfer points, rail transit stops and road intersections are named as extended network nodes. The data structures of these extended network nodes are shown in Table 1 in Example 1. For an extended network node, information such as the network node number, network node type and the line number and type of the network node are stored. For a public transportation network, the line is the bus line number or the rail transit line number. For a road network, the line is the road centerline number. In addition, the extended network node also stores the judgment value of the network node property to identify whether the network node is the starting point, the end point or the P&R parking and transfer point. In addition, the values ​​of G(N) and F(N) are also stored in the extended network node as the key judgment factor when searching for the best path. Finally, the pointer to the previous connection node of the network node is also stored in the extended network node, which is used to establish an extended network node pointer linked list.

[0188] In this embodiment, the input values ​​are the starting point and the end point, and the output is the parking transfer route between the starting point and the end point; Example 1, the starting point is located at the intersection of Boxue Road and Fengnian Road in Jiading District, Shanghai, and the end point is located at the intersection of Zhenhua Road and Fuping Road. According to the transfer method of this embodiment, the following is obtained: Figure 8-9 two park-and-ride routes;

[0189] Park and Ride routes remain the same Figure 8As shown, the traveler drives from the starting point to the Nanxiang P&R parking lot, switches to Metro Line 11 from Nanxiang Station to Shanghai West Station, and then rides a shared bicycle to the end point. The total cost is 14 yuan and the journey takes 46 minutes.

[0190] Park and Ride Route 2 Fig. 9 As shown, the traveler walks 1,200 meters from the starting point to Fengrao East Road Station, takes Jiading Bus No. 58 from Fengrao East Road Station to Zhennan Road Station, walks 500 meters to Nanxiang Station, switches to Metro Line 11 from Nanxiang Station to Shanghai West Station, and then rides a shared bicycle to the end point. The total fare is 6 yuan and the journey takes 85 minutes.

[0191] Example 2, the starting point is located at Fashion Valley Creative Park, Songjiang District, Shanghai, and the end point is located at People's Square, Shanghai. According to the transfer method of this embodiment, the following is obtained: Figure 10-11 two park-and-ride routes;

[0192] Park and Ride routes remain the same Fig.10 As shown, the traveler drives from the starting point to the Shanghai Songjiang University Town P&R Parking Lot, switches to Metro Line 9 from Songjiang University Town Station to Lujiabang Road Station, and switches to Metro Line 8 from Lujiabang Road Station to the terminal. The total fare is 12 yuan and the journey takes 80 minutes.

[0193] Park and Ride Route 2 Fig.11 As shown, the traveler walks 1,400 meters from the starting point to Sixian Road Station, takes bus No. 16 from Sixian Road Station to Songjiang New Town Station, switches to Metro Line 9 from Songjiang New Town Station to Lujiabang Road Station, and switches to Metro Line 8 from Lujiabang Road Station to the terminal. The total fare is 7 yuan and it takes 120 minutes.

[0194] It can be seen from the above-mentioned park-and-ride route one and park-and-ride route two that the travel plan via P&R takes the least time. By choosing this plan, travelers can take into account both comfort and low-carbon and environmentally friendly travel concepts, which has undoubtedly become the current preferred mode of travel.

[0195] This embodiment constructs the topological relationship between the road network and the public transportation network based on the road traffic network data and the public transportation network data, and combines the multivariate heuristic function to expand, compare, and select the network connection points according to certain rules through the input starting point and end point, and takes the minimum number of switching times, the minimum time, or the shortest distance as the optimal standard, thereby generating the best path from the starting point to the end point, and can quickly, accurately, in real time, and reliably provide reasonable travel plans for travelers. Furthermore, in response to the needs of the rapid development of cities, the needs of P&R parking transfer travel and shared bicycle travel are met.

[0196] Example 3

[0197] Fig.13 This is a schematic diagram of the structure of an electronic device provided in Example 3 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor. When the processor executes the program, the method for generating a park-and-ride route in Example 1 is implemented. Fig.13 The electronic device 30 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0198] like Fig.13 As shown, the electronic device 30 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).

[0199] The bus 33 includes a data bus, an address bus, and a control bus.

[0200] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .

[0201] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0202] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32, such as the method for generating a park-and-ride route in the first embodiment of the present invention.

[0203] The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 35. Furthermore, the model generating device 30 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. Fig.13 As shown, the network adapter 36 communicates with other modules of the model-generated device 30 via the bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0204] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0205] Example 4

[0206] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for generating a park-and-ride route provided in Embodiment 1 is implemented.

[0207] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0208] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the method for generating a parking and transfer route described in Example 1.

[0209] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0210] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A method for generating a park-and-ride route, characterized in that: The generation method comprises: Obtain public transportation network data and road network data; Constructing a topological relationship between the vehicle road network and the public transportation network according to the public transportation network data and the vehicle road network data; wherein the vehicle road network and the public transportation network are connected via a P&R parking and transfer point; Expanding the extended network nodes from the starting position to the end position in the topological relationship; Using a multivariate heuristic function to obtain a minimum cost value from the starting position through the extended network node to the end position; wherein the minimum cost value is determined according to the priority of each evaluation index in the multivariate heuristic function, and the evaluation index includes distance, number of transfers, time and cost; Generating a park-and-ride route from the starting position to the end position according to the minimum cost value specifically includes: Loading the public transportation network data, calculating the minimum cost value of the starting point, and placing the starting point into the array of network nodes to be expanded; If the array of network nodes to be expanded is not empty, selecting an expansion network node with the smallest minimum cost value from the array of network nodes to be expanded for expansion; After the expansion of the extended network node is completed, determining whether the extended network node is a P&R park and ride point; If not, then recording the best path from the starting point to the extended network node; If yes, then the road network data is loaded, and when the starting point is a P&R parking point, the weight of the number of transfers in the evaluation index is set to 0, and the best path from the starting point to the extended network node is calculated in the road network; and when the terminal position is a P&R parking point, the best path from the extended network node to the terminal position is calculated in the road network; Determine whether the extended network node is the terminal position. If not, continue to select the extended network node with the smallest minimum cost value from the array of network nodes to be expanded for expansion; if yes, output the parking and transfer route from the starting position to the terminal position.

2. The method for generating a park-and-ride route according to claim 1, wherein: After the step of generating a park-and-ride route from the starting position to the end position according to the minimum cost value, the generating method further includes: Obtaining the number of switches and / or travel time and / or travel cost and / or walking distance in the park-and-ride route; The park-and-ride routes are prioritized according to the number of switches and / or the travel time and / or the travel cost and / or the walking distance.

3. The method for generating a park-and-ride route according to claim 1, wherein: The step of generating a park-and-ride route from the starting position to the end position according to the minimum cost value comprises: Acquire adjacent network nodes adjacent to the extended network node; Determine whether the adjacent network node overlaps with a node in the network node to be expanded, and if so, replace the overlapping network node with the adjacent network node; if not, record the adjacent network node in the network node to be expanded; Determine whether the extended network node is the terminal position. If so, generate a park-and-ride route from the starting position to the extended network node based on the adjacent network nodes; if not, generate a park-and-ride route from the starting position to the extended network node and from the extended network node to the terminal position based on the adjacent network nodes, so as to obtain a park-and-ride route from the starting position to the terminal position.

4. The method for generating a park-and-ride route according to claim 1, wherein: The extended network node includes at least one of a road intersection, a public transportation station, a rail transit station, and a parking lot.

5. A system for generating a park-and-ride route, characterized in that: The generation system comprises: A construction module for constructing the topological relationship between the vehicle road network and the public transportation network; An expansion module, used for expanding the expansion network nodes between the starting position and the end position in the topological relationship; A first acquisition module, used for acquiring a minimum cost value from the starting position through the extended network node to the end position by using a multivariate heuristic function; wherein the minimum cost value is determined according to the priority of each evaluation index in the multivariate heuristic function, and the evaluation index includes distance, number of transfers, time and cost; A first generating module, configured to generate a park-and-ride route from the starting position to the end position according to the minimum cost value; The building blocks include: A first acquisition unit is used to acquire public transportation network data and vehicle road network data; A construction unit, configured to construct a topological relationship between the vehicle road network and the public transportation network according to the public transportation network data and the vehicle road network data; wherein the vehicle road network and the public transportation network are connected via a P&R parking and transfer point; The first generating module is specifically used for: Loading the public transportation network data, calculating the minimum cost value of the starting point, and placing the starting point into the array of network nodes to be expanded; If the array of network nodes to be expanded is not empty, selecting an expansion network node with the smallest minimum cost value from the array of network nodes to be expanded for expansion; After the expansion of the extended network node is completed, determining whether the extended network node is a P&R park and ride point; If not, then recording the best path from the starting point to the extended network node; If yes, then the road network data is loaded, and when the starting point is a P&R parking point, the weight of the number of transfers in the evaluation index is set to 0, and the best path from the starting point to the extended network node is calculated in the road network; and when the terminal position is a P&R parking point, the best path from the extended network node to the terminal position is calculated in the road network; Determine whether the extended network node is the terminal position. If not, continue to select the extended network node with the smallest minimum cost value from the array of network nodes to be expanded for expansion; if yes, output the parking and transfer route from the starting position to the terminal position.

6. The system for generating a park-and-ride route according to claim 5, wherein: The generation system further comprises: A second acquisition module is used to acquire the number of switching times and / or travel time and / or travel cost and / or walking distance in the park-and-ride route; A sorting module is used to prioritize the park-and-ride routes according to the number of switching times and / or the travel time and / or the travel cost and / or the walking distance.

7. The system for generating a park-and-ride route according to claim 5, wherein: The first generation module comprises: A second acquisition unit, used for acquiring adjacent network nodes adjacent to the extended network node; A first judging unit is used to judge whether the adjacent network node coincides with a node in the network node to be expanded, and if so, to call the replacement unit; if not, to call the recording unit; The replacement unit is used to replace the overlapping network nodes with the adjacent network nodes; The recording unit is used to record the adjacent network node into the network node to be expanded; A second judging unit is used to judge whether the extended network node is an end point, and if so, call the first generating unit; if not, call the second generating unit; The first generating unit is used to generate a park-and-ride route from the starting position to the extended network node according to the adjacent network node; The second generating unit is used to generate a parking and transfer route from the starting position to the extended network node and from the extended network node to the terminal position according to the adjacent network node, so as to obtain a parking and transfer route from the starting position to the terminal position.

8. The system for generating a park-and-ride route according to claim 5, wherein: The extended network node includes at least one of a road intersection, a public transportation station, a rail transit station, and a parking lot.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the method for generating a park-and-ride route according to any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a park-and-ride route as described in any one of claims 1 to 4 is implemented.