Bus route running diagram generation method, electronic equipment and device

By obtaining and automatically pairing the site information of bus lines, the bus line operation diagram is generated, which solves the problem of time-consuming and inaccurate bus line drawing in the existing technology, and realizes fast and accurate dispatching and line adjustment of multiple sub-lines.

CN118690931AInactive Publication Date: 2024-09-24QINGDAO HISENSE TRANS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310259683.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The drawing of bus line operation diagrams in the existing technology is time-consuming and inaccurate. Especially in the case of multiple sub-lines, manual drawing increases the workload and complexity, making it difficult to dispatch vehicles quickly and accurately.

Method used

By obtaining the site information of the main sub-line and non-main sub-line, based on the site name and vehicle driving direction, it automatically determines the site matching results and location information, generates a bus line operation diagram, and realizes the accurate connection of the main sub-line and the non-main sub-line.

Benefits of technology

It achieves accurate identification and location determination of differential stations on multiple sub-lines, saving staff workload, and can quickly and accurately complete the adjustment of line operation diagrams, assisting dispatchers in accurately dispatching vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690931A
    Figure CN118690931A
Patent Text Reader

Abstract

The invention discloses a bus route running diagram generation method, electronic equipment and a bus route running diagram generation device. The method comprises the following steps: acquiring station information of each station on a main sub-line and at least one non-main sub-line in a line; based on the station information of each station included in the main line and the sub-line of the line, determining a station pairing result on the main line and the sub-line and position information of each station; according to the site information of each site included in the non-main sub-line and the site information of each site included in the main sub-line, determining a site pairing result on the non-main sub-line and the position information of each site; and then, based on the position information of the stations, the stations on the main and sub-lines and the stations on the non-main and sub-lines are sequentially connected according to the vehicle driving direction, and a bus route running diagram of the route is generated. The method can accurately reflect the direction of the line and the current real-time position of the vehicle, assists a dispatcher to accurately dispatch the vehicle, and can quickly and accurately complete the adjustment of the bus line working diagram after the vehicle is dispatched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent transportation technology, and in particular to a method, electronic equipment and device for generating a bus route operation diagram. Background Art

[0002] In the current bus routes, there are multiple operating sections that share a route sign, that is, in addition to the main sub-line, there are also multiple non-main sub-lines in a bus route. Therefore, it is necessary to draw a bus route operation map for the main sub-lines and multiple non-main sub-lines in the bus route, so that the bus dispatchers and passengers can accurately determine the location of the vehicle based on the bus route operation map, so that the dispatchers can make accurate dispatches based on the location of the vehicle.

[0003] However, in the prior art, manually drawing operation diagrams for routes with multiple sub-lines is time-consuming and reduces accuracy. At the same time, vehicle dispatching in bus routes is relatively frequent, which increases the workload and complexity of manually drawing operation diagrams. Therefore, there is an urgent need for a method that can quickly and accurately draw bus route operation diagrams. Summary of the invention

[0004] The purpose of the present application is to provide a method, electronic equipment and device for generating a bus route operation diagram, so as to solve the problem that manual drawing of operation diagrams is time-consuming, reduces accuracy and increases workload and complexity.

[0005] In a first aspect, the present application provides a method for generating a bus route operation diagram, which is applied to a terminal device, and the method comprises:

[0006] Acquire station information of each station on a plurality of lines; each of the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station;

[0007] Perform the following operations for each line:

[0008] Based on the station information of each station included in the main and sub-lines of the line, determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram;

[0009] For each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, determine the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map;

[0010] Based on the station pairing results on the main sub-line and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus route operation diagram corresponding to the line.

[0011] In a possible implementation manner, the vehicle travel direction includes an upward direction and a downward direction;

[0012] The step of determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram based on the station information of each station included in the main and sub-lines of the line includes:

[0013] Based on the vehicle travel direction of each station on the main and sub-lines, each station that the vehicle passes through is sorted according to the upward direction to obtain a first station set; and each station that the vehicle passes through is sorted according to the downward direction to obtain a second station set;

[0014] According to the site name of each site in the first site set and the second site set, each site included in the main sub-line is paired to obtain the site pairing result on the main sub-line and the location information of each site on the bus line operation diagram.

[0015] In a possible implementation manner, pairing each station included in the main sub-line according to the station name of each station in the first station set and the second station set to obtain the station pairing result on the main sub-line and the location information of each station on the bus line operation diagram includes:

[0016] Traverse each site in the first site set and each site in the second site set in turn:

[0017] Based on the site name of each site, if it is detected that there are sites with the same site name in the first site set and the second site set, the two sites with the same site name are successfully paired, and the positions of the two sites with the same site name on the bus line operation map are determined to be relative positions; the relative position indicates that the site in the upward direction and the site in the downward direction have the same horizontal coordinate on the bus line operation map;

[0018] Based on the site name of each site, if it is determined that the second site set and the first site set have sites with different site names, the pairing of the sites with different site names is unsuccessful, and the location information of the site on the bus route operation map is determined based on the location information of the previous successfully paired site of the site in the vehicle driving direction of the site on the bus route operation map and the location information of the next successfully paired site of the site on the bus route operation map.

[0019] In a possible implementation manner, the method further includes:

[0020] If the site pairing is unsuccessful and the vehicle driving direction of the site is in the upward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the downward direction;

[0021] If the site pairing is unsuccessful and the vehicle driving direction of the site is a downward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the upward direction.

[0022] In a possible implementation manner, the method further includes:

[0023] If there are two sites with different site names in the first site set and the second site set, obtaining actual location information of the two sites;

[0024] If it is determined that the positions of the two stations on the bus route operation map are relative positions based on the actual position information of the two stations, the horizontal coordinate of the position of the first station on the bus route operation map is subtracted from a preset value, and the horizontal coordinate of the position of the second station on the bus route operation map is added with a preset value, so as to obtain the modified positions of the two stations on the bus route operation map respectively.

[0025] In a possible implementation manner, determining the station pairing result on the non-main sub-line and the location information of each station on the bus line operation diagram according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line includes:

[0026] If it is determined that the station name of the non-main sub-line is the same as that of the station on the main sub-line, then the station pairing result of the station on the main sub-line and the position information of the station on the bus line operation map are determined to be the station pairing result of the station on the non-main sub-line and the position information of the station on the bus line operation map;

[0027] If it is determined that the station names of the non-main line and the stations on the main line are different, it is determined that the vertical coordinates of the positions of the non-main line stations on the bus line operation diagram are greater or smaller than the vertical coordinates of each station on the main line.

[0028] In a possible implementation manner, the vehicle travel direction includes an upward direction and a downward direction;

[0029] After determining that the ordinate of the position of the station on the non-main line on the bus line operation diagram is greater than or less than the ordinate of each station on the main line, the method further includes:

[0030] If the vehicle driving direction of the station is the upward direction, it is determined that there is a station with the same station name as the station in the downward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map;

[0031] If the vehicle driving direction of the station is the upward direction, it is determined that there is no station with the same station name as the station in the downward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the upward direction;

[0032] If the vehicle driving direction of the station is the downward direction, it is determined that there is a station with the same station name as the station in the upward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map;

[0033] If the vehicle travel direction of the station is the downward direction, it is determined that there is no station with the same station name as the station in the upward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the downward direction;

[0034] In a possible implementation manner, the method further includes:

[0035] Based on the location information of each station on the main sub-line and the non-main sub-line on the bus line operation diagram, the location information of the adjacent stations of each station is determined, and the station and the adjacent stations are connected.

[0036] In a second aspect, the present application provides an electronic device, the electronic device comprising at least one processor and at least one memory; wherein the memory stores a program code, and when the program code is executed by the processor, the processor performs the following process:

[0037] Acquire station information of each station on a plurality of lines; each of the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station;

[0038] Perform the following operations for each line:

[0039] Based on the station information of each station included in the main and sub-lines of the line, determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram;

[0040] For each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, determine the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map;

[0041] Based on the station pairing results on the main sub-line and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus route operation diagram corresponding to the line.

[0042] In a third aspect, the present application provides a device for generating a bus route operation diagram, comprising:

[0043] An acquisition module, used for acquiring station information of each station on a plurality of lines; each line in the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station;

[0044] Perform the following operations for each line:

[0045] A pairing module, for determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram based on the station information of each station included in the main and sub-lines of the line;

[0046] The pairing module is used for determining, for each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map;

[0047] A generation module is used to connect the stations on the main sub-line and the stations on the non-main sub-line in sequence according to the vehicle driving direction based on the station pairing results on the main sub-line and the location information of each station on the bus route operation map, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation map, to generate a bus route operation map corresponding to the line.

[0048] In a fourth aspect, the present application provides a computer-readable storage medium comprising a program code. When the program code is executed on a terminal device, the program code is used to enable the terminal device to execute the steps of any one of the methods described in the first aspect.

[0049] In a fifth aspect, the present application provides a computer program product, including a computer program:

[0050] When the computer program is executed by a processor, the steps of the method described in any one of the first aspects above are implemented.

[0051] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0052] In the embodiment of the present application, the station information of each station on a main sub-line and at least one non-main sub-line in the line is obtained; the station information includes the station name and the vehicle driving direction of the station; then based on the station information of each station included in the main sub-line of the line, the station pairing result on the main sub-line and the location information of each station on the bus line operation diagram are determined; for each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, the station pairing result on the non-main sub-line and the location information of each station on the bus line operation diagram are determined; based on the station pairing result on the main sub-line and the location information of each station on the bus line operation diagram, and the station pairing result on the non-main sub-line and the location information of each station on the bus line operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are sequentially connected according to the vehicle driving direction, and the bus line operation diagram corresponding to the line is generated. In this way, the difference stations in multiple sub-lines can be accurately identified and the positions in the bus line operation diagram can be determined, and at the same time, the workload of the staff can be greatly saved, and the adjustment of the line operation diagram can be completed quickly and accurately after the vehicle is dispatched.

[0053] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application.

[0055] Figure 1 A schematic diagram of the effect of a non-main sub-line provided in an embodiment of the present application;

[0056] Figure 2 A schematic diagram of another non-main sub-line effect provided in an embodiment of the present application;

[0057] Figure 3 A schematic diagram of another non-main sub-line effect provided in an embodiment of the present application;

[0058] Figure 4 A schematic diagram of another non-main sub-line effect provided in an embodiment of the present application;

[0059] Figure 5 An application scenario diagram of a method for generating a bus route operation diagram provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of a process for generating a bus route operation diagram provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of a process of pairing sites on a master line and a slave line provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of a process of pairing sites on a master line and a slave line provided in an embodiment of the present application;

[0063] Fig. 9 A schematic diagram of a process of pairing sites on a master line and a slave line provided in an embodiment of the present application;

[0064] Fig.10 A schematic diagram of the effect of the station location on a main line and a sub-line provided in an embodiment of the present application;

[0065] Fig.11 A schematic diagram of the effect of the station location on a main line and a sub-line provided in an embodiment of the present application;

[0066] Fig.12 A schematic diagram of a process of pairing sites on a master line and a slave line provided in an embodiment of the present application;

[0067] Fig.13 A schematic diagram of the effect before the station position adjustment on the main and sub-lines provided in an embodiment of the present application;

[0068] Fig.14A schematic diagram of the effect of adjusting the position of a station on a main line and a sub-line provided in an embodiment of the present application;

[0069] Fig.15 A bus route operation diagram corresponding to a main line and a sub-line provided in an embodiment of the present application;

[0070] Fig.16 A schematic diagram of a process of pairing sites on a non-primary line and a sub-line provided in an embodiment of the present application;

[0071] Fig.17 A schematic diagram of a bus route operation diagram provided in an embodiment of the present application;

[0072] Fig.18 A schematic diagram of another bus route operation diagram provided in an embodiment of the present application;

[0073] Fig.19 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0074] Fig. 20 A schematic diagram of the structure of a bus route operation diagram generation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0076] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0077] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.

[0078] In the current bus routes, there are multiple operating sections that share the same route logo, for example: Figure 1 The section shown partially overlaps with the main line station; Figure 2 The large station sub-line shown overlaps with the main line station; Figure 3 The sub-lines shown overlap with some of the main line's stations and are not on the main line; Figure 4 The extended sub-line shown coincides with the main sub-line; therefore, in addition to the main sub-line, there are also multiple non-main sub-lines in a bus route. Therefore, it is necessary to draw a bus route operation diagram for the main sub-line and multiple non-main sub-lines in the bus route, so that the bus dispatcher and passengers can accurately determine the location of the vehicle according to the bus route operation diagram, so that the dispatcher can make accurate dispatch according to the location of the vehicle.

[0079] However, in the prior art, the route operation diagram can only be drawn manually, and the upstream and downstream stations of the route cannot be automatically paired, and the bus route operation diagram cannot be automatically generated. For routes with multiple sub-lines, on the one hand, it is easy to make mistakes and it is time-consuming to draw the operation diagram manually; on the other hand, bus companies now adjust their routes frequently, and they need to redraw the route operation diagram after each adjustment, especially for complex routes, which increases the workload and complexity of manually drawing the operation diagram. Therefore, there is an urgent need for a method that can quickly and accurately draw a bus route operation diagram.

[0080] In view of this, the present application provides a method, electronic device and apparatus for generating a bus route operation diagram, so as to solve the problem that manual drawing of operation diagram is time-consuming, reduces accuracy and increases workload and complexity.

[0081] The inventive concept of the embodiment of the present application can be summarized as follows: by obtaining the site information of each station on a main sub-line and at least one non-main sub-line in the line; the site information includes the site name of the station and the vehicle driving direction; then based on the site information of each station included in the main sub-line of the line, determine the site pairing result on the main sub-line and the position information of each station on the bus line operation diagram; for each non-main sub-line of the line: according to the site information of each station included in the non-main sub-line and the site information of each station included in the main sub-line, determine the site pairing result on the non-main sub-line and the position information of each station on the bus line operation diagram; based on the site pairing result on the main sub-line and the position information of each station on the bus line operation diagram, as well as the site pairing result on the non-main sub-line and the position information of each station on the bus line operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus line operation diagram corresponding to the line.

[0082] Therefore, it is possible to accurately identify the different stations in multiple sub-lines and determine their positions in the bus route operation diagram, saving a lot of work for the staff, and quickly and accurately adjust the route operation diagram after dispatching the vehicle. It can accurately reflect the direction of the route and the current real-time position of the vehicle, and assist the dispatcher in accurately dispatching the vehicle.

[0083] After introducing the main inventive concept of the embodiment of the present application, an application scenario diagram of a method for generating a bus route operation diagram provided in the embodiment of the present application is introduced in conjunction with the accompanying drawings. Figure 5 The system comprises: a terminal device 501, a storage device 502 and a server 503, wherein:

[0084] The terminal device 501 is used to obtain the station information of each station on multiple routes from the server 503 through the network; each of the multiple routes includes a main sub-line and at least one non-main sub-line; the station information includes the station name and the vehicle driving direction of the station; then the following operations are performed for each route: based on the station information of each station included in the main sub-line of the route, determine the station pairing result on the main sub-line and the location information of each station on the bus route operation map; for each non-main sub-line of the route: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line , determine the station pairing results on the non-main sub-line and the location information of each station on the bus route operation map; based on the station pairing results on the main sub-line and the location information of each station on the bus route operation map, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation map, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus route operation map corresponding to the line, and then the bus route operation map is stored in the memory 502 so that the dispatcher can use the bus route operation map to display the real-time location of the vehicle and perform vehicle dispatch.

[0085] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be implemented by each system in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here.

[0086] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.

[0087] See also Figure 6 , is a flow chart of a method for generating a bus route operation diagram provided in an embodiment of the present application. Figure 6 As shown, the method comprises the following steps:

[0088] In step 601, station information of each station on a plurality of lines is obtained; each of the plurality of lines includes a main sub-line and at least one non-main sub-line; the station information includes the station name and the vehicle travel direction of the station;

[0089] Then, the following operations are performed for each line respectively: in step 602, based on the station information of each station included in the main and sub-lines of the line, the station pairing results on the main and sub-lines and the location information of each station on the bus line operation diagram are determined;

[0090] In step 603, for each non-main sub-line of the route: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, the station pairing result on the non-main sub-line and the location information of each station on the bus route operation diagram are determined;

[0091] In step 604, based on the station pairing results on the main sub-lines and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-lines and the location information of each station on the bus route operation diagram, the stations on the main sub-lines and the stations on the non-main sub-lines are connected in sequence according to the vehicle travel direction to generate a bus route operation diagram corresponding to the line.

[0092] In a possible implementation, the vehicle travel direction in the present application includes an upward direction and a downward direction. Therefore, based on the station information of each station included in the main and sub-lines of the line, the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram are determined, which can be performed as follows: Figure 7 Steps shown:

[0093] In step 701, based on the vehicle travel direction of each station on the main line, each station passed by the vehicle is sorted according to the upward direction to obtain a first station set; and each station passed by the vehicle is sorted according to the downward direction to obtain a second station set;

[0094] In step 702, each station included in the main sub-line is paired according to the station name of each station in the first station set and the second station set to obtain the station pairing result on the main sub-line and the location information of each station on the bus line operation diagram.

[0095] In a possible implementation manner, in the present application, each station included in the main sub-line is paired according to the station name of each station in the first station set and the second station set, and the station pairing result on the main sub-line and the location information of each station on the bus line operation diagram are obtained, which can be performed as follows: Figure 8 Steps shown:

[0096] In step 801, each site in the first site set and each site in the second site set are traversed in sequence;

[0097] In step 802, based on the site name of each site, if it is detected that there are sites with the same site name in the first site set and the second site set, the two sites with the same site name are successfully paired, and the positions of the two sites with the same site name on the bus line operation map are determined to be relative positions;

[0098] Among them, the stations whose relative positions represent the upward direction and the stations whose relative positions represent the downward direction have the same horizontal coordinates on the bus line operation diagram;

[0099] In step 803, based on the site name of each site, if it is determined that the second site set and the first site set have sites with different site names, the pairing of sites with different site names is unsuccessful, and the location information of the site on the bus route operation map is determined based on the location information of the previous successfully paired site of the site in the vehicle travel direction of the site and the location information of the next successfully paired site of the site on the bus route operation map.

[0100] In a possible implementation, when drawing a bus route operation diagram in the present application, for the stations with different station names in the second station set and the first station set, that is, the stations that are not successfully paired, it is necessary to perform corresponding processing in the opposite direction of the position, so the method in the present application can also be executed as follows Fig. 9 Steps shown:

[0101] In step 901, if the site pairing is unsuccessful and the vehicle driving direction of the site is the upward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the downward direction.

[0102] When implementing it, Fig.10As shown in , station 3 is a station that is not successfully paired on the main line, and the vehicle is traveling in the upward direction, so a blank position of a station is reserved in the relative position in the downward direction, and the following is obtained: Fig.10 The effect diagram shown.

[0103] In step 902, if the site pairing is unsuccessful and the vehicle driving direction of the site is the downlink direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the uplink direction.

[0104] When implementing it, Fig.11 As shown in FIG. 1 , station 6 and station 7 are unsuccessfully paired stations on the main line, and the vehicle is traveling in the down direction, so a blank position of each station is reserved in the relative position in the up direction, and the following is obtained: Fig.11 The effect diagram shown.

[0105] In a possible implementation manner, in the present application, there may be two sites with different site names in the relative positions in the uplink direction and the downlink direction, so the method of the present application can also be executed as follows: Fig.12 Steps shown:

[0106] In step 1201, if there are two sites with different site names in the first site set and the second site set, actual location information of the two sites is obtained;

[0107] In step 1202, if the positions of the two stations on the bus route operation map are determined to be relative positions based on the actual position information of the two stations, the horizontal coordinate of the position of the first station on the bus route operation map of the two stations is subtracted from a preset value, and the horizontal coordinate of the position of the second station on the bus route operation map is added with a preset value, so as to obtain the modified positions of the two stations on the bus route operation map respectively.

[0108] Among them, the preset value is set by the user according to actual needs, or according to experience, and this application does not impose any restrictions on this.

[0109] When implementing it, Fig.13 As shown, the station 6 in the upward direction and the station 11 in the downward direction are two stations with different station names, but the positions of the two stations on the bus line operation map are determined to be relative positions based on the actual position information of the two stations. Then, the position of the station 6 on the bus line operation map is moved to the left by a preset value, and the position of the station 11 on the bus line operation map is moved to the right by a preset value, and the modified positions of the two stations on the bus line operation map are obtained, as shown in FIG. Fig.14 shown.

[0110] Therefore, through the above Figures 7 to 14The method shown in FIG. 1 pairs and determines the positions of each station on the main and sub-lines, and then connects the stations on the main and sub-lines in sequence according to the vehicle driving direction to generate the following Fig.15 The bus route operation diagram corresponding to the main and sub lines of the route shown.

[0111] In a possible implementation manner, in the present application, according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, determining the station pairing result on the non-main sub-line and the location information of each station on the bus line operation diagram can also be performed as follows: Fig.16 Steps shown:

[0112] In step 1601, if it is determined that the station names of the non-main line and the station on the main line are the same, then the station pairing result of the station on the main line and the location information of the station on the bus line operation diagram are determined to be the station pairing result of the station on the non-main line and the location information of the station on the bus line operation diagram.

[0113] When implementing, Fig.17 As shown, the station pairing results of stations 7, 8, and 9 in the upward direction of the main sub-line correspond to stations 10, 9, and 8. The vehicle travel direction of stations 7, 8, and 9 on the non-main sub-line is the upward direction, and the station names are the same as those of stations 7, 8, and 9 on the main sub-line. Therefore, the station pairing results of stations 7, 8, and 9 on the main sub-line and the location information on the bus line operation diagram are determined to be the station pairing results of stations 7, 8, and 9 on the non-main sub-line and the location information on the bus line operation diagram, that is, stations 7, 8, and 9 on the non-main sub-line correspond to stations 10, 9, and the locations on the non-main sub-line and the location information on the main sub-line are the same, as shown in FIG. Fig.17 As shown, the location information of sites 7, 8, 9 and sites 10, 9, 8 on the non-main line is the same as that of sites 7, 8, 9 and sites 10, 9, 8 on the main line.

[0114] In step 1602, if it is determined that the station names of the non-main line and the stations on the main line are different, then the vertical coordinate of the position of the non-main line station on the bus line operation diagram is determined to be greater or smaller than the vertical coordinate of each station on the main line.

[0115] In a possible implementation, the vehicle travel direction in the present application includes an upward direction and a downward direction; therefore, after determining that the ordinate of the position of the station on the non-main sub-line on the bus line operation diagram is greater than or less than the ordinate of each station on the main sub-line, the stations on the non-main sub-line with different station names from those on the main sub-line can be paired and their positions determined according to the following situations:

[0116] Case 1: If the vehicle travel direction of the station is upward, it is determined that there is a station with the same station name as the station in the downward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position represents that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map.

[0117] When implementing, Fig.17 As shown, the vehicle driving direction of station 17 is the upward direction, then the station name of station 19 in the downward direction is determined to be the same as the station name of station 17, so the positions of station 17 and station 19 on the bus line operation diagram are determined to be relative positions, and are outside the main sub-line, that is, the vertical coordinate of the position of station 17 on the bus line operation diagram is greater than the vertical coordinate of station 4 on the main sub-line, and the vertical coordinate of the position of station 19 on the bus line operation diagram is less than the vertical coordinate of station 13 on the main sub-line.

[0118] Case 2: If the vehicle travel direction of the station is upward, it is determined that there is no station with the same station name as the station in the downward direction, and the location information of the station on the bus line operation map is determined based on the location information of the previous station and the next station of the station in the upward direction.

[0119] When implementing, Fig.17 As shown in FIG. 1 , the vehicle driving direction of station 18 is the upward direction, and it is determined that there is no station with the same station name as station 18 in the downward direction. Therefore, according to the location information of the previous station (station 2) and the location information of the next station (station 17) of the station in the upward direction, the location information of station 18 on the bus line operation diagram is determined as follows: Fig.17 As shown, and outside the main line, that is, the ordinate of the position of station 18 on the bus line operation diagram is greater than the ordinate of station 3 on the main line, and is between station 2 and station 17.

[0120] Case three: If the vehicle travel direction of the station is downward, it is determined that there is a station with the same station name as the station in the upward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position represents that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map.

[0121] When implementing, Fig.17As shown, the vehicle driving direction of station 19 is the downward direction, then the station name of station 17 in the upward direction is determined to be the same as the station name of station 19, so the positions of station 17 and station 19 on the bus line operation diagram are determined to be relative positions, and are outside the main sub-line, that is, the vertical coordinate of the position of station 17 on the bus line operation diagram is greater than the vertical coordinate of station 4 on the main sub-line, and the vertical coordinate of the position of station 19 on the bus line operation diagram is less than the vertical coordinate of station 13 on the main sub-line.

[0122] Case 4: If the vehicle travel direction of the station is downward, it is determined that there is no station with the same station name as the station in the upward direction, and the location information of the station on the bus line operation map is determined based on the location information of the previous station and the next station of the station in the downward direction.

[0123] When implementing, Fig.18 As shown in FIG. 1 , the vehicle driving direction of the non-main line station 20 is the downward direction, and it is determined that there is no station with the same station name as station 20 in the upward direction of the non-main line. Therefore, according to the location information of the previous station (station 10) and the next station (station 12) of the station in the downward direction of the non-main line, the location information of station 20 on the bus line operation diagram is determined as follows: Fig.18 As shown, and outside the main line, that is, the ordinate of the position of station 20 on the bus line operation diagram is smaller than the ordinate of station 11 on the main line, and is between stations 10 and 12.

[0124] In one possible implementation, the method in the present application also includes: based on the location information of each station on the main sub-line and non-main sub-line on the bus route operation map, determining the location information of adjacent stations of each station, and connecting the station and the adjacent stations.

[0125] In specific implementation, if the main sub-line and non-main sub-line stations in the line are as follows Fig.17 The sites shown in FIG. 1 are the sites 18 and 5 that are adjacent to site 17 on the non-main sub-line. Therefore, site 17 is connected to site 18, and site 17 is connected to site 5. The adjacent sites of site 18 on the non-main sub-line are site 2 and site 17. Therefore, site 18 is connected to site 17, and site 18 is connected to site 2. Thus, each site is connected to the adjacent site, and the following is obtained: Fig.17 The bus route map shown.

[0126] If the main sub-line and non-main sub-line stations in the line are as follows Fig.18As shown in the figure, the adjacent site of site 21 on the non-main line is site 13, so site 21 is connected to site 13. At the same time, because site 21 has only one adjacent site in the downstream direction, the other side does not need to be connected. As the terminal station in the downstream and upstream directions of the non-main line, each site is connected to the adjacent site, and the following is obtained: Fig.18 The bus route map shown.

[0127] Based on the description above, the station information of each station on a main sub-line and at least one non-main sub-line in the line is obtained; the station information includes the station name and the vehicle travel direction of the station; then based on the station information of each station included in the main sub-line of the line, the station pairing result on the main sub-line and the position information of each station on the bus line operation map are determined; for each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map are determined; based on the station pairing result on the main sub-line and the position information of each station on the bus line operation map, as well as the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle travel direction to generate a bus line operation map corresponding to the line.

[0128] Therefore, it is possible to accurately identify the different stations in multiple sub-lines and determine their positions in the bus route operation diagram, saving a lot of work for the staff, and quickly and accurately adjust the route operation diagram after dispatching the vehicle. It can accurately reflect the direction of the route and the current real-time position of the vehicle, and assist the dispatcher in accurately dispatching the vehicle.

[0129] Refer to the following Fig.19 To describe an electronic device 1900 provided by an embodiment of the present application based on the same inventive concept. Fig.19 The electronic device is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0130] like Fig.19 As shown, the components of the electronic device 1900 may include but are not limited to: the at least one processor 1901 mentioned above, the at least one memory 1902 mentioned above, and a bus 1903 connecting different system components (including the memory 1902 and the processor 1901).

[0131] Bus 1903 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0132] The memory 1902 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1921 or a cache memory 1922 , and may further include a read-only memory (ROM) 1923 .

[0133] Memory 1902 may also include a program / utility 1925 having a set (at least one) of program modules 1924, such program modules 1924 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.

[0134] The electronic device 1900 may also communicate with one or more external devices 1904 (e.g., keyboards, pointing devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 1900, or with any device that enables the electronic device 1900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1905. Furthermore, the electronic device 1900 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), or a public network, such as the Internet) through a network adapter 1906. Fig.19 As shown, the network adapter 1906 communicates with other modules for the regional controller via the bus 1903. It should be understood that, although not shown in the figure, other hardware or software modules can be used in conjunction with the electronic device 1900, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0135] The processor 1901 is specifically configured to execute the following processes:

[0136] Acquire station information of each station on a plurality of lines; each of the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station;

[0137] Perform the following operations for each line:

[0138] Based on the station information of each station included in the main and sub-lines of the line, determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram;

[0139] For each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, determine the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map;

[0140] Based on the station pairing results on the main sub-line and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus route operation diagram corresponding to the line.

[0141] In a possible implementation manner, the vehicle travel direction includes an upward direction and a downward direction;

[0142] The processor 1901 is specifically configured to: based on the vehicle driving direction of each station on the main and sub-lines, sort each station passed by the vehicle according to the upward direction to obtain a first station set; and sort each station passed by the vehicle according to the downward direction to obtain a second station set;

[0143] According to the site name of each site in the first site set and the second site set, each site included in the main sub-line is paired to obtain the site pairing result on the main sub-line and the location information of each site on the bus line operation diagram.

[0144] In a possible implementation manner, the processor 1901 is specifically configured to:

[0145] Traverse each site in the first site set and each site in the second site set in turn:

[0146] Based on the site name of each site, if it is detected that there are sites with the same site name in the first site set and the second site set, the two sites with the same site name are successfully paired, and the positions of the two sites with the same site name on the bus line operation map are determined to be relative positions; the relative position indicates that the site in the upward direction and the site in the downward direction have the same horizontal coordinate on the bus line operation map;

[0147] Based on the site name of each site, if it is determined that the second site set and the first site set have sites with different site names, the pairing of the sites with different site names is unsuccessful, and the location information of the site on the bus route operation map is determined based on the location information of the previous successfully paired site of the site in the vehicle driving direction of the site on the bus route operation map and the location information of the next successfully paired site of the site on the bus route operation map.

[0148] In a possible implementation manner, the processor 1901 is further configured to:

[0149] If the site pairing is unsuccessful and the vehicle driving direction of the site is in the upward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the downward direction;

[0150] If the site pairing is unsuccessful and the vehicle driving direction of the site is a downward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the upward direction.

[0151] In a possible implementation manner, the processor 1901 is further configured to:

[0152] If there are two sites with different site names in the first site set and the second site set, obtaining actual location information of the two sites;

[0153] If it is determined that the positions of the two stations on the bus route operation map are relative positions based on the actual position information of the two stations, the horizontal coordinate of the position of the first station on the bus route operation map is subtracted from a preset value, and the horizontal coordinate of the position of the second station on the bus route operation map is added with a preset value, so as to obtain the modified positions of the two stations on the bus route operation map respectively.

[0154] In a possible implementation manner, the processor 1901 is specifically configured to:

[0155] If it is determined that the station name of the non-main sub-line is the same as that of the station on the main sub-line, then the station pairing result of the station on the main sub-line and the position information of the station on the bus line operation map are determined to be the station pairing result of the station on the non-main sub-line and the position information of the station on the bus line operation map;

[0156] If it is determined that the station names of the non-main line and the stations on the main line are different, it is determined that the vertical coordinates of the positions of the non-main line stations on the bus line operation diagram are greater or smaller than the vertical coordinates of each station on the main line.

[0157] In a possible implementation manner, the vehicle driving direction includes an upward direction and a downward direction; the processor 1901 is further used for: if the vehicle driving direction of the station is the upward direction, determining that there is a station with the same station name as the station in the downward direction, and determining that the positions of the two stations with the same station name on the bus line operation map are relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map;

[0158] If the vehicle driving direction of the station is the upward direction, it is determined that there is no station with the same station name as the station in the downward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the upward direction;

[0159] If the vehicle driving direction of the station is the downward direction, it is determined that there is a station with the same station name as the station in the upward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map;

[0160] If the vehicle travel direction of the station is the downward direction, it is determined that there is no station with the same station name as the station in the upward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the downward direction;

[0161] In a possible implementation manner, the processor 1901 is further configured to:

[0162] Based on the location information of each station on the main sub-line and the non-main sub-line on the bus line operation diagram, the location information of the adjacent stations of each station is determined, and the station and the adjacent stations are connected.

[0163] like Fig. 20 As shown, based on the same inventive concept as the embodiment of the present application, the embodiment of the present application provides a device for generating a bus route operation diagram, the device comprising:

[0164] The acquisition module 2001 is used to acquire the site information of each site on a plurality of routes; each of the plurality of routes comprises a main sub-line and at least one non-main sub-line; the site information comprises the site name and the vehicle travel direction of the site;

[0165] Perform the following operations for each line:

[0166] A pairing module 2002 is used to determine the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram based on the station information of each station included in the main and sub-lines of the line;

[0167] The pairing module 2002 is used for determining, for each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map;

[0168] The generation module 2003 is used to connect the stations on the main sub-line and the stations on the non-main sub-line in sequence according to the vehicle travel direction based on the station pairing results on the main sub-line and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation diagram, to generate a bus route operation diagram corresponding to the line.

[0169] In a possible implementation manner, the vehicle travel direction includes an upward direction and a downward direction; the pairing module 2002 is specifically configured to:

[0170] Based on the vehicle travel direction of each station on the main and sub-lines, each station that the vehicle passes through is sorted according to the upward direction to obtain a first station set; and each station that the vehicle passes through is sorted according to the downward direction to obtain a second station set;

[0171] According to the site name of each site in the first site set and the second site set, each site included in the main sub-line is paired to obtain the site pairing result on the main sub-line and the location information of each site on the bus line operation diagram.

[0172] In a possible implementation manner, the pairing module 2002 is specifically configured to:

[0173] Traverse each site in the first site set and each site in the second site set in turn:

[0174] Based on the site name of each site, if it is detected that there are sites with the same site name in the first site set and the second site set, the two sites with the same site name are successfully paired, and the positions of the two sites with the same site name on the bus line operation map are determined to be relative positions; the relative position indicates that the site in the upward direction and the site in the downward direction have the same horizontal coordinate on the bus line operation map;

[0175] Based on the site name of each site, if it is determined that the second site set and the first site set have sites with different site names, the pairing of the sites with different site names is unsuccessful, and the location information of the site on the bus route operation map is determined based on the location information of the previous successfully paired site of the site in the vehicle driving direction of the site on the bus route operation map and the location information of the next successfully paired site of the site on the bus route operation map.

[0176] In a possible implementation manner, the pairing module 2002 is further configured to:

[0177] If the site pairing is unsuccessful and the vehicle driving direction of the site is in the upward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the downward direction;

[0178] If the site pairing is unsuccessful and the vehicle driving direction of the site is a downward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the upward direction.

[0179] In a possible implementation manner, the pairing module 2002 is further configured to:

[0180] If there are two sites with different site names in the first site set and the second site set, obtaining actual location information of the two sites;

[0181] If it is determined that the positions of the two stations on the bus route operation map are relative positions based on the actual position information of the two stations, the horizontal coordinate of the position of the first station on the bus route operation map is subtracted from a preset value, and the horizontal coordinate of the position of the second station on the bus route operation map is added with a preset value, so as to obtain the modified positions of the two stations on the bus route operation map respectively.

[0182] In a possible implementation manner, the pairing module 2002 is specifically configured to:

[0183] If it is determined that the station name of the non-main sub-line is the same as that of the station on the main sub-line, then the station pairing result of the station on the main sub-line and the position information on the bus line operation map are determined to be the station pairing result of the station on the non-main sub-line and the position information on the bus line operation map;

[0184] If it is determined that the station names of the non-main line and the stations on the main line are different, it is determined that the vertical coordinates of the positions of the non-main line stations on the bus line operation diagram are greater or smaller than the vertical coordinates of each station on the main line.

[0185] In a possible implementation manner, the vehicle travel direction includes an upward direction and a downward direction; the pairing module 2002 is further used to:

[0186] If the vehicle driving direction of the station is the upward direction, it is determined that there is a station with the same station name as the station in the downward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map;

[0187] If the vehicle driving direction of the station is the upward direction, it is determined that there is no station with the same station name as the station in the downward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the upward direction;

[0188] If the vehicle driving direction of the station is the downward direction, it is determined that there is a station with the same station name as the station in the upward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map;

[0189] If the vehicle travel direction of the station is the downward direction, it is determined that there is no station with the same station name as the station in the upward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the downward direction;

[0190] In a possible implementation, the generation module 2003 is also used to: determine the location information of adjacent sites of each site based on the location information of each site on the main sub-line and the non-main sub-line on the bus route operation diagram, and connect the site and the adjacent site.

[0191] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by a processor to complete the method for generating the above-mentioned bus route operation diagram. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0192] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, any method of generating a bus route operation diagram as provided in the present application is implemented.

[0193] In an exemplary embodiment, various aspects of a method for generating a bus route operation diagram provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method for generating a bus route operation diagram according to various exemplary embodiments of the present application described above in this specification.

[0194] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0195] The program product of the method for generating a bus route operation diagram of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0196] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0197] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0198] The program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "like" language or similar programming languages. The program code may be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or a server. In cases involving remote electronic devices, the remote electronic device may be connected to the user electronic device via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external electronic device (e.g., via the Internet using an Internet service provider).

[0199] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0200] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0201] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.

[0202] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0203] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0204] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0206] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for generating a bus route operation diagram, characterized in that: The method comprises: Acquire station information of each station on a plurality of lines; each of the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station; Perform the following operations for each line: Based on the station information of each station included in the main and sub-lines of the line, determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram; For each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, determine the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map; Based on the station pairing results on the main sub-line and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus route operation diagram corresponding to the line.

2. The method according to claim 1, characterized in that The vehicle travel direction includes an upward direction and a downward direction; The step of determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram based on the station information of each station included in the main and sub-lines of the line includes: Based on the vehicle travel direction of each station on the main and sub-lines, each station that the vehicle passes through is sorted according to the upward direction to obtain a first station set; and each station that the vehicle passes through is sorted according to the downward direction to obtain a second station set; According to the site name of each site in the first site set and the second site set, each site included in the main sub-line is paired to obtain the site pairing result on the main sub-line and the location information of each site on the bus line operation diagram.

3. The method according to claim 2, characterized in that The step of pairing each station included in the main sub-line according to the station name of each station in the first station set and the second station set to obtain the station pairing result on the main sub-line and the location information of each station on the bus line operation diagram includes: Traverse each site in the first site set and each site in the second site set in turn: Based on the site name of each site, if it is detected that there are sites with the same site name in the first site set and the second site set, the two sites with the same site name are successfully paired, and the positions of the two sites with the same site name on the bus line operation map are determined to be relative positions; the relative position indicates that the site in the upward direction and the site in the downward direction have the same horizontal coordinate on the bus line operation map; Based on the site name of each site, if it is determined that the second site set and the first site set have sites with different site names, the pairing of the sites with different site names is unsuccessful, and the location information of the site on the bus route operation map is determined based on the location information of the previous successfully paired site of the site in the vehicle driving direction of the site on the bus route operation map and the location information of the next successfully paired site of the site on the bus route operation map.

4. The method according to claim 3, characterized in that The method further comprises: If the site pairing is unsuccessful and the vehicle driving direction of the site is in the upward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the downward direction; If the site pairing is unsuccessful and the vehicle driving direction of the site is a downward direction, a blank position of the site is automatically reserved at the same position of the horizontal coordinate in the upward direction.

5. The method according to claim 3, characterized in that The method further comprises: If there are two sites with different site names in the first site set and the second site set, obtaining actual location information of the two sites; If it is determined that the positions of the two stations on the bus route operation map are relative positions based on the actual position information of the two stations, the horizontal coordinate of the position of the first station on the bus route operation map is subtracted from a preset value, and the horizontal coordinate of the position of the second station on the bus route operation map is added with a preset value, so as to obtain the modified positions of the two stations on the bus route operation map respectively.

6. The method according to claim 1, characterized in that The step of determining the station pairing result on the non-main sub-line and the location information of each station on the bus line operation diagram according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line includes: If it is determined that the station name of the non-main sub-line is the same as that of the station on the main sub-line, then the station pairing result of the station on the main sub-line and the position information on the bus line operation map are determined to be the station pairing result of the station on the non-main sub-line and the position information on the bus line operation map; If it is determined that the station names of the non-main line and the stations on the main line are different, it is determined that the vertical coordinates of the positions of the non-main line stations on the bus line operation diagram are greater or smaller than the vertical coordinates of each station on the main line.

7. The method according to claim 6, characterized in that The vehicle travel direction includes an upward direction and a downward direction; After determining that the ordinate of the position of the station on the non-main line on the bus line operation diagram is greater than or less than the ordinate of each station on the main line, the method further includes: If the vehicle driving direction of the station is the upward direction, it is determined that there is a station with the same station name as the station in the downward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map; If the vehicle driving direction of the station is the upward direction, it is determined that there is no station with the same station name as the station in the downward direction, and the position information of the station on the bus line operation map is determined according to the position information of the previous station and the position information of the next station of the station in the upward direction; If the vehicle driving direction of the station is the downward direction, it is determined that there is a station with the same station name as the station in the upward direction, and the positions of the two stations with the same station name on the bus line operation map are determined to be relative positions; the relative position indicates that the station in the upward direction and the station in the downward direction have the same horizontal coordinate on the bus line operation map; If the vehicle travel direction of the station is the downward direction, it is determined that there is no station with the same station name as the station in the upward direction, and the location information of the station on the bus line operation map is determined based on the location information of the previous station and the next station of the station in the downward direction.

8. An electronic device, characterized in that: The electronic device includes at least one processor and at least one memory; wherein the memory stores a program code, and when the program code is executed by the processor, the processor performs the following process: Acquire station information of each station on a plurality of lines; each of the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station; Perform the following operations for each line: Based on the station information of each station included in the main and sub-lines of the line, determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram; For each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, determine the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map; Based on the station pairing results on the main sub-line and the location information of each station on the bus route operation diagram, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation diagram, the stations on the main sub-line and the stations on the non-main sub-line are connected in sequence according to the vehicle driving direction to generate a bus route operation diagram corresponding to the line.

9. A device for generating a bus route operation diagram, characterized in that: The device comprises: An acquisition module, used for acquiring station information of each station on a plurality of lines; each line in the plurality of lines comprises a main sub-line and at least one non-main sub-line; the station information comprises a station name and a vehicle travel direction of the station; Perform the following operations for each line: A pairing module, for determining the station pairing result on the main and sub-lines and the location information of each station on the bus line operation diagram based on the station information of each station included in the main and sub-lines of the line; The pairing module is used for determining, for each non-main sub-line of the line: according to the station information of each station included in the non-main sub-line and the station information of each station included in the main sub-line, the station pairing result on the non-main sub-line and the position information of each station on the bus line operation map; A generation module is used to connect the stations on the main sub-line and the stations on the non-main sub-line in sequence according to the vehicle driving direction based on the station pairing results on the main sub-line and the location information of each station on the bus route operation map, as well as the station pairing results on the non-main sub-line and the location information of each station on the bus route operation map, to generate a bus route operation map corresponding to the line.

10. A computer-readable storage medium, characterized in that: It includes program codes. When the program codes are run on a terminal device, the program codes are used to enable the terminal device to execute the steps of the method according to any one of claims 1 to 7.