Traffic evaluation index processing method and electronic equipment
By integrating internet traffic data, radar data, electronic traffic enforcement vehicle data, and detector traffic flow data, multi-dimensional traffic evaluation indicators are generated. This solves the problem of inaccurate calculations caused by single data sources in existing technologies, improves the accuracy of traffic evaluation indicators, and assists traffic police and designers in optimizing traffic.
Patent Information
- Application Number
- CN202410707100.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The current methods for calculating traffic evaluation indicators rely on a single data source, leading to inaccurate calculations.
By integrating internet traffic data, radar data, electronic traffic enforcement vehicle data, and traffic flow detected by traffic detectors, multi-dimensional traffic evaluation indicators are generated, including queue length of the first road segment, traffic flow of the first target object, or traffic index of the second target object.
It improves the accuracy of traffic evaluation indicators, enabling traffic police management and designers to better assist in providing traffic coordination and optimization solutions.
Smart Images

Figure CN118609359A
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation technology, and in particular to a method for processing traffic evaluation indicators and an electronic device. Background Art
[0002] Traffic evaluation indicators can be used to describe traffic conditions, such as congestion or slow traffic. Traffic evaluation indicators can help traffic police better predict the possibility of traffic accidents so that they can take preventive measures. At the same time, when dealing with traffic accidents, traffic police can also refer to traffic evaluation indicators to more objectively understand the causes and responsibilities of accidents and improve the efficiency of accident handling. In addition, traffic evaluation indicators can also provide traffic police with real-time traffic information, assist traffic police to adjust traffic command plans in a timely manner, divert traffic flow, and reduce traffic congestion and traffic accidents. Alternatively, traffic evaluation indicators can also provide reference for traffic planning, such as promoting traffic facility construction and traffic management improvement based on traffic indicator data. Therefore, traffic evaluation indicators are of great significance in the field of smart transportation.
[0003] In the related art, in the method of calculating the traffic evaluation index, the data source is relatively single, resulting in inaccurate calculation of the traffic evaluation index. Summary of the invention
[0004] In an exemplary embodiment of the present application, a method for processing a traffic evaluation index and an electronic device are provided to improve the accuracy of calculating the traffic evaluation index.
[0005] According to a first aspect of an exemplary embodiment, a method for processing a traffic evaluation index is provided, comprising:
[0006] In response to the user's traffic evaluation index generation operation, at least one traffic evaluation index is generated; wherein, at least one traffic evaluation index includes the queue length of the first road section, the flow of the first target object or the traffic index of the second target object; the first target object includes the first lane, the first road section, the first intersection or the first turn; the second target object includes the first lane, the first road section, the first intersection or at least one first sub-section included in the first road section; the queue length of the first road section is determined based on part or all of the Internet traffic data, radar data and electric police vehicle passing data associated with the first road section; the flow of the first target object is determined based on the detector flow detected by the flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection;
[0007] In response to the user's traffic evaluation index display operation, a first page is displayed; wherein the first page includes at least one traffic evaluation index.
[0008] According to a second aspect of the exemplary implementation, there is provided an electronic device, including a processor and a display screen;
[0009] The processor is configured to execute: generating at least one traffic evaluation index in response to a user's traffic evaluation index generation operation; wherein the at least one traffic evaluation index includes a queue length of a first road section, a flow rate of a first target object, or a traffic index of a second target object; the first target object includes a first lane, a first road section, a first intersection, or a first turn; the second target object includes a first lane, a first road section, a first intersection, or at least one first sub-section included in the first road section; the queue length of the first road section is determined based on part or all of Internet traffic data, radar data, and electric police vehicle passing data associated with the first road section; the flow rate of the first target object is determined based on the detector flow rate detected by a flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection;
[0010] The processor is further configured to execute: in response to a user's traffic evaluation index display operation, display a first page on a display screen; wherein the first page includes at least one traffic evaluation index.
[0011] According to a third aspect of an exemplary implementation, a device for processing a traffic evaluation index is provided, comprising:
[0012] A processing unit, used for: generating at least one traffic evaluation index in response to a user's traffic evaluation index generation operation; wherein the at least one traffic evaluation index includes a queue length of a first road section, a flow rate of a first target object, or a traffic index of a second target object; the first target object includes a first lane, a first road section, a first intersection, or a first turn; the second target object includes a first lane, a first road section, a first intersection, or at least one first sub-section included in the first road section; the queue length of the first road section is determined based on part or all of Internet traffic data, radar data, and electric police vehicle passing data associated with the first road section; the flow rate of the first target object is determined based on the detector flow rate detected by a flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection;
[0013] The processing unit is further used to: in response to the user's traffic evaluation index display operation, display the first page through the display unit; wherein the first page includes at least one traffic evaluation index.
[0014] According to a fourth aspect of the exemplary implementation, a computer storage medium is provided, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the method for processing traffic evaluation indicators as in the first aspect.
[0015] In an embodiment of the present application, Internet traffic data, radar data, electric police vehicle passing data, and detector flow detected by a flow detector are integrated to generate at least one traffic evaluation index. Among them, at least one traffic evaluation index includes the queue length of the first section, the flow of the first target object, or the traffic index of the second target object. The first target object here includes the first lane, the first section, the first intersection, or the first turn. The second target object here includes the first lane, the first section, the first intersection, or at least one first sub-section included in the first section. Specifically, the queue length of the first section is determined based on part or all of the Internet traffic data, radar data, and electric police vehicle passing data associated with the first section; the flow of the first target object is determined based on the detector flow detected by the flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section. Such a design obtains a traffic evaluation index that describes the traffic operation status in multiple dimensions. The traffic evaluation index obtained by fusing multi-source data is more accurate, and can better assist traffic police or designers of coordination optimization solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 An application scenario diagram of a traffic evaluation index processing provided by an embodiment of the present application is exemplarily shown;
[0018] Figure 2 A flowchart of a method for processing a traffic evaluation index provided in an embodiment of the present application is exemplified;
[0019] Figure 3 A schematic diagram of target object selection provided by an embodiment of the present application is exemplarily shown;
[0020] Figure 4A schematic diagram showing, by way of example, a type of traffic evaluation indicator selection provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of a first page provided by an embodiment of the present application is exemplarily shown;
[0022] Figure 6 A flow chart of a method for generating traffic indicators provided by an embodiment of the present application is exemplarily shown;
[0023] Figure 7 A flowchart of a method for calculating the queue length of a first road section provided in an embodiment of the present application is exemplarily shown;
[0024] Figure 8 A flow chart of a method for calculating a traffic index of a first lane provided in an embodiment of the present application is exemplarily shown;
[0025] Fig. 9 A flow chart of a method for calculating a traffic index of a first road section provided in an embodiment of the present application is exemplarily shown;
[0026] Fig.10 A flowchart of a method for calculating a fourth traffic index provided in an embodiment of the present application is exemplarily shown;
[0027] Fig.11 A complete schematic diagram of a generation process of a traffic evaluation index provided by an embodiment of the present application is exemplarily shown;
[0028] Fig.12 The schematic diagram of the structure of a traffic evaluation index processing device provided by an embodiment of the present application is exemplarily shown;
[0029] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is exemplarily shown. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions 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.
[0031] For ease of understanding, the terms involved in the embodiments of the present application are explained below:
[0032] (1) Road section: Two intersections constitute a road section. The intersection in the direction of vehicle entry is called the upstream intersection, and the intersection in the direction of vehicle exit is called the downstream intersection.
[0033] (2) Link can also be called a sub-segment. A segment can be divided into one, two or more links. Unless otherwise specified, the link and sub-segment in the embodiments of the present application have the same meaning.
[0034] (3) Intersection: An intersection consists of one or more directions, and each direction corresponds to a road section with the intersection as the downstream intersection.
[0035] (4) Turning, consisting of one or more lanes.
[0036] (5) Traffic index, traffic congestion index or traffic performance index (TPI), is a conceptual value that reflects whether the road is smooth or congested.
[0037] (6) Flink, an open source streaming computing framework, provides efficient, reliable and scalable data stream processing capabilities. It supports event-driven streaming computing models, can process data streams in real time and generate real-time results. It is a distributed computing framework that can execute tasks in parallel on multiple computing nodes. It provides high scalability, can process large-scale data and achieve horizontal expansion. Flink is widely used in the field of big data. In the embodiment of the present application, Flink is used to write an adapter for calculating traffic evaluation indicators, and the adapter is deployed on an electronic device to calculate the traffic evaluation indicators.
[0038] In view of the fact that the data sources of the methods used to calculate traffic indicators in the related technologies are relatively single, the calculation of traffic evaluation indicators is inaccurate. For example, in the related technologies, only Internet traffic data is used, which is determined based on the data of third-party maps and can be obtained based on the analysis of online car-hailing services, but lacks hardware equipment data, such as data from traffic detectors and radars; at the same time, basic information about intersection plans is also lacking, such as signal cycles and the green light time of a certain lane, etc.; for another example, the process of calculating traffic evaluation indicators in the related technologies is too long, in which the detector traffic and radar data are first written into the database and then read by the calculation program for fusion, resulting in a long calculation time.
[0039] To this end, an embodiment of the present application provides a method for processing traffic evaluation indicators, in which the calculated traffic evaluation indicators include the queue length of the first section, the flow of the first target object, or the traffic index of the second target object, taking into account Internet traffic data, radar data, electric police vehicle passing data, and the detector flow detected by the flow detector. The first target object here includes the first lane, the first section, the first intersection, or the first turn; the second target object includes the first lane, the first section, the first intersection, or at least one first sub-section included in the first section. Fusion of multi-source data can obtain more accurate multi-dimensional traffic evaluation indicators, which can better assist traffic police in management or assist designers in providing traffic coordination and optimization solutions.
[0040] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0041] refer to Figure 1 , shows an application scenario diagram of the processing of traffic evaluation indicators, in which a radar is shown, and the detector is not shown because it can usually be set underground. Figure 1 The figure is just an illustration.
[0042] 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.
[0043] Combine the following Figure 1 The application scenario shown is shown in Figure 2 A flowchart of a method for processing traffic evaluation indicators is shown to illustrate the technical solution provided in an embodiment of the present application.
[0044] S201: In response to a traffic evaluation index generation operation by a user, generate at least one traffic evaluation index.
[0045] S202: In response to the user's traffic evaluation index display operation, display the first page.
[0046] In S201, the user here can be a traffic policeman or a designer who proposes a traffic coordination optimization plan. If the user is a traffic policeman, the electronic device can be a terminal device set up in the command center or a portable terminal of the traffic policeman; if the user is a designer, the electronic device can be a terminal device used to generate a coordination optimization plan.
[0047] The electronic device generates at least one traffic evaluation index in response to the user's traffic evaluation index generation operation. The traffic evaluation index generation operation may be achieved by the user clicking a corresponding control in a web page.
[0048] Optionally, at least one traffic evaluation index includes the queue length of the first road section, the flow of the first target object, or the traffic index of the second target object; the first target object includes the first lane, the first road section, the first intersection, or the first turn; the second target object includes the first lane, the first road section, the first intersection, or at least one first sub-section included in the first road section. The "first" here is an example of any one of the multiple objects, and the calculation method of the relevant information of other objects is the same, which is not repeated here.
[0049] Among them, the queue length of the first road section is determined based on part or all of the Internet traffic data, radar data and electric police vehicle passing data associated with the first road section; the traffic of the first target object is determined based on the detector traffic detected by the traffic detector associated with the first target object; the traffic index of the second target object is determined based on the traffic status level of at least one first sub-section.
[0050] For the convenience of description, the first lane here is any one of the lanes included in the first section, the first intersection is the downstream intersection constituting the first section, and the first turn is any one of the turns at the first intersection. Other lanes, intersections or turns can be processed in the same way. This is just an example and no specific limitation is formed.
[0051] In S202, the electronic device displays at least one traffic evaluation indicator on a first page in response to a traffic indicator display operation by the user. The display format may be text, a table, or a graphical interface. In this way, the user can intuitively obtain at least one traffic evaluation indicator.
[0052] Figure 3 A schematic diagram of target object selection provided in an embodiment of the present application, wherein: Figure 3 (a) includes a "display" control, and the electronic device displays the display control in response to the user's operation. Figure 3 In (b), users can select different target objects, such as which lane, which intersection, which road section, which direction, or which sub-section’s traffic evaluation index to view.
[0053] Figure 4 A schematic diagram of a traffic evaluation index type selection provided in an embodiment of the present application, wherein: Figure 4 (a) in the figure provides different target objects for selection. Figure 4 (b) in Figure 1 provides different types of traffic evaluation indicators for selection. In this example, the user chooses to view the queue length of a certain road section.
[0054] Figure 5 A schematic diagram of a first page provided in an embodiment of the present application, wherein: Figure 5 (a) in the figure indicates that the traffic evaluation index selected by the user is queue length. Figure 5 (b) is a display page for queue length, which is displayed in text in this example. In actual application, it can also be displayed in icons or graphics. In this example, only one traffic evaluation index is displayed. In actual application, multiple traffic evaluation indexes of multiple target objects can also be displayed at the same time. This is just an example for illustration and does not constitute a specific limitation.
[0055] In an embodiment of the present application, Internet traffic data, radar data, electric police vehicle passing data, and detector flow detected by a flow detector are integrated to generate at least one traffic evaluation index. Among them, at least one traffic evaluation index includes the queue length of the first section, the flow of the first target object, or the traffic index of the second target object. The first target object here includes the first lane, the first section, the first intersection, or the first turn. The second target object here includes the first lane, the first section, the first intersection, or at least one first sub-section included in the first section. Specifically, the queue length of the first section is determined based on part or all of the Internet traffic data, radar data, and electric police vehicle passing data associated with the first section; the flow of the first target object is determined based on the detector flow detected by the flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section. Such a design obtains a traffic evaluation index that describes the traffic operation status in multiple dimensions. The traffic evaluation index obtained by fusing multi-source data is more accurate, and can better assist traffic police or designers of coordination optimization solutions.
[0056] In an optional embodiment, Figure 6 A flow chart of a method for generating traffic indicators provided in an embodiment of the present application, Figure 6 At least the following steps are included:
[0057] S601: Acquire data source data from a first distributed data processing platform and basic data from a first database.
[0058] Optionally, the data source data includes Internet traffic data, radar data, electric police vehicle passing data or detector flow data. Among them, Internet traffic data, for example, is data from a third-party map, radar data, for example, is image or video data from a radar set at an intersection, electric police vehicle passing data, for example, is vehicle passing data of each vehicle from the electric police equipment, and detector flow data, for example, is flow data from detectors of each lane. In addition, the basic data includes basic information of sections, sub-sections, lanes, turns and intersections, and the basic information includes, for example, information about the section itself, and mapping relationships between sections, sub-sections, lanes, turns and intersections. The basic data can be updated regularly every 30 minutes.
[0059] In an embodiment of the present application, the first distributed data processing platform can be a Kafka platform. In this way, by transmitting data source data through the first distributed data platform, the indicator calculation time is advanced compared to directly obtaining the data source from the data source database, thereby reducing the total indicator calculation time.
[0060] In addition, the first database can be a redis database, and the basic data can be stored in the redis database in advance. In this way, when calculating the indicators, it can be read directly from the redis database cache, reducing the total time of indicator calculation.
[0061] S602: Generate at least one traffic evaluation index based on basic data and / or data source data.
[0062] The process of obtaining basic data and / or data source data in the above manner to generate at least one traffic evaluation index reduces the total index calculation time and improves the speed of index calculation.
[0063] Since there are many types of traffic evaluation indicators, the following application examples illustrate the calculation process of each traffic evaluation indicator:
[0064] In the first case, the traffic evaluation index is the queue length of the first road section.
[0065] Figure 7 A flow chart of a method for calculating the queue length of a first section provided in an embodiment of the present application, Figure 7 At least the following steps are included:
[0066] S701: Calculate the length of the first queue based on Internet traffic data, calculate the length of the second queue based on Internet traffic data and radar data, and calculate the length of the third queue based on Internet traffic data and electric police vehicle passing data.
[0067] In this step, the process of calculating the first queue length is as follows:
[0068] The traffic status level of each sub-segment included in the road section is extracted from the Internet traffic data, wherein if the traffic status of the sub-segment is unblocked, the traffic status level is 1; if the traffic status of the sub-segment is slow, the traffic status level is 2; if the traffic status of the sub-segment is congested, the traffic status level is 3; if the traffic status of the sub-segment is severely congested, the traffic status level is 4. A corresponding weight is configured in advance for each traffic status level, so the first queue length can be calculated by applying the traffic status level of each sub-segment included in the road section and the weight corresponding to each traffic status level.
[0069] In a specific example, the formula for calculating the first queue length is as follows:
[0070] L 1路段 =0+0.8∑l link=2 +∑l link=3 +∑l link=4 ;
[0071] Among them, L 1路段 is the first queue length; ∑l link=2 represents the sum of the lengths of all links with a congestion state of 2; ∑l link=3 represents the sum of the lengths of all links with a congestion state of 3; ∑l link=4 Indicates the sum of the lengths of all links with a congestion state of 4. In this example, the preconfigured weights are 1, 0.8, 1, and 1.
[0072] In this step, the process of calculating the second queue length is as follows:
[0073] In a specific example, the formula for calculating the second queue length is as follows:
[0074] L 2路段 =αL 1路段 +(1-α)L 雷达 ;
[0075] Among them, L 2路段 is the second queue length, α is the weight, L 雷达 is the queue length estimated based on radar data. When the traffic status level of the first link of the intersection stop line is 2 or above, α can be 0.5; when the traffic status level of the first link of the intersection stop line is 1, α can be zero. L 雷达 =max(L 2车道i ), i represents the lanes included in the road section, L 2车道i is the lane queue length estimated based on radar data.
[0076] In this step, the process of calculating the third queue length is as follows:
[0077] In a specific example, the formula for calculating the third queue length is as follows:
[0078] L 3路段 =αL 1路段 +(1-α)L e
[0079] Among them, L 2路段 is the third queue length, α is the weight, L e is the queue length estimated based on the traffic data of the electric police. When the traffic status level of the first link of the intersection stop line is 2 or above, α can be 0.85; when the traffic status level of the first link of the intersection stop line is 1, α can be zero. L e =max(L 3车道i ), i represents the lanes included in the road section, L 3车道i It is the lane queue length estimated based on the electric police vehicle passing data.
[0080] In this way, different traffic data can be integrated to obtain the queue length of the first road section under three calculation methods.
[0081] S702: If the length of the second queue is not zero, determine the length of the second queue as the length of the queue of the first section; otherwise, if the length of the third queue is not zero, determine the length of the third queue as the length of the queue of the first section.
[0082] S703: If the second queue length and the third queue length are both zero, determine the first queue length as the queue length of the first section.
[0083] Taking into account that the data sources of the first queue length, the second queue length and the third queue length are different, when determining the queue length of the first section, the second queue length can be preferentially selected as the queue length of the first section; when the second queue length and the third queue length are both zero, the first queue length will be used as the queue length of the first section.
[0084] In the second case, the traffic evaluation index is the flow rate of the first target object.
[0085] Since the first target object includes the first lane, the first road section, the first intersection or the first turn, the calculation process of the flow rate of the first lane, the first road section, the first intersection and the first turn is described respectively:
[0086] For the first lane: if the detector flow detected by the traffic detector is not zero, the detector flow is determined to be the corresponding lane flow; otherwise, when the electric police flow determined by the electric police passing data is not zero, the electric police flow is determined to be the lane flow of the first lane.
[0087] Among them, flow refers to the number of traffic entities passing through a certain location or section within a unit time. In the embodiment of the present application, the unit time of flow detection can be exemplified by 5 minutes. Lane flow is divided into detector flow and electric alarm flow. Among them, detector flow refers to the lane flow transmitted from the flow detector, and electric alarm flow refers to the number of electric alarm vehicles passing on the first lane within 5 minutes. In the embodiment of the present application, the lane flow of the first lane is preferably the detector flow, and the electric alarm flow is used when the flow detector flow is zero and the electric alarm flow is non-zero.
[0088] For the first turn: when the first turn does not include a composite lane, the flow rates corresponding to each lane included in the first turn are summed as the flow rate of the first turn; when the first turn includes a composite lane, the flow rate of the first turn is obtained based on the attributes of the composite lane and the pre-set ratio of each attribute.
[0089] A1. The first turn does not include a composite lane. In this case, the flow rate corresponding to each lane included in the first turn is taken as the flow rate of the first turn;
[0090] A2. The first turn includes a composite lane:
[0091] A2-1. When the composite lane attribute is straight-right, the straight and right turns each take 50% of the composite lane flow.
[0092] A2-2. When the composite lane attribute is straight left, the straight and left turns each take 50% of the composite lane flow.
[0093] A2-3. When the composite lane attribute is straight or left / right, the straight lane takes 50% of the composite lane flow; the left turn and right turn each take 25% of the composite lane flow (configurable).
[0094] A2-4. When the composite lane attribute is left or right, the left turn and right turn each take 50% of the composite lane flow.
[0095] The above ratios can be configured according to actual conditions. They are only given as examples and do not constitute specific limitations.
[0096] For the first road section: determine the sum of the flow rates corresponding to the lanes included in the first road section as the flow rate of the first road section.
[0097] For the first intersection: determine the sum of the lane flow rates in each direction corresponding to the first intersection as the flow rate of the first intersection.
[0098] In the third case, the traffic evaluation indicator is the traffic index of the second target object.
[0099] Since the second target object includes the first lane, the first road section, the first intersection or at least one first sub-section included in the first road section, the calculation process of the traffic index of the first lane, the first road section, the first intersection and the first sub-section is described respectively:
[0100] For the first sub-segment: according to the sub-segment speed of the first sub-segment and the correspondence between the pre-set sub-segment speed and the traffic index, the traffic index of the first sub-segment is determined. Table 1 is a conversion relationship table of link speed and traffic index TPI provided in an embodiment of the present application. Through Table 1, the traffic index of any sub-segment can be determined.
[0101] Table 1 Conversion relationship between link speed and traffic index TPI
[0102]
[0103] Wherein, v represents the link speed, which can be directly obtained from Internet traffic data. According to Table 1, the traffic indication of any link can be obtained when the link speed of the link is known.
[0104] For the first lane: See Figure 8 , the process of calculating the traffic index of the first lane includes at least the following steps:
[0105] S801: Calculate a first traffic index according to the travel time ratio of the first lane and a predetermined corresponding relationship between the travel time ratio and the traffic index.
[0106] Among them, Table 2 is a correspondence table between travel time ratio and traffic index provided in an embodiment of the present application. Through Table 2, the traffic index corresponding to any travel time ratio can be calculated.
[0107] Table 2 Correspondence between travel time ratio and traffic index
[0108]
[0109] The ratio of the travel time of the first lane to the free flow travel time can be used as the travel time ratio of the first lane. In this example, the free flow travel time is preferably estimated by the police passing data, and then the Internet traffic data is selected. In addition, when the lane travel time ratio is less than 1, it can be calculated as 1.
[0110] S802: Calculate a second traffic index according to the saturation of the first lane and a preset correspondence between the saturation and the traffic index.
[0111] Among them, Table 3 is a correspondence table between travel time ratio and saturation provided in an embodiment of the present application. Through Table 3, the traffic index corresponding to any saturation can be calculated.
[0112] Table 3 Correspondence between travel time ratio and saturation
[0113]
[0114] The calculation method of the first lane travel time ratio can refer to the above-mentioned embodiment, which will not be described in detail here. In addition, the saturation can be calculated based on the flow data detected by the detector.
[0115] S803: Determine the traffic index of the first lane based on the first traffic index and the second traffic index according to the traffic state levels respectively indicated by the first traffic index and the second traffic index.
[0116] Among them, if the traffic status corresponding to the first traffic index and the traffic status corresponding to the second traffic index are both congested, the average value of the first traffic index and the second traffic index is determined as the traffic index of the first lane; if one of the first traffic index and the second traffic index corresponds to congested traffic and the other corresponds to non-congested traffic, the smaller one of the first traffic index and the second traffic index is taken as the traffic index of the first lane; if the traffic status corresponding to the first traffic index and the second traffic index are both non-congested, the first traffic index is used as the traffic index of the first lane; if the first traffic index has data and the second traffic index has no data, the first traffic index is used as the traffic data of the first lane; if both the first traffic index and the second traffic index have no data, the traffic index of the first lane cannot be determined.
[0117] For the first section: see Fig. 9 , the process of calculating the traffic index of the first road section includes at least the following steps:
[0118] S901: Calculate a third traffic index according to the traffic status level of each sub-road section included in the first road section, the length of each sub-road section and the length of the road section.
[0119] Wherein, B1: if the traffic status levels of all sub-road sections included in the first road section are all level 1, then the average value of the traffic index of each sub-road section is determined to be the third traffic index. Wherein, the first level may be traffic level 1.
[0120] B2: If the first road section includes at least two sub-road sections with traffic status levels of the second level or above, the third traffic index is determined according to the relationship between the target length and the length of the first road section. The second level may be traffic level 2.
[0121] In a specific example, the formula for determining the third traffic index is as follows:
[0122]
[0123] Among them, TPI 路段 is the third traffic index, l is the length of the first road section, and x is an intermediate variable, which can be called the target length. The calculation formula is:
[0124] Among them, ∑l link=1 The sum of the lengths of all links whose congestion status is 1; ∑l link=2 is the sum of the lengths of all links with a congestion state of 2; ∑l link=3 The sum of the lengths of all links with a congestion status of 3; ∑l link=4 is the sum of the lengths of all links with a congestion state of 4. Among them, the coefficient Configurable.
[0125] S902: Calculate a fourth traffic index according to the flow rate of each lane included in the first road section and the traffic index of each lane.
[0126] Fig.10 A flow chart of a method for calculating a fourth traffic index provided in an embodiment of the present application, Fig.10 At least the following steps are included:
[0127] S902-1: Calculate the sum of the products of the flow rates of the lanes included in the first road section and the corresponding traffic indexes as the first parameter.
[0128] Among them, the calculation formula of the first parameter is: ∑ i∈路段某车道 TPI 车道i *q 车道i ;q 车道i is the flow rate of lane i in the first section (pcu / h), IPT 车道i is the traffic index of lane i in the first road segment.
[0129] S902-2: Calculate the sum of the flow rates of the lanes included in the first road section as the second parameter.
[0130] The calculation formula of the second parameter is: i∈路段某车道 q 车道i ;q 车道i is the flow rate of lane i in the first road section (pcu / h).
[0131] S902-3: Determine a ratio of the first parameter to the second parameter as a fourth traffic index.
[0132] Therefore, the fourth traffic index can be obtained by the following formula:
[0133]
[0134] S903: If the third traffic index is not zero, determine the third traffic index as the traffic index of the first road section; otherwise, when the fourth traffic index is not zero, determine the fourth traffic index as the traffic index of the first road section.
[0135] Among them, the third traffic index is preferably selected as the traffic index of the first road section, and the fourth traffic index is secondly selected as the traffic index of the first road section.
[0136] For the first intersection: determine the traffic index of the first intersection according to the road type of the intersection section constituting the first intersection. Table 4 is a correspondence between the road type of the intersection section of the intersection and the method of calculating the traffic index provided by an embodiment of the present application. According to Table 4, an algorithm corresponding to the classification of the intersection road type can be selected to calculate the traffic index of the intersection.
[0137] Table 4 Correspondence between road types at intersections and methods for calculating traffic indices
[0138]
[0139]
[0140] If there is a case where the road type is not marked, the unmarked road type is treated as a road of the same level. Table 5 is a schematic table of road type level classification provided in an embodiment of the present application. Through Table 5, the level corresponding to any road type can be checked.
[0141] Table 5 Schematic diagram of road type level classification
[0142] level Road Type Level 1 1 expressway, 2 trunk roads, 4 highways, 8 national roads, 12 provincial roads Level 2 3 secondary roads, 6 expressway auxiliary roads, 7 independent auxiliary roads, 10 county roads Level 3 5 branch roads, 11 township roads, 12 general roads
[0143] Fig.11 A complete schematic diagram of the generation process of a traffic evaluation index provided in an embodiment of the present application, wherein Internet traffic data can be link speed or traffic status, and radar data can be lane queue length, number of stops, or delays, etc. The calculation process of each traffic evaluation index is implemented by the corresponding adapter, and each adapter is written in flink. In addition to reading the data source data on kafka, each adapter also reads basic data from the redis cache data.
[0144] Fig.11In the figure, the process in the dotted box is the calculation process of the traffic evaluation index, and the process in the dotted box is the preparation process for data transmission. In the preparation process for data transmission, different adapters are also involved in data processing. For example, Internet traffic data is transmitted to the Internet traffic data forwarding adapter through the File Transfer Protocol (FTP) or the Hypertext Transfer Protocol (HTTP), and then transmitted to the link index calculation adapter through the Kakfa platform by the Internet traffic data forwarding adapter. The link index here can be the link speed or the traffic index. Radar data can be directly transmitted to the lane / turn / section / intersection fusion calculation adapter through the Kafka platform. The electric police vehicle passing data can be transmitted to the electric police flow calculation adapter through the Kafka platform to calculate the lane electric police flow, and the lane vehicle passing data adapter is used to filter out the travel time of the vehicles passing through the lane.
[0145] For lane, turn, road section, intersection fusion calculation adapter, a 5-minute window is used with a 2.5-minute delay. Group calculations are performed according to intersection numbers. Each traffic evaluation index is calculated in sequence. Each traffic evaluation index is calculated from lane, turn, road section, intersection from low dimension to high dimension.
[0146] In actual application, you can also use Flink to write an adapter to perform all the functions of the above adapters. This is just an example and does not constitute a specific limitation.
[0147] In the embodiment of the present application, the big data flink framework is used to integrate Internet traffic data, radar data, electric police vehicle passing data and detector flow data by taking advantage of the characteristics and advantages of various data sources to calculate more accurate traffic evaluation indicators of various types, thereby assisting traffic police in evacuating traffic or handling accidents, and assisting designers in specifying optimized coordination plans.
[0148] like Fig.12 As shown, based on the same inventive concept, an embodiment of the present application provides a structural schematic diagram of a traffic evaluation index processing device, including a processing unit 121 and a display unit 122.
[0149] The processing unit 121 is used to: generate at least one traffic evaluation index in response to a user's traffic evaluation index generation operation; wherein the at least one traffic evaluation index includes a queue length of a first road section, a flow rate of a first target object, or a traffic index of a second target object; the first target object includes a first lane, a first road section, a first intersection, or a first turn; the second target object includes a first lane, a first road section, a first intersection, or at least one first sub-section included in the first road section; the queue length of the first road section is determined based on part or all of Internet traffic data, radar data, and electric police vehicle passing data associated with the first road section; the flow rate of the first target object is determined based on the detector flow rate detected by a flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection;
[0150] The processing unit 121 is further configured to: in response to a user's traffic evaluation index display operation, display a first page through the display unit 122; wherein the first page includes at least one traffic evaluation index.
[0151] In an optional implementation manner, the processing unit 121 is specifically configured to:
[0152] Acquire data source data from the first distributed data processing platform and basic data from the first database; wherein the data source data includes Internet traffic data, radar data, electric police vehicle passing data or detector flow data; the basic data includes basic information of road sections, sub-road sections, lanes, turns and intersections;
[0153] At least one traffic evaluation index is generated based on the basic data and / or the data source data.
[0154] In an optional implementation, if the traffic evaluation index is the queue length of the first road section, the processing unit 121 is further configured to calculate the queue length of the first road section in the following manner:
[0155] The length of the first queue is calculated based on Internet traffic data, the length of the second queue is calculated based on Internet traffic data and radar data, and the length of the third queue is calculated based on Internet traffic data and electronic police vehicle passing data;
[0156] If the length of the second queue is not zero, the length of the second queue is determined to be the length of the queue of the first section; otherwise, if the length of the third queue is not zero, the length of the third queue is determined to be the length of the queue of the first section;
[0157] If the second queue length and the third queue length are both zero, the first queue length is determined to be the queue length of the first section.
[0158] In an optional implementation manner, the processing unit 121 is specifically configured to:
[0159] Calculate the first queue length based on Internet traffic data;
[0160] calculating a second queue length by applying the first queue length, the queue length determined based on radar data, and respective weights;
[0161] The third queue length is calculated based on Internet traffic data and police vehicle passing data, including:
[0162] Calculate the first queue length based on Internet traffic data;
[0163] The third queue length is calculated by applying the first queue length, the queue length determined based on the electronic police vehicle passing data, and their respective weights.
[0164] In an optional implementation manner, the processing unit 121 is specifically configured to:
[0165] The first queue length is calculated by applying the traffic status level of each sub-road section included in the road section and the weight corresponding to each traffic status level.
[0166] In an optional implementation, if the traffic evaluation index is the flow of the first target object, the processing unit 121 is further configured to calculate the flow of the first target object in the following manner:
[0167] If the detector flow detected by the flow detector is not zero, the detector flow is determined to be the corresponding lane flow; otherwise, when the electric police flow determined by the electric police passing vehicle data is not zero, the electric police flow is determined to be the lane flow of the first lane; or
[0168] When the first turn does not include a composite lane, the flow rate corresponding to each lane included in the first turn is summed up as the flow rate of the first turn; when the first turn includes a composite lane, the flow rate of the first turn is obtained according to the attributes of the composite lane and the preset ratio of each attribute; or
[0169] Determine the sum of the flow rates corresponding to the lanes included in the first road section as the flow rate of the first road section; or
[0170] The sum of the lane flow rates in each direction corresponding to the first intersection is determined as the flow rate of the first intersection.
[0171] In an optional implementation, if the traffic evaluation index is a traffic index, the processing unit 121 is further configured to calculate the traffic index of the second target object in the following manner:
[0172] Determine the traffic index of the first sub-road section according to the sub-road section speed of the first sub-road section and a predetermined correspondence between the sub-road section speed and the traffic index; or
[0173] Calculate the first traffic index according to the travel time ratio of the first lane and the correspondence between the travel time ratio and the traffic index; calculate the second traffic index according to the saturation of the first lane and the correspondence between the saturation and the traffic index; determine the traffic index of the first lane based on the first traffic index and the second traffic index according to the traffic state levels respectively represented by the first traffic index and the second traffic index; or
[0174] Calculate a third traffic index according to the traffic status level of each sub-segment included in the first road section, the length of each sub-segment and the length of the road section; calculate a fourth traffic index according to the flow of each lane included in the first road section and the traffic index of each lane; if the third traffic index is not zero, determine the third traffic index as the traffic index of the first road section; otherwise, if the fourth traffic index is not zero, determine the fourth traffic index as the traffic index of the first road section; or
[0175] A traffic index of the first intersection is determined according to road types of intersecting road sections constituting the first intersection.
[0176] In an optional implementation manner, the processing unit 121 is specifically configured to:
[0177] If the traffic status levels of all sub-road sections included in the first road section are all at the first level, then determining the average value of the traffic index of each sub-road section as the third traffic index;
[0178] If the first road section includes at least two sub-sections with traffic status levels of the second level or above, the third traffic index is determined based on the relationship between the target length and the length of the first road section; wherein the target length is the weighted sum of the lengths of each sub-section at different congestion levels.
[0179] In an optional implementation manner, the processing unit 121 is specifically configured to:
[0180] Calculate the sum of the products of the flow rates of the lanes included in the first road section and the corresponding traffic indexes as the first parameter;
[0181] Calculate the sum of the flow rates of the lanes included in the first road section as the second parameter;
[0182] A ratio of the first parameter to the second parameter is determined as a fourth traffic index.
[0183] Since the device is the device in the method in the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0184] like Fig.13 As shown, based on the same inventive concept, an embodiment of the present application provides an electronic device, including a processor 131 and a display screen 132 .
[0185] The processor 131 is configured to execute: generating at least one traffic evaluation index in response to a user's traffic evaluation index generation operation; wherein the at least one traffic evaluation index includes a queue length of a first road section, a flow rate of a first target object, or a traffic index of a second target object; the first target object includes a first lane, a first road section, a first intersection, or a first turn; the second target object includes a first lane, a first road section, a first intersection, or at least one first sub-section included in the first road section; the queue length of the first road section is determined based on part or all of the Internet traffic data, radar data, and electric police vehicle passing data associated with the first road section; the flow rate of the first target object is determined based on the detector flow rate detected by the flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of at least one first sub-section; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection;
[0186] The processor 131 is further configured to execute: in response to the user's traffic evaluation index display operation, display a first page on the display screen 132; wherein the first page includes at least one traffic evaluation index.
[0187] In an optional implementation manner, the processor 131 is specifically configured to:
[0188] Acquire data source data from the first distributed data processing platform and basic data from the first database; wherein the data source data includes Internet traffic data, radar data, electric police vehicle passing data or detector flow data; the basic data includes basic information of road sections, sub-road sections, lanes, turns and intersections;
[0189] At least one traffic evaluation index is generated based on the basic data and / or the data source data.
[0190] In an optional implementation, if the traffic evaluation index is the queue length of the first road section, the processor 131 is further configured to calculate the queue length of the first road section in the following manner:
[0191] The length of the first queue is calculated based on Internet traffic data, the length of the second queue is calculated based on Internet traffic data and radar data, and the length of the third queue is calculated based on Internet traffic data and electronic police vehicle passing data;
[0192] If the length of the second queue is not zero, the length of the second queue is determined to be the length of the queue of the first section; otherwise, if the length of the third queue is not zero, the length of the third queue is determined to be the length of the queue of the first section;
[0193] If the second queue length and the third queue length are both zero, the first queue length is determined to be the queue length of the first section.
[0194] In an optional implementation manner, the processor 131 is specifically configured to:
[0195] Calculate the first queue length based on Internet traffic data;
[0196] calculating a second queue length by applying the first queue length, the queue length determined based on radar data, and respective weights;
[0197] The third queue length is calculated based on Internet traffic data and police vehicle passing data, including:
[0198] Calculate the first queue length based on Internet traffic data;
[0199] The third queue length is calculated by applying the first queue length, the queue length determined based on the electronic police vehicle passing data, and their respective weights.
[0200] In an optional implementation manner, the processor 131 is specifically configured to:
[0201] The first queue length is calculated by applying the traffic status level of each sub-road section included in the road section and the weight corresponding to each traffic status level.
[0202] In an optional implementation, if the traffic evaluation index is the flow of the first target object, the processor 131 is further configured to calculate the flow of the first target object in the following manner:
[0203] If the detector flow detected by the flow detector is not zero, the detector flow is determined to be the corresponding lane flow; otherwise, when the electric police flow determined by the electric police passing vehicle data is not zero, the electric police flow is determined to be the lane flow of the first lane; or
[0204] When the first turn does not include a composite lane, the flow rate corresponding to each lane included in the first turn is summed up as the flow rate of the first turn; when the first turn includes a composite lane, the flow rate of the first turn is obtained according to the attributes of the composite lane and the preset ratio of each attribute; or
[0205] Determine the sum of the flow rates corresponding to the lanes included in the first road section as the flow rate of the first road section; or
[0206] The sum of the lane flow rates in each direction corresponding to the first intersection is determined as the flow rate of the first intersection.
[0207] In an optional implementation, if the traffic evaluation indicator is a traffic index, the processor 131 is further configured to calculate the traffic index of the second target object in the following manner:
[0208] Determine the traffic index of the first sub-road section according to the sub-road section speed of the first sub-road section and a predetermined correspondence between the sub-road section speed and the traffic index; or
[0209] Calculate the first traffic index according to the travel time ratio of the first lane and the correspondence between the travel time ratio and the traffic index; calculate the second traffic index according to the saturation of the first lane and the correspondence between the saturation and the traffic index; determine the traffic index of the first lane based on the first traffic index and the second traffic index according to the traffic state levels respectively represented by the first traffic index and the second traffic index; or
[0210] Calculate a third traffic index according to the traffic status level of each sub-segment included in the first road section, the length of each sub-segment and the length of the road section; calculate a fourth traffic index according to the flow of each lane included in the first road section and the traffic index of each lane; if the third traffic index is not zero, determine the third traffic index as the traffic index of the first road section; otherwise, if the fourth traffic index is not zero, determine the fourth traffic index as the traffic index of the first road section; or
[0211] A traffic index of the first intersection is determined according to road types of intersecting road sections constituting the first intersection.
[0212] In an optional implementation manner, the processor 131 is specifically configured to:
[0213] If the traffic status levels of all sub-road sections included in the first road section are all at the first level, then determining the average value of the traffic index of each sub-road section as the third traffic index;
[0214] If the first road section includes at least two sub-sections with traffic status levels of the second level or above, the third traffic index is determined based on the relationship between the target length and the length of the first road section; wherein the target length is the weighted sum of the lengths of each sub-section at different congestion levels.
[0215] In an optional implementation manner, the processor 131 is specifically configured to:
[0216] Calculate the sum of the products of the flow rates of the lanes included in the first road section and the corresponding traffic indexes as the first parameter;
[0217] Calculate the sum of the flow rates of the lanes included in the first road section as the second parameter;
[0218] A ratio of the first parameter to the second parameter is determined as a fourth traffic index.
[0219] The embodiment of the present application also provides a computer storage medium, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned method for processing traffic evaluation indicators.
[0220] 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.
[0221] 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.
[0222] 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.
[0223] 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.
[0224] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the 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 processing traffic evaluation indicators, It is characterized in that include: In response to a user's traffic evaluation index generation operation, at least one traffic evaluation index is generated; wherein the at least one traffic evaluation index includes a queue length of a first road section, a flow rate of a first target object, or a traffic index of a second target object; the first target object includes a first lane, the first road section, a first intersection, or a first turn; the second target object includes the first lane, the first road section, the first intersection, or at least one first sub-segment included in the first road section; the queue length of the first road section is determined based on part or all of the Internet traffic data, radar data, and electric police vehicle passing data associated with the first road section; the flow rate of the first target object is determined based on the detector flow rate detected by the flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of the at least one first sub-segment; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection; In response to the user's traffic evaluation index display operation, a first page is displayed; wherein the first page includes at least one traffic evaluation index.
2. The method according to claim 1, It is characterized in that Generating at least one traffic evaluation index comprises: Acquire data source data from the first distributed data processing platform and basic data from the first database; wherein the data source data includes Internet traffic data, radar data, electric police vehicle passing data or detector flow data; the basic data includes basic information of road sections, sub-road sections, lanes, turns and intersections; Based on the basic data and / or the data source data, the at least one traffic evaluation index is generated.
3. The method according to claim 2, It is characterized in that If the traffic evaluation index is the queue length of the first road section, the method further includes calculating the queue length of the first road section in the following manner: Calculate the first queue length according to the Internet traffic data, calculate the second queue length according to the Internet traffic data and the radar data, and calculate the third queue length according to the Internet traffic data and the electric police vehicle passing data; If the length of the second queue is not zero, the length of the second queue is determined to be the length of the queue of the first section; otherwise, if the length of the third queue is not zero, the length of the third queue is determined to be the length of the queue of the first section; If the second queue length and the third queue length are both zero, the first queue length is determined to be the queue length of the first road section.
4. The method according to claim 3, It is characterized in that The calculating the second queue length according to the Internet traffic data and the radar data comprises: Calculating a first queue length according to the Internet traffic data; calculating a second queue length by applying the first queue length, the queue length determined based on the radar data, and respective weights; The third queue length is calculated based on the Internet traffic data and the electronic police vehicle passing data, including: Calculating a first queue length according to the Internet traffic data; The third queue length is calculated by applying the first queue length, the queue length determined based on the electronic police vehicle passing data, and the respective weights.
5. The method according to claim 3 or 4, It is characterized in that The calculating the first queue length according to the Internet traffic data comprises: The first queue length is calculated by applying the traffic status level of each sub-road section included in the road section and the weight corresponding to each traffic status level.
6. The method according to claim 2, It is characterized in that If the traffic evaluation index is the flow rate of the first target object, the method further includes calculating the flow rate of the first target object in the following manner: If the detector flow detected by the flow detector is not zero, the detector flow is determined to be the corresponding lane flow; otherwise, when the electric alarm flow determined by the electric alarm vehicle passing data is not zero, the electric alarm flow is determined to be the lane flow of the first lane; or When the first turn does not include a composite lane, the flow rate corresponding to each lane included in the first turn is summed as the flow rate of the first turn; when the first turn includes a composite lane, the flow rate of the first turn is obtained according to the attributes of the composite lane and the ratio of the pre-set attributes; or Determine the sum of the flow rates corresponding to the lanes included in the first road section as the flow rate of the first road section; or Determine the sum of lane flows in each direction corresponding to the first intersection as the flow rate of the first intersection.
7. The method according to claim 1, It is characterized in that If the traffic evaluation indicator is a traffic index, the method further includes calculating the traffic index of the second target object in the following manner: Determine the traffic index of the first sub-road section according to the sub-road section speed of the first sub-road section and a predetermined correspondence between the sub-road section speed and the traffic index; or Calculating the first traffic index according to the travel time ratio of the first lane and the correspondence between the travel time ratio and the traffic index; calculating the second traffic index according to the saturation of the first lane and the correspondence between the saturation and the traffic index; determining the traffic index of the first lane based on the first traffic index and the second traffic index according to the traffic state levels respectively represented by the first traffic index and the second traffic index; or Calculate a third traffic index according to the traffic status level of each sub-segment included in the first road section, the length of each sub-segment and the length of the road section; calculate a fourth traffic index according to the flow of each lane included in the first road section and the traffic index of each lane; if the third traffic index is not zero, determine the third traffic index as the traffic index of the first road section; otherwise, if the fourth traffic index is not zero, determine the fourth traffic index as the traffic index of the first road section; or The traffic index of the first intersection is determined according to the road types of the intersecting sections constituting the first intersection.
8. The method according to claim 7, It is characterized in that The calculating the third traffic index of the first road section according to the traffic state level of each sub-road section included in the first road section, the length of each sub-road section and the length of the road section includes: If the traffic status levels of all sub-road sections included in the first road section are all at the first level, determining the average value of the traffic index of each sub-road section as the third traffic index; If the first road section includes at least two sub-sections with traffic status levels of the second level or above, the third traffic index is determined based on the relationship between the target length and the length of the first road section; wherein the target length is the weighted sum of the lengths of each sub-section at different congestion levels.
9. The method according to claim 7, It is characterized in that The calculating the fourth traffic index of the first road section according to the flow of each lane included in the first road section and the traffic index of each lane includes: Calculating the sum of the products of the flow rates of the lanes included in the first road section and the corresponding traffic indexes as the first parameter; Calculating the sum of the flow rates of the lanes included in the first road section as a second parameter; A ratio of the first parameter to the second parameter is determined as the fourth traffic index.
10. An electronic device, It is characterized in that Includes processor and display; The processor is configured to execute: generating at least one traffic evaluation index in response to a user's traffic evaluation index generation operation; wherein the at least one traffic evaluation index includes a queue length of a first road section, a flow rate of a first target object, or a traffic index of a second target object; the first target object includes a first lane, the first road section, a first intersection, or a first turn; the second target object includes the first lane, the first road section, the first intersection, or at least one first sub-section included in the first road section; the queue length of the first road section is determined based on part or all of the Internet traffic data, radar data, and electric police vehicle passing data associated with the first road section; the flow rate of the first target object is determined based on the detector flow rate detected by the flow detector associated with the first target object; the traffic index of the second target object is determined based on the traffic state level of the at least one first sub-section; the first lane is any one of the lanes included in the first road section, the first intersection is a downstream intersection constituting the first road section, and the first turn is any one of the turns of the first intersection; The processor is further configured to execute: in response to the user's traffic evaluation index display operation, display a first page on the display screen; wherein the first page includes at least one traffic evaluation index.
