CN117711200A - Road traffic situation identification method, device, equipment and storage medium - Google Patents
Road traffic situation identification method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117711200A CN117711200A CN202311754705.8A CN202311754705A CN117711200A CN 117711200 A CN117711200 A CN 117711200A CN 202311754705 A CN202311754705 A CN 202311754705A CN 117711200 A CN117711200 A CN 117711200A
- Authority
- CN
- China
- Prior art keywords
- road
- vehicles
- time
- passing vehicles
- track data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000012545 processing Methods 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 8
- 230000002776 aggregation Effects 0.000 claims description 5
- 238000004220 aggregation Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 5
- 206010039203 Road traffic accident Diseases 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/09—Arrangements for giving variable traffic instructions
- G08G1/0962—Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
- G08G1/0967—Systems involving transmission of highway information, e.g. weather, speed limits
- G08G1/096766—Systems involving transmission of highway information, e.g. weather, speed limits where the system is characterised by the origin of the information transmission
- G08G1/096775—Systems involving transmission of highway information, e.g. weather, speed limits where the system is characterised by the origin of the information transmission where the origin of the information is a central station
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/09—Arrangements for giving variable traffic instructions
- G08G1/0962—Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
- G08G1/0967—Systems involving transmission of highway information, e.g. weather, speed limits
- G08G1/096733—Systems involving transmission of highway information, e.g. weather, speed limits where a selection of the information might take place
- G08G1/09675—Systems involving transmission of highway information, e.g. weather, speed limits where a selection of the information might take place where a selection from the received information takes place in the vehicle
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Atmospheric Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
The application provides a road traffic situation identification method, device, equipment and medium. The method comprises the following steps: receiving a query request of a user for the traffic situation of a destination road, wherein the query request carries the position information of the destination; determining a road network within a preset range around a destination as a target road network; and obtaining the number of passing vehicles corresponding to each road section in the target road network from the real-time road condition database, displaying the number of passing vehicles on the corresponding road section, and returning the target road network with the number of passing vehicles to the user. In the application, the road condition database is obtained by utilizing the sliding time window to process the real-time acquired vehicle track data, and the number of passing vehicles comprises the number of passing vehicles in the latest time window. Therefore, the method and the device can enable the user to grasp the traffic situation of the strange road in time by collecting and processing the current traffic data of the road in real time, judge the traffic situation through the real-time number of vehicles on the route, and reduce traffic load and traffic accidents.
Description
Technical Field
The present disclosure relates to the field of traffic technologies, and in particular, to a method and apparatus for identifying road traffic conditions, an electronic device, and a computer readable storage medium.
Background
The traffic information and management system uses information communication technology to tightly coordinate people, vehicles and roads, and can play a role in a large scale in all directions, thus realizing real-time, accurate and efficient traffic management.
The existing traffic information and management system adopts a traffic road condition information acquisition technology, which acquires traffic road condition information through a fixed detector, and the technology has very high accuracy, but the application and maintenance cost is quite high, so that the existing traffic information and management system is only comprehensively deployed and built on a first-line urban road network and a main road network of a domestic large and medium city, and the application scale is severely limited by the cost.
However, the freight vehicles are widely used in various fields as main transportation means, and usually run on some strange road sections, because no fixed detectors are installed on the strange road sections, the existing transportation information and management system cannot collect the traffic condition information of the strange road sections, so that it is not possible to provide the freight vehicles with traffic condition information such as whether the strange road sections can pass or not and whether the strange road sections are jammed, which is not beneficial to the safe running of the vehicles.
Disclosure of Invention
The application aims to provide a road traffic situation identification method and device, electronic equipment and a computer readable storage medium.
The first aspect of the present application provides a road traffic situation identification method, including:
receiving a query request of a user for the traffic situation of a destination road, wherein the query request carries the position information of the destination;
determining a road network within a preset range around the destination as a target road network;
acquiring the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database, and displaying the number of passing vehicles on the corresponding road section;
returning the target road network with the number of the passing vehicles to the user;
the road condition database is obtained by utilizing sliding time window grouping processing to obtain real-time vehicle track data, and the number of passing vehicles comprises the passing vehicles in the latest time window.
In one possible implementation manner, the road condition database is obtained by the following steps:
acquiring traffic information and track data of all vehicles on a management system in real time;
grouping the track data of all vehicles by adopting a sliding time window;
road section matching is carried out according to the track data of each vehicle in the time window and the road network data, road sections corresponding to vehicles with the same longitude and latitude coordinates in the track data of the vehicles in the adjacent two time windows are combined, and the number of passing vehicles corresponding to each road section in the current window period is obtained;
and storing the number of the passing vehicles on each road section into a road condition database according to the sequence of the time windows.
In one possible implementation, the track data of the vehicle includes longitude and latitude coordinates, reporting time and running speed;
the method for grouping the track data of all vehicles by adopting the sliding time window comprises the following steps:
and in the current time window, the vehicle identification is used as a grouping identification, and the longitude and latitude coordinates, the reporting time and the running speed of the same vehicle are spliced in the window period.
In one possible implementation manner, the matching of road segments according to the track data of each vehicle in the time window and the road network data, merging the road segments corresponding to the vehicles with the same track data of the vehicles in the adjacent two time window periods, and after obtaining the number of passing vehicles corresponding to each road segment in the current window period, further includes:
according to the track data of each vehicle and road network data in the time window, carrying out road section matching, and writing the matched vehicle identification, the vehicle track data and the matched road section into a message queue;
and asynchronously consuming the message queue based on a preset search engine so as to carry out aggregation inquiry on the traffic vehicles stored in each time window of the same road section and obtain the number of the traffic vehicles of the same road section in a preset time period.
In one possible implementation manner, the obtaining, from a real-time road condition database, the number of passing vehicles corresponding to each road section in the target road network includes:
and counting and combining the number of the passing vehicles of the same road section in a preset time period to obtain the number of the passing vehicles corresponding to each road section in the target road network.
In one possible implementation manner, before the target road network displaying the passing vehicle number is returned to the user, the method further includes:
and comparing the distance between the two road sections, and if the distance between the two road sections is smaller than the preset distance, merging and displaying the number of the passing vehicles on the two road sections.
A second aspect of the present application provides a road traffic situation recognition device, including:
the receiving module is used for receiving a query request of a user for the traffic situation of the destination road, wherein the query request carries the position information of the destination;
the determining module is used for determining the road network in the preset range around the destination as a target road network;
the acquisition and display module is used for acquiring the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database and displaying the number of passing vehicles on the corresponding road section;
the return module is used for returning the target road network with the number of the passing vehicles to the user;
the road condition database is obtained by utilizing sliding time window grouping processing to obtain real-time vehicle track data, and the number of passing vehicles comprises the passing vehicles in the latest time window.
In one possible implementation, the apparatus further includes: the database module is used for constructing the road condition database by the following modes:
acquiring traffic information and track data of all vehicles on a management system in real time;
grouping the track data of all vehicles by adopting a sliding time window;
road section matching is carried out according to the track data of each vehicle in the time window and the road network data, road sections corresponding to vehicles with the same longitude and latitude coordinates in the track data of the vehicles in the adjacent two time windows are combined, and the number of passing vehicles corresponding to each road section in the current window period is obtained;
and storing the number of the passing vehicles on each road section into a road condition database according to the sequence of the time windows.
A third aspect of the present application provides an electronic device, comprising: the road traffic situation identification system comprises a memory, a processor and a computer program stored on the memory and capable of being run on the processor, wherein the processor executes the computer program to realize the road traffic situation identification method according to the first aspect of the application.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon computer readable instructions executable by a processor to implement the road traffic situation identification method of the first aspect of the present application.
The road traffic situation identification method, the device, the electronic equipment and the storage medium provided by the application receive a query request of a user for the destination road traffic situation, wherein the query request carries the position information of the destination; determining a road network within a preset range around the destination as a target road network; and obtaining the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database, displaying the number of passing vehicles on the corresponding road section, and returning the target road network with the number of passing vehicles to the user. In the application, the road condition database is obtained by utilizing the sliding time window to process the real-time acquired vehicle track data, and the number of passing vehicles is the number of passing vehicles in the latest time window. Therefore, the method and the device can enable the user to grasp the traffic situation of the strange road in time by collecting and processing the current traffic data of the road in real time, judge the traffic situation through the real-time number of the vehicles on the route, and effectively utilize the existing traffic facilities to reduce traffic load, improve social efficiency and reduce traffic accidents.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a schematic flow chart of a road traffic situation recognition method provided by the application;
FIG. 2 is a flow chart illustrating the construction of a road condition database provided by the present application;
FIG. 3 shows a schematic diagram of a sliding time window provided herein;
FIG. 4 shows a schematic diagram of a target road network with a number of passing vehicles displayed, provided by the present application;
fig. 5 shows a schematic structural diagram of a road traffic situation recognition device provided by the present application;
FIG. 6 shows a schematic structural diagram of an electronic device provided by the present application;
fig. 7 shows a schematic structural diagram of a computer-readable storage medium provided in the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
In addition, the terms "first" and "second" etc. are used to distinguish different objects and are not used to describe a particular order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The embodiments of the present application provide a road traffic situation recognition method and apparatus, an electronic device, and a computer readable storage medium, and the following description is made with reference to the accompanying drawings.
Fig. 1 is a flow chart of a road traffic situation recognition method according to an embodiment of the present application, where an execution subject of the embodiment may be a traffic information and management system (hereinafter referred to as a system), and the system may be implemented based on software and/or hardware, which is not limited in this application. As shown in fig. 1, the method specifically includes the following steps:
s101, receiving a query request of a user for the traffic situation of a destination road, wherein the query request carries the position information of the destination.
Specifically, the user can send a query request for the traffic situation of the destination road to the system through terminals such as a mobile phone and a computer, and the system returns the traffic situation of the destination road to the user terminal through real-time query and displays the traffic situation of the destination road on the terminal so that the user can grasp the traffic situation of the unfamiliar road in time.
S102, determining the road network within the preset range around the destination as a target road network.
Specifically, a user can dynamically select a destination to be checked through a map display screen of a mobile phone terminal, after receiving a query request of the user for the traffic situation of a destination road, the system acquires position information of the destination from the query request, and determines a road network within a preset range around the destination as a target road network by taking the destination as a center, wherein the preset range is a dynamic configuration parameter, and the purpose is to quickly search the real-time traffic number of the road within the peripheral range based on the destination.
S103, obtaining the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database, and displaying the number of passing vehicles on the corresponding road section.
The road condition database is obtained by utilizing sliding time window grouping processing to obtain real-time vehicle track data, and the number of passing vehicles comprises the passing vehicles in the latest time window.
Specifically, as shown in fig. 2, the road condition database is specifically obtained by the following steps:
s201, collecting the traffic information and track data of all vehicles on the management system in real time.
Specifically, vehicles managed by the transportation information and management system run around the country, vehicle-mounted positioning terminals such as a north hopper car machine terminal and the like are mounted on the vehicles, and track data of the vehicles are composed of real-time track points reported by the vehicle-mounted positioning terminals. In practical application, the vehicle-mounted positioning terminal can collect and report current track data of the vehicle at regular time, including vehicle identification, longitude and latitude coordinates, reporting time, running speed, running direction, current elevation and the like.
S202, grouping the track data of all vehicles by adopting a sliding time window.
Specifically, step S202 may be implemented as: and in the current time window, the vehicle identification is used as a grouping identification, and the longitude and latitude coordinates, the reporting time and the running speed of the same vehicle are spliced in the window period.
For example, as shown in fig. 3, the received vehicle track data is subjected to grouping processing by using a sliding time window, the vehicle identifier vid is used as a grouping identifier, the window size is set to 7 minutes, and the sliding step length is set to 5 minutes. And (3) splicing the longitude and latitude coordinates, the reporting time and the running speed of the same vehicle in a window period, wherein the spliced data are in the following format:
{"vid":"230189176","windowTraceData":
"115.593250,40.498182,1645689256000,36.0;
115.595905,40.499883,1645689286000,25.9;
115.598173,40.501368,1645689316000,32.4;
115.600952,40.503107,1645689346000,39.4;
115.604007,40.504808,1645689376000,36.2"}。
in the data format, the window tracking data comprises 5 lines of data, wherein each line is formed by splicing longitude and latitude coordinates, reporting time and running speed of a track point of a vehicle.
And S203, carrying out road section matching on the track data of each vehicle in the time window and the road network data, and merging the road sections corresponding to the vehicles with the same longitude and latitude coordinates in the track data of the vehicles in the adjacent two time windows to obtain the number of passing vehicles corresponding to each road section in the current window period.
Specifically, the real-time road network data is initialized and loaded, track data in a vehicle window are consumed in real time, a plurality of track point data of the same vehicle in the current time window are matched with the road network data, a road section where the vehicle is located can be determined, and matching accuracy can be improved by adopting a multipoint rule. And the like, the road sections where each vehicle is located in one time window period can be obtained, then the road sections corresponding to the vehicles with the same vehicle track data in the two adjacent time window periods are combined, and the number of passing vehicles on each road section in the road network in the current time window can be obtained through statistics.
The step of merging the road sections corresponding to the vehicles with the same vehicle track data in the adjacent two time window periods specifically comprises the following steps: and merging the current time window with the road sections corresponding to the vehicles with the same longitude and latitude coordinates in the vehicle track data in the period of the last time window of the current time window, and taking the merged result as the number of passing vehicles on each road section in the road network in the current time window.
S204, storing the number of the passing vehicles on each road section into a road condition database according to the time window sequence.
In a possible implementation manner, after step S203, the method may further include: the method comprises the steps that vehicle identifications, vehicle track data and matched road sections obtained by carrying out road section matching on track data of each vehicle and road network data in a time window are written into a message queue; and asynchronously consuming the message queue based on a preset search engine so as to carry out aggregation inquiry on the traffic vehicles stored in each time window of the same road section and obtain the number of the traffic vehicles of the same road section in a preset time period.
The vehicle track data includes an uploading time of the vehicle track data, and the uploading time can be understood as the time when the vehicle runs on the matched road section. The preset time period may be understood as any time period in which it is desired to know the number of vehicles traveling on the road section within a certain time period, and may include the latest time window.
For example, the vehicle track data reported by the vehicle positioning terminal can be pushed to the message queue kafka in real time, and then the vehicle track data in the message queue kafka is consumed by adopting a real-time computing engine link, so that the received vehicle track data is subjected to packet processing by adopting a sliding time window. Then, the aggregation inquiry can be performed on the traffic vehicles on the same road section stored in the preset time section in the road condition database based on the search engine elastic search to form a link: count (road section: vehicle number) data structure, namely, the number of vehicles running on the road in the preset time section is counted. Search engines elastic search facilitate fast spatial retrieval and data summarization.
Specifically, in step S103, the obtaining, from a real-time road condition database, the number of passing vehicles corresponding to each road section in the target road network includes: and counting and combining the number of the passing vehicles of the same road section in a preset time period to obtain the number of the passing vehicles corresponding to each road section in the target road network.
In some embodiments of the present application, the step S103 further includes the following steps: and comparing the distance between the two road sections, and if the distance between the two road sections is smaller than the preset distance, combining and displaying the number of the passing vehicles of the two road sections so as to simplify the display of the user terminal, enable the number of the vehicles in the dense area to be clear at a glance, and improve the user experience.
In some embodiments of the present application, the displaying the number of passing vehicles on the corresponding road segment in step S103 may be specifically implemented as: and displaying the number of the passing vehicles at the middle position of the corresponding road section, namely, marking the number of the vehicles currently passing through the road section at the central point coordinate of the road section, so that the user can clearly see the number of the passing vehicles on the corresponding road section, and the user experience is improved.
And S104, returning the target road network with the number of the passing vehicles to the user.
After the system returns the target road network with the number of passing vehicles to the user terminal, the user terminal displays the target road network, as shown in fig. 4, which is a schematic diagram of the target road network with the number of passing vehicles, and the more the number of vehicles on the road section is, the more the road section is jammed.
According to the road traffic situation identification method, a query request of a user for the destination road traffic situation is received, wherein the query request carries position information of a destination; determining a road network within a preset range around the destination as a target road network; and obtaining the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database, displaying the number of passing vehicles on the corresponding road section, and returning the target road network with the number of passing vehicles to the user. In the application, the road condition database is obtained by utilizing the sliding time window to process the real-time acquired vehicle track data, and the number of passing vehicles comprises the number of passing vehicles in the latest time window. Therefore, the method and the device can enable the user to grasp the traffic situation of the strange road in time by collecting and processing the current traffic data of the road in real time, judge the traffic situation through the real-time number of the vehicles on the route, effectively utilize the existing traffic facilities, reduce traffic load, improve social efficiency and reduce traffic accidents.
In the above embodiment, a road traffic situation identification method is provided, and correspondingly, the application also provides a road traffic situation identification device. The road traffic situation recognition device provided by the embodiment of the application can implement the road traffic situation recognition method, and the road traffic situation recognition device can be realized by software, hardware or a combination of software and hardware. For example, the road traffic identifying means may comprise integrated or separate functional modules or units for performing the corresponding steps in the methods described above. Fig. 5 is a schematic diagram of a road traffic situation recognition device according to an embodiment of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 5, the road traffic recognition device 10 may include:
a receiving module 101, configured to receive a query request of a user for a traffic situation of a destination road, where the query request carries location information of the destination;
a determining module 102, configured to determine a road network within a preset range around the destination as a target road network;
the acquiring and displaying module 103 is configured to acquire the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database, and display the number of passing vehicles on the corresponding road section;
a return module 104, configured to return the target road network with the number of passing vehicles displayed to the user;
the road condition database is obtained by utilizing sliding time window grouping processing to obtain real-time vehicle track data, and the number of passing vehicles comprises the passing vehicles in the latest time window.
In one possible implementation, the apparatus further includes: the database module is used for constructing the road condition database by the following modes:
acquiring traffic information and track data of all vehicles on a management system in real time;
grouping the track data of all vehicles by adopting a sliding time window;
road section matching is carried out according to the track data of each vehicle in the time window and the road network data, road sections corresponding to vehicles with the same longitude and latitude coordinates in the track data of the vehicles in the adjacent two time windows are combined, and the number of passing vehicles corresponding to each road section in the current window period is obtained;
and storing the number of the passing vehicles on each road section into a road condition database according to the sequence of the time windows.
In one possible implementation, the track data of the vehicle includes longitude and latitude coordinates, reporting time and running speed;
the database module is specifically configured to:
and in the current time window, the vehicle identification is used as a grouping identification, and the longitude and latitude coordinates, the reporting time and the running speed of the same vehicle are spliced in the window period.
In one possible implementation, the database module is further configured to:
the track data of each vehicle in the time window are matched with road network data, road segments corresponding to vehicles with the same track data of the vehicles in the adjacent two time windows are combined, the number of passing vehicles corresponding to each road segment in the current window period is obtained, and then the vehicle identifications, the vehicle track data and the matched road segments obtained by carrying out road segment matching on the track data of each vehicle in the time window and the road network data are written into a message queue;
and asynchronously consuming the message queue based on a preset search engine so as to carry out aggregation inquiry on the traffic vehicles stored in each time window of the same road section and obtain the number of the traffic vehicles of the same road section in a preset time period.
In one possible implementation manner, the acquiring and displaying module 103 is specifically configured to:
and counting and combining the number of the passing vehicles of the same road section in a preset time period to obtain the number of the passing vehicles corresponding to each road section in the target road network.
In one possible implementation, the acquiring and displaying module 103 is further configured to:
and comparing the distance between the two road sections, and if the distance between the two road sections is smaller than the preset distance, merging and displaying the number of the passing vehicles on the two road sections.
In one possible implementation manner, the acquiring and displaying module 103 is specifically configured to:
and displaying the number of passing vehicles at the middle position of the corresponding road section.
The road traffic situation recognition device provided by the embodiment of the application and the road traffic situation recognition method provided by the embodiment of the application are the same in conception and have the same beneficial effects as the method adopted, operated or realized by the device.
The embodiment of the application also provides an electronic device corresponding to the road traffic situation recognition method provided by the previous embodiment, where the electronic device may be a mobile phone, a notebook computer, a tablet computer, a desktop computer, etc. so as to execute the road traffic situation recognition method.
Referring to fig. 6, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 6, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, the processor 200, the communication interface 203 and the memory 201 being connected by the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the road traffic situation recognition method according to any one of the foregoing embodiments of the present application when executing the computer program.
The memory 201 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 203 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 202 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, and the road traffic situation identifying method disclosed in any of the foregoing embodiments of the present application may be applied to the processor 200 or implemented by the processor 200.
The processor 200 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 200 or by instructions in the form of software. The processor 200 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201, and in combination with its hardware, performs the steps of the above method.
The electronic device provided by the embodiment of the application and the road traffic situation identification method provided by the embodiment of the application are the same in the same inventive concept, and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
The present embodiment also provides a computer readable storage medium corresponding to the road traffic situation identifying method provided in the foregoing embodiment, referring to fig. 7, the computer readable storage medium is shown as an optical disc 30, on which a computer program (i.e. a program product) is stored, where the computer program, when executed by a processor, performs the road traffic situation identifying method provided in any of the foregoing embodiments.
It should be noted that examples of the computer readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided by the above embodiment of the present application has the same advantageous effects as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept as the road traffic situation recognition method provided by the embodiment of the present application.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the embodiments, and are intended to be included within the scope of the claims and description.
Claims (10)
1. A road traffic situation recognition method, characterized by comprising:
receiving a query request of a user for the traffic situation of a destination road, wherein the query request carries the position information of the destination;
determining a road network within a preset range around the destination as a target road network;
acquiring the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database, and displaying the number of passing vehicles on the corresponding road section;
returning the target road network with the number of the passing vehicles to the user;
the road condition database is obtained by utilizing sliding time window grouping processing to obtain real-time vehicle track data, and the number of passing vehicles comprises the passing vehicles in the latest time window.
2. The method according to claim 1, wherein the road conditions database is obtained by:
acquiring traffic information and track data of all vehicles on a management system in real time;
grouping the track data of all vehicles by adopting a sliding time window;
road section matching is carried out according to the track data of each vehicle in the time window and the road network data, road sections corresponding to vehicles with the same longitude and latitude coordinates in the track data of the vehicles in the adjacent two time windows are combined, and the number of passing vehicles corresponding to each road section in the current window period is obtained;
and storing the number of the passing vehicles on each road section into a road condition database according to the sequence of the time windows.
3. The method of claim 2, wherein the trajectory data of the vehicle includes latitude and longitude coordinates, reporting time, and travel speed;
the method for grouping the track data of all vehicles by adopting the sliding time window comprises the following steps:
and in the current time window, the vehicle identification is used as a grouping identification, and the longitude and latitude coordinates, the reporting time and the running speed of the same vehicle are spliced in the window period.
4. The method according to claim 2, wherein the matching of the road segments according to the track data of each vehicle in the time window and the road network data, merging the road segments corresponding to vehicles with the same track data of vehicles in the adjacent two time windows, and obtaining the number of passing vehicles corresponding to each road segment in the current window period, further comprises:
the method comprises the steps that vehicle identifications, vehicle track data and matched road sections obtained by carrying out road section matching on track data of each vehicle and road network data in a time window are written into a message queue;
and asynchronously consuming the message queue based on a preset search engine so as to carry out aggregation inquiry on the traffic vehicles stored in each time window of the same road section and obtain the number of the traffic vehicles of the same road section in a preset time period.
5. The method of claim 4, wherein obtaining the number of vehicles traveling for each road segment in the target road network from a real-time road condition database comprises:
and counting and combining the number of the passing vehicles of the same road section in a preset time period to obtain the number of the passing vehicles corresponding to each road section in the target road network.
6. The method of claim 1, wherein before returning the target road network with the number of passing vehicles displayed to the user, further comprises:
and comparing the distance between the two road sections, and if the distance between the two road sections is smaller than the preset distance, merging and displaying the number of the passing vehicles on the two road sections.
7. A road traffic situation recognition device, characterized by comprising:
the receiving module is used for receiving a query request of a user for the traffic situation of the destination road, wherein the query request carries the position information of the destination;
the determining module is used for determining the road network in the preset range around the destination as a target road network;
the acquisition and display module is used for acquiring the number of passing vehicles corresponding to each road section in the target road network from a real-time road condition database and displaying the number of passing vehicles on the corresponding road section;
the return module is used for returning the target road network with the number of the passing vehicles to the user;
the road condition database is obtained by utilizing sliding time window grouping processing to obtain real-time vehicle track data, and the number of passing vehicles comprises the passing vehicles in the latest time window.
8. The apparatus of claim 7, wherein the apparatus further comprises: the database module is used for constructing the road condition database by the following modes:
acquiring traffic information and track data of all vehicles on a management system in real time;
grouping the track data of all vehicles by adopting a sliding time window;
road section matching is carried out according to the track data of each vehicle in the time window and the road network data, road sections corresponding to vehicles with the same longitude and latitude coordinates in the track data of the vehicles in the adjacent two time windows are combined, and the number of passing vehicles corresponding to each road section in the current window period is obtained;
and storing the number of the passing vehicles on each road section into a road condition database according to the sequence of the time windows.
9. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when the computer program is run by the processor.
10. A computer readable storage medium having stored thereon computer readable instructions executable by a processor to implement the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311754705.8A CN117711200A (en) | 2023-12-19 | 2023-12-19 | Road traffic situation identification method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311754705.8A CN117711200A (en) | 2023-12-19 | 2023-12-19 | Road traffic situation identification method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117711200A true CN117711200A (en) | 2024-03-15 |
Family
ID=90149462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311754705.8A Pending CN117711200A (en) | 2023-12-19 | 2023-12-19 | Road traffic situation identification method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117711200A (en) |
-
2023
- 2023-12-19 CN CN202311754705.8A patent/CN117711200A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
He et al. | Mapping to cells: A simple method to extract traffic dynamics from probe vehicle data | |
US10043389B2 (en) | Vehicular information systems and methods | |
CN111386559B (en) | Method and system for judging whether target road facilities exist at intersection or not | |
CN108170793B (en) | Vehicle semantic track data-based dwell point analysis method and system | |
US8797187B2 (en) | Street parking availability estimation | |
CN111862605B (en) | Road condition detection method and device, electronic equipment and readable storage medium | |
CN101358856B (en) | Navigation device, navigation method and navigation system | |
CN111739323B (en) | Method and device for acquiring intersection information | |
CN113570864B (en) | Method and device for matching running path of electric bicycle and storage medium | |
Khadka et al. | Developing novel performance measures for traffic congestion management and operational planning based on connected vehicle data | |
Kawatani et al. | Prediction of bus travel time over intervals between pairs of adjacent bus stops using city bus probe data | |
CN113899355A (en) | Map updating method and device, cloud server and shared riding equipment | |
US11428534B2 (en) | Method, apparatus, and computer program product for map matching location data to a map | |
CN112633812A (en) | Track segmentation method, device, equipment and storage medium for freight vehicle | |
Wu et al. | Online map-matching assisted by object-based classification of driving scenario | |
CN105067001A (en) | Route setting method based on taxi experience data and system thereof | |
CN117711200A (en) | Road traffic situation identification method, device, equipment and storage medium | |
KR102302486B1 (en) | Urban road speed processing method, urban road speed processing device, device and non-volatile computer storage medium | |
CN113379162B (en) | Method for estimating running quantity of motor vehicle on rural highway | |
CN102795171B (en) | Vehicle-mounted assistant system | |
US20230206753A1 (en) | Method, apparatus, and system for traffic prediction based on road segment travel time reliability | |
CN106887138B (en) | A kind of traffic congestion sprawling situation method for detecting and system | |
CN113869715A (en) | Site grouping method, home site determining method, device and computer equipment | |
CN103218406A (en) | Address information processing method and equipment for interest points | |
CN113968239A (en) | Traffic information prompting method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |