CN112100196B - Real-time traffic information processing method and system and electronic equipment - Google Patents

Real-time traffic information processing method and system and electronic equipment Download PDF

Info

Publication number
CN112100196B
CN112100196B CN202011318264.3A CN202011318264A CN112100196B CN 112100196 B CN112100196 B CN 112100196B CN 202011318264 A CN202011318264 A CN 202011318264A CN 112100196 B CN112100196 B CN 112100196B
Authority
CN
China
Prior art keywords
tmc
road
information
position information
current vehicle
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.)
Active
Application number
CN202011318264.3A
Other languages
Chinese (zh)
Other versions
CN112100196A (en
Inventor
贾双成
孟鹏飞
朱磊
王红铅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mushroom Car Union Information Technology Co Ltd
Original Assignee
Mushroom Car Union Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Mushroom Car Union Information Technology Co Ltd filed Critical Mushroom Car Union Information Technology Co Ltd
Priority to CN202011318264.3A priority Critical patent/CN112100196B/en
Publication of CN112100196A publication Critical patent/CN112100196A/en
Application granted granted Critical
Publication of CN112100196B publication Critical patent/CN112100196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0137Measuring and analyzing of parameters relative to traffic conditions for specific applications
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/052Detecting movement of traffic to be counted or controlled with provision for determining speed or overspeed
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions
    • G08G1/0962Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
    • G08G1/0968Systems involving transmission of navigation instructions to the vehicle
    • G08G1/096805Systems involving transmission of navigation instructions to the vehicle where the transmitted instructions are used to compute a route
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions
    • G08G1/0962Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
    • G08G1/0968Systems involving transmission of navigation instructions to the vehicle
    • G08G1/0969Systems involving transmission of navigation instructions to the vehicle having a display in the form of a map
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Tourism & Hospitality (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Navigation (AREA)

Abstract

The application relates to a method and a system for processing real-time traffic information and electronic equipment. The method comprises the following steps: the TMC table acquires the position information and the speed of the current vehicle; matching the position information and the speed of the current vehicle with a preset TMC table, wherein the TMC table has map road data stored according to preset elements; under the condition that the position information and the speed of the current vehicle are successfully matched with the map road data stored according to the preset elements in the preset TMC table, updating the map road data corresponding to the preset elements in the TMC table; and displaying the TMC information of the updated TMC table on the corresponding road in the electronic map. The processing method greatly reduces the data to be stored, so that the nationwide TMC system can be operated in a light weight manner, the operation cost is reduced, and the later maintenance is facilitated; meanwhile, the TMC information can be efficiently updated only by acquiring the position information and the speed of the vehicle, so that the real-time traffic road condition of the corresponding road is quickly determined, and a user can conveniently check the traffic road condition in real time.

Description

Real-time traffic information processing method and system and electronic equipment
Technical Field
The present application relates to the field of navigation technologies, and in particular, to a method, a system, and an electronic device for processing real-time traffic information.
Background
Tmc (traffic Message channel) is short for real-time traffic condition information, and can reflect the traffic state of the road in the electronic map area in real time. The TMC information is displayed on the electronic map of the navigation terminal, so that a traveler can be prompted to avoid a crowded road section, and a driving route can be reasonably planned.
For nationwide real-time traffic road conditions, the real-time traffic data is generally updated and stored through a nationwide TMC system. Because the national traffic data is related, the real-time requirement on the data is high, and the data volume is large, the traffic data is generally calculated, stored and updated in real time by constructing a large and complex distributed system. Therefore, tens of servers are needed for management, which results in high system operation cost and difficult post-maintenance.
Disclosure of Invention
In order to solve the problems in the related art, the application provides a method, a system and electronic equipment for processing real-time traffic information, and the method, the system and the electronic equipment for processing the real-time traffic information can realize light-weight operation and management on nationwide real-time traffic data, reduce the operation cost and facilitate later maintenance.
A first aspect of the present application provides a method for processing real-time traffic information, including:
acquiring the position information and the speed of the current vehicle;
matching the position information and the speed of the current vehicle with a preset TMC table, wherein the TMC table has map road data stored according to preset elements;
under the condition that the position information and the speed of the current vehicle are successfully matched with the map road data stored according to the preset elements in the TMC table, updating the map road data corresponding to the preset elements in the TMC table; and displaying the updated TMC information of the TMC table on a corresponding road in the electronic map.
In one embodiment, the predetermined elements include at least one of:
the method comprises the steps of tile number, road number of each road and corresponding TMC number, traveling direction of the road, position information of the road and corresponding TMC frame area, road condition identification and latest refreshing time of the road condition identification.
In one embodiment, the matching the current vehicle position information and speed with a preset TMC table includes:
matching the position information of the current vehicle with the tile number, the TMC frame area and the traveling direction of the road respectively, and determining that the current vehicle is matched with the corresponding road when the position information of the current vehicle is located in the TMC frame area;
and obtaining the matched road condition identification of the corresponding road and the latest refreshing time of the road condition identification according to the speed of the current vehicle.
In one embodiment, the location information of the links includes a start location coordinate and an end location coordinate of each link, and the TMC frame area includes an area covering the start location coordinate and the end location coordinate.
In one embodiment, the TMC table is preset in the following manner, including:
storing the map road data in a Redis database according to preset elements in the TMC table;
and after the Redis database backs up the map road data in a memory, closing an updating mechanism for writing data to the memory by the Redis database.
In one embodiment, the method further comprises:
and the Redis database is loaded with a redesql module, and the TMC information is updated through an SQL statement command.
In one embodiment, according to the TMC information, a road congestion weight is calculated to obtain an optimal congestion avoiding route.
The second aspect of the present application further provides a system for processing real-time traffic information, which includes:
the information acquisition module is used for acquiring the position information and the speed of the current vehicle;
the matching module is used for matching the position information and the speed of the current vehicle acquired by the information acquisition module with a preset TMC table, wherein the TMC table has map road data stored according to preset elements;
the updating module is used for updating the map road data corresponding to the preset elements in the TMC table under the condition that the matching module successfully matches the position information and the speed of the current vehicle with the map road data stored according to the preset elements in the TMC table; and the display module is used for displaying the TMC information of the TMC table updated by the matching module on a corresponding road in the electronic map.
A third aspect of the present application provides an electronic device comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform a method as described above.
The technical scheme provided by the application can comprise the following beneficial effects:
the method for processing the real-time traffic information stores map road data in advance according to preset elements and generates a TMC table with a specific table structure; when the real-time traffic information needs to be known, the acquired position information and speed of the current vehicle are matched with the TMC table, and the data information corresponding to the related preset elements in the TMC table can be updated after the matching is successful, so that the real-time traffic road condition information of the road where the vehicle is located is acquired. By the design, data needing to be stored is greatly reduced, the nationwide TMC system is operated in a light weight mode, the operation cost is reduced, and later maintenance is facilitated; meanwhile, the TMC information can be efficiently updated only by acquiring the position information and the speed of the vehicle, so that the real-time traffic road condition of the corresponding road is quickly determined, and a user can conveniently check the traffic road condition in real time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application, as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic flow chart illustrating a method for processing real-time traffic information according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating a method for processing real-time traffic information according to another embodiment of the present application;
fig. 3 is a schematic diagram of location information of a road and a corresponding TMC frame area according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a real-time traffic information processing system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application 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.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the related art, for a nationwide TMC system, a large-scale and complex distributed system needs to be constructed to calculate, store and update data in real time due to the fact that real-time traffic data needs to be updated and stored, and the data volume is large. Therefore, tens of servers are needed for management, which results in high system operation cost and difficult post-maintenance. In view of the above problems, embodiments of the present application provide a method for processing real-time traffic information, which can implement lightweight operation and management on nationwide real-time traffic data, reduce operation cost, and facilitate later maintenance. The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a flowchart illustrating a method for processing real-time traffic information according to an embodiment of the present application.
Referring to fig. 1, the method for processing real-time traffic information includes:
step S110, position information and speed of the current vehicle are acquired.
In a specific embodiment, the real-time traffic information of a road, i.e. whether the road is congested, is generally directly affected by vehicles on the road. When there are more vehicles on the road, a greater amount of vehicle position information and corresponding speed of each vehicle are obtained. That is, by acquiring the position information of all the current vehicles, not only the position of the corresponding road can be locked, but also whether the vehicles on the current road are frequent or sparse can be acquired, and meanwhile, by acquiring the speed of each vehicle on the current road, whether the road is congested can be determined.
And step S120, matching the position information and the speed of the current vehicle with a preset TMC table, wherein the TMC table has map road data stored according to preset elements.
In the related art, the electronic map includes, but is not limited to, various map elements and data of roads, buildings, open spaces, water areas, forest lands, etc., wherein each map element and data is described by various elements. In order to know the real-time traffic road condition, map road data can be acquired in a targeted manner, and the real-time traffic road condition information of the road can be further acquired on the basis. The map road data may be national map road data. In one embodiment, the preset elements include at least one of the following: the method comprises the steps of tile number, road number of each road and corresponding TMC number, traveling direction of the road, position information of the road and corresponding TMC frame area, road condition identification and latest refreshing time of the road condition identification. It can be understood that the TMC table is a specific table structure composed of preset elements, that is, map road data is stored in advance according to the preset elements, and the TMC table with the specific table structure is formed, so that data interference of other non-preset elements is avoided, redundant data is reduced, and lightweight processing of the map road data in an early storage stage is realized.
Specifically, in the related art, the electronic map may be simulated and built through a tile map pyramid model. By slicing the electronic map, each layer of map data is sliced into a plurality of tiles. Each tile corresponds to a local section of the layer of map data, and the sections corresponding to the tiles are independent. Each Tile has a corresponding Tile number (Tile id), i.e. the tiles are marked and distinguished by numbers. The TMC bounding box area (bounding box) may be obtained by calculation of the location information of the road. Each TMC frame area belongs to the corresponding tile, that is, the tile area covers the TMC frame area, and the TMC frame area is the area covering the corresponding road. The location information of each road may specifically specify the location of the road on the electronic map. In order to further distinguish each Road, marking may be performed by a unique Road number (Road id) of each Road and a unique TMC number (TMC id) corresponding to the Road. Meanwhile, for a bidirectional road or a unidirectional road, a traveling direction (Heading) of each road needs to be specified. The traffic condition Flag (TMC Flag) is used to identify whether traffic is congested or not. The latest refresh time (Update time) is updated according to the state of whether the traffic is congested or not, namely, the Update is performed according to the Update of the road condition identification, so that the real-time traffic road condition information of the corresponding road can be reflected in real time, namely, whether the road is congested at the latest refresh time.
Further, the position information and the speed of the current vehicle are matched with the TMC table, that is, the position information of the current vehicle is respectively matched with the tile number, the TMC frame area and the traveling direction of the road. In one embodiment, the location information of the vehicle is first matched to the tile number to determine the approximate geographic range in which the vehicle is located. I.e. from the position information of the vehicle, it can be determined that the vehicle is within the corresponding tile area. The geographical range of the vehicle position information is narrowed through the tile area, the vehicle position information is compared with the TMC frame area in the tile area, and when the vehicle position is located in the TMC frame area, the vehicle is proved to be located on a corresponding road in the TMC frame area. In order to distinguish the bidirectional lanes, the road on which the vehicle is located is finally determined according to the traveling direction of the road, and is represented by the corresponding road number and TMC number.
Step S130, under the condition that the position information and the speed of the current vehicle are successfully matched with the map road data stored according to the preset elements in the preset TMC table, the map road data corresponding to the preset elements in the TMC table is updated.
After the matching according to the steps, if the position information and the speed of the current vehicle are successfully matched with the map road data stored according to the preset elements in the TMC table, the road on which the vehicle travels can be determined. And then according to the speed of the vehicle, whether the road is congested can be judged, and the road condition identification of the road and the corresponding latest refreshing time can be updated. Namely, the road condition identifier in the preset elements in the TMC table and the data corresponding to the latest refreshing time are updated. That is, in the TMC table, map road data corresponding to preset elements such as the tile number of each road, the road number of each road, and the corresponding TMC number, the traveling direction of the road, the position information of the road, and the corresponding TMC frame area are stored in advance. And the road condition identification and the corresponding latest refreshing time are updated according to the real-time traffic road condition. And determining whether the road corresponding to the current time is congested or not according to the road condition identification and the corresponding latest refreshing time.
And if the position information and the speed of the current vehicle are not successfully matched with the map road data stored according to the preset elements in the TMC table, directly skipping without processing. It can be understood that in the huge tile numbers, when the vehicle is not matched with the corresponding tile number, the vehicle is skipped without processing, and is matched again according to the position information of other vehicles until the position information of other vehicles is matched with the corresponding road, so that the real-time traffic road condition information of the road is obtained.
Step S140, displaying the updated TMC information of the TMC table on the corresponding road in the electronic map.
The latest TMC information is displayed on the corresponding road in the electronic map, so that the user can know the real-time traffic road condition information in time conveniently.
In summary, the method for processing real-time traffic information of the present application stores map road data in advance according to preset elements, and the TMC table generates a TMC table having a specific table structure; when the real-time traffic information needs to be known, the position information and the speed of the vehicle are matched with the TMC table, and the data information corresponding to the related preset elements in the TMC table can be updated after the matching is successful, so that the real-time traffic road condition information of the road where the vehicle is located is obtained. By the design, data needing to be stored is greatly reduced, the nationwide TMC system is operated in a light weight mode, the operation cost is reduced, and later maintenance is facilitated; meanwhile, the TMC information can be efficiently updated only by acquiring the position information and the speed of the vehicle, so that the real-time traffic road condition of the corresponding road is quickly determined, and a user can conveniently check the traffic road condition in real time.
Example two
Fig. 2 is a flowchart illustrating a method for processing real-time traffic information according to another embodiment of the present application.
Referring to fig. 2, the method for processing real-time traffic information includes:
and step S210, storing the map road data in a Redis database according to preset elements in the TMC table.
Specifically, a Remote directory Server (Remote directory Server) is an in-memory cache database, which is written in C language, and the data model is key-value. Redis is widely used because it can support rich data types, such as String, List, Hash, Set, Sorted Set, etc. Through forming the TMC table with map road data according to the preset element and saving in Redis database, on the one hand, the characteristic of Redis can support TMC table storage, through caching at Redis, avoids the data of calling the server to realize quick reading, reduce simultaneously to the occupation of server, thereby reduce hardware cost.
Further, in the related art, the Redis data is stored in the memory, and at the same time, the Redis may synchronize the memory data to the disk at regular time, that is, may persist the data, and the Redis may periodically write updated data to the disk or write a modification operation to an additional recording file. In one embodiment, after the map road data is stored in the Redis database through the TMC table, the Redis database backs up the map road data in the memory. After the backup is completed, in one embodiment, the update mechanism of the Redis database to the memory is closed. In one embodiment, the memory may be a magnetic disk. It is understood that data loss can be prevented by backing up various types of basic data of roads in a memory. The real-time traffic road condition information is continuously changed, so that the real-time traffic road condition information does not need to be updated and backed up in a memory, and server resources are prevented from being occupied.
In a specific embodiment, the Redis database is loaded with a redisql module, and the TMC information is updated by an SQL statement command. In the related art, since Redis is a no sql database, the general Redis database itself has no sql module. In this embodiment, by loading the redisql module, the Redis database can use the SQL statement command. Specifically, Structured Query Language (SQL), which is a database Query and programming Language, is used to access data and Query, update, and manage a relational database system; and is also an extension of the database script file. Structured query languages are high-level, non-procedural programming languages that allow users to work on high-level data structures. The method does not require a user to specify a data storage method and does not require the user to know a specific data storage mode, so that different database systems with completely different underlying structures can use the same structured query language as an interface for data input and management. The structured query language statements can be nested, which allows for great flexibility and powerful functionality. When TMC information is updated, namely the road condition identification and the latest refreshing time in the preset elements are updated, the updating of the TMC information can be realized through an SQL statement command, and the method is convenient to use and high in efficiency.
Further, in one embodiment, the preset elements include Tile numbers (Tile ids), Road numbers (Road ids) and corresponding TMC numbers (TMC ids) of each Road, traveling directions (Heading) of the roads, location information (Start coordinates and End coordinates) of the roads and corresponding TMC frame areas (bbmin coordinates and bbmax coordinates), Road condition identifiers (TMC Flag), and latest refresh times of the Road condition identifiers (Update time). And storing the map road data in a Redis database according to preset elements by using a TMC table. For example, the preset elements of the TMC table may be as shown in the following table:
Tile id tile numbering Road id Road number of each road
TMC id TMC numbering Heading Direction of travel of road
Start x X coordinate of road origin Start y Y coordinate of road origin
End x X coordinate of road end point End y Y coordinate of road end point
bbmin x Minimum x-coordinate of TMC bezel bbmin y Minimum y-coordinate of TMC bezel
bbmax x Maximum x-coordinate of TMC bezel bbmax y Maximum y-coordinate of TMC bezel
TMC Flag Road condition sign Update time Latest refresh time
The map road data are stored according to the table structure formed by the preset elements, so that the required map road data can be stored in a centralized and simplified manner, and the resource occupation of a server is reduced; meanwhile, the TMC table can obtain real-time traffic road condition information through an SQL statement command, and the updating efficiency is improved.
Step S220, GPS coordinate information and the vehicle speed of the current vehicle are obtained.
It is understood that positioning and navigation systems rely on sensors and GPS data to determine the position of a vehicle. In one embodiment, when the vehicle travels on a road, a current coordinate position or a travel track of each vehicle may be acquired by a GPS (Global Positioning System) of the vehicle-mounted device, and a travel speed of each vehicle is calculated. In a nationwide TMC system, the GPS coordinate information and the speed of all vehicles at the current time can be acquired, so that the real-time traffic road condition information of a road corresponding to each vehicle can be acquired more accurately.
Step S230, matching the GPS coordinate information of the current vehicle with the tile number, the TMC frame area, and the road traveling direction in the TMC table, and determining the corresponding road where the current vehicle is located when the position information of the vehicle is located in the TMC frame area.
Specifically, the GPS coordinate information of the vehicle is first matched to the tile number, determining the approximate geographic range of the vehicle. I.e. from the position information of the vehicle, it can be determined that the vehicle is within the corresponding tile area. And reducing the geographical range of the vehicle position information through the tile areas. And comparing the position information of the vehicle with the TMC frame area in the tile area, and when the position of the vehicle is located in the TMC frame area, proving that the vehicle is located on the corresponding road in the TMC frame area. In order to distinguish the bidirectional lanes, the road on which the vehicle is located is finally determined according to the traveling direction of the road, and the road is represented by the corresponding road number and TMC number, that is, the corresponding road on which the current vehicle is located is confirmed. Specifically, according to the position information of the road, a corresponding TMC frame area is obtained through calculation.
Referring to fig. 3, fig. 3 is a schematic diagram of location information of a road and a corresponding TMC frame area. In one embodiment, the location information of the link includes a start location coordinate and an end location coordinate of each link, and the TMC frame area is a frame area including the start location coordinate and the end location coordinate of the overlay. It is understood that each link includes a start point and an end point, and in order to clarify the position information of each link, it may be characterized by the position coordinates of the start point and the end point of each link. Specifically, the start position coordinates and the end position coordinates are both geographical position coordinates. As shown in fig. 3, the Start position coordinates include an x-coordinate of the Start point and a y-coordinate of the Start point, which are denoted by (Start x, Start y) in the figure, and the End position coordinates include an x-coordinate of the End point and a y-coordinate of the End point, which are denoted by (End x, End y) in the figure. In order to ensure that the TMC frame area completely covers the start position coordinate and the end position coordinate of the road, redundant positions can be left around the start position coordinate and the end position coordinate, that is, a certain buffer (buffer area) is expanded around the road; while expanding, the TMC frame area is avoided from being too large because the starting point and the end point of the road are approached as much as possible. In one embodiment, the TMC frame may be slightly larger than the area where the road is located on the basis of covering the road. Specifically, as shown in fig. 3, the TMC frame region includes the maximum x-coordinate and y-coordinate greater than and close to the coordinates (start x, start y) and (end x, end y), and the minimum x-coordinate and y-coordinate, that is, the TMC frame region includes the coordinates (bbmax x, bbmax y) and (bbmin x, bbmin y), and a square frame formed with the bbmax coordinate and the bbmin coordinate as diagonal vertices is allowed to completely cover the start position coordinate and the end position coordinate, thereby locking the approximate region range of the corresponding road. It should be noted that bb is a shorthand of weaving for the convenience of identification.
That is, the location information of each road has a corresponding TMC frame area. By matching the current GPS coordinate information of each vehicle with the TMC frame area, when the position coordinates of the vehicle fall into the TMC frame, the vehicle is considered to be located on the road corresponding to the TMC frame. By the design, the calculation amount can be greatly reduced, so that matching can be quickly completed, and the road where the vehicle is located can be confirmed, so that the real-time traffic road condition of the road can be judged in the following.
Step S240, determining whether the current road is congested according to the speed of the current vehicle, and determining whether to update the road condition identifier and the latest refreshing time of the road condition identifier according to the determination result.
After the current vehicle is matched with the corresponding road, the congestion condition of the corresponding road can be determined according to the speed of the current vehicle. When the vehicle speed is less than the preset vehicle speed, the road is in a congestion state; when the speed of a vehicle is greater than the preset speed of the vehicle, the road is in a smooth state. For example, when the vehicle speed is less than or equal to 20 km/h, the road is in a congested state. When the speed of the vehicle is more than 20 km/h, the road is in a smooth state. In order to more accurately obtain whether the road is congested, in one embodiment, the average speed of all vehicles obtaining the current road is calculated, and the congestion state of the current road is determined. When the speed of the vehicle is continuously less than the preset vehicle speed or greater than the preset vehicle speed, it indicates that the road condition of the current road is not changed, and the road condition identifier and the latest refreshing time do not need to be updated, or only the latest refreshing time is updated, and the road condition identifier is kept unchanged.
Step S250, displaying the latest TMC information on the corresponding road in the electronic map; or displaying the recommended congestion avoiding route according to the latest TMC information.
After the latest real-time traffic road information is obtained, the latest real-time traffic road information can be directly displayed on the electronic map, so that a user can conveniently check the current road condition information. Or, in one embodiment, the road congestion weight is calculated according to the TMC information, so as to obtain the optimal congestion avoiding route. For example, when a user needs to navigate a planned route, the road congestion weight can be calculated according to the congestion condition of each road, so that the optimal congestion avoidance route is obtained. The congestion weight can be calculated according to the congestion degree of the road and the distance of the congested road section. For two routes with the same distance, the congestion weight is larger, namely the congestion degree is higher, otherwise, the congestion degree is smoother, and the congestion degree is the optimal route. It is understood that when a new vehicle is added or the speed of the original vehicle is changed, the above steps S220 to S250 may be repeated. The design is that the latest TMC information is obtained by matching the GPS coordinate information and the vehicle speed of a new vehicle with a TMC table; or determining the latest TMC information according to the GPS coordinate information of the original vehicle and the change of the vehicle speed, and displaying the latest TMC information on the corresponding road, so that a user can know the road condition in real time.
In the above embodiment, on one hand, the processing method of the real-time traffic information forms the TMC table by the map road data according to the preset elements and stores the TMC table in the Redis database, so that the real-time traffic road condition information can be conveniently read and updated in time; meanwhile, after the map road data is backed up in the memory, the update mechanism of the Redis database to the memory is closed, so that the occupation of server resources is avoided, the data volume managed by the server is reduced, and the workload of later maintenance is reduced. On the other hand, the GPS coordinate information of the vehicle is matched with the preset elements in the TMC table, the road where the vehicle is located is determined, whether the road is congested or not is further determined according to the vehicle speed, and the TMC information is rapidly updated according to the SQL statement command, so that the latest TMC information corresponding to the road can be rapidly and accurately obtained, and the transmission efficiency of the TMC information is improved.
Corresponding to the embodiment of the application function implementation method, the application also provides a processing system of real-time traffic information, electronic equipment and a corresponding embodiment. Specifically, the system described in this embodiment of the present application may implement part or all of the processes in the embodiment of the method for processing real-time traffic information described in this application in conjunction with fig. 1 to 3.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a real-time traffic information processing system according to an embodiment of the present application.
Referring to fig. 4, the embodiment provides a system for processing real-time traffic information. The system includes an information acquisition module 420, a matching module 430, an update module 440, and a display module 450. Wherein:
and the information acquisition module 420 is used for acquiring the position information and the speed of the current vehicle.
And a matching module 430, configured to match the current vehicle position information and speed acquired by the information acquisition module with a preset TMC table, where the TMC table has map road data stored according to preset elements.
And the updating module 440 is configured to, in the case that the matching module 430 successfully matches the current vehicle position information and speed with the map road data stored according to the preset elements in the preset TMC table, update the map road data corresponding to the preset elements in the TMC table.
The display module 450 is configured to display the TMC information of the TMC table updated by the update module 440 on a corresponding road in the electronic map.
Further, the system of the present application further includes a storage module 410. In one embodiment, the storage module 410 may store the map road data according to preset elements to form a TMC table having a specific table structure. Further, the storage module stores the TMC table with the map road data in a Redis database; and backing up the map road data in a memory, and then closing a Redis database to update a mechanism to the memory. When the TMC information is updated, the updated TMC table is stored in the Redis database. In one embodiment, the information obtaining module 420 is used for obtaining the GPS coordinate information and the vehicle speed of the current vehicle. In one embodiment, the matching module 430 is used to match the GPS coordinate information of each vehicle with the tile number, TMC frame area, and the direction of travel of the road in the TMC table. And after the matching is successful, determining the road corresponding to the vehicle. The updating module 440 determines whether the corresponding road is congested according to the vehicle speed, and updates the TMC table to obtain the latest TMC information. The display module 450 displays the latest TMC information on the corresponding road, so that the user can know the real-time traffic information.
According to the processing system of the real-time traffic information, the map road data are stored through the storage module 410 according to the preset elements to form the TMC table with the specific table structure, on one hand, storage redundant data are eliminated, and light-weight storage of the data is realized; on the other hand, through the file with the specific table structure, even if the nationwide road data is faced, the data can be rapidly read and updated, and the system operation efficiency is improved. The matching module 430 of the application can obtain the real-time traffic information of the road corresponding to the vehicle only by matching the position information and the speed of the vehicle with the corresponding preset elements of the TMC table, and the high-efficiency transmission of the information is realized.
With regard to the system in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
For a detailed description of the real-time traffic data display system, reference may be made to the above description of the processing method of the real-time traffic information, which is not described herein again. The modules in the real-time traffic information processing system can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application. The electronic device may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, vehicle-mounted smart devices, portable wearable devices, and the like.
Referring to fig. 5, an electronic device 500 includes a memory 510 and a processor 520.
The Processor 520 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 510 may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage systems. Wherein the ROM may store static data or instructions for the processor 520 or other modules of the computer. The persistent storage system may be a readable and writable storage system. The persistent storage system may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the persistent storage system employs a mass storage system (e.g., magnetic or optical disk, flash memory) as the persistent storage system. In other embodiments, the persistent storage system may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. Further, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 510 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a digital versatile disc read only (e.g., DVD-ROM, dual layer DVD-ROM), a Blu-ray disc read only, an ultra-dense disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disk, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 510 has stored thereon executable code that, when processed by the processor 520, may cause the processor 520 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the system of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform part or all of the various steps of the above-described method according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the applications disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (8)

1. A real-time traffic information processing method is characterized in that:
acquiring the position information and the speed of the current vehicle;
matching the position information and the speed of the current vehicle with a preset TMC table, wherein the TMC table has map road data stored according to preset elements; the preset elements at least comprise one of the following components: the method comprises the following steps of tile numbers, road numbers of all roads, corresponding TMC numbers, traveling directions of the roads, position information of the roads, corresponding TMC frame areas, road condition identifications and latest refreshing time of the road condition identifications; the matching of the position information and the speed of the current vehicle with a preset TMC table comprises: matching the position information of the current vehicle with the tile number, the TMC frame area and the traveling direction of the road respectively, and determining that the current vehicle is matched with the corresponding road when the position information of the current vehicle is located in the TMC frame area; obtaining the matched road condition identification of the corresponding road and the latest refreshing time of the road condition identification according to the speed of the current vehicle;
under the condition that the position information and the speed of the current vehicle are successfully matched with the map road data stored according to the preset elements in the TMC table, updating the map road data corresponding to the preset elements in the TMC table;
and displaying the updated TMC information of the TMC table on a corresponding road in the electronic map.
2. The method of claim 1, wherein the location information of the links comprises start and end location coordinates of each link, and wherein the TMC bounding box area comprises an area that covers the start and end location coordinates.
3. The method of claim 1, wherein the TMC table is preset in the following manner, comprising:
storing the map road data in a Redis database according to preset elements in the TMC table;
and after the Redis database backs up the map road data in a memory, closing an updating mechanism for writing data to the memory by the Redis database.
4. The method of claim 3, wherein:
and the Redis database is loaded with a redesql module, and the TMC information is updated through an SQL statement command.
5. The method according to any one of claims 1 to 4,
and calculating the road congestion weight according to the TMC information to obtain the optimal congestion avoidance route.
6. A system for processing real-time traffic information, comprising:
the information acquisition module is used for acquiring the position information and the speed of the current vehicle;
the matching module is used for matching the position information and the speed of the current vehicle acquired by the information acquisition module with a preset TMC table, wherein the TMC table has map road data stored according to preset elements; the preset elements at least comprise one of the following components: the method comprises the following steps of tile numbers, road numbers of all roads, corresponding TMC numbers, traveling directions of the roads, position information of the roads, corresponding TMC frame areas, road condition identifications and latest refreshing time of the road condition identifications; the matching of the position information and the speed of the current vehicle with a preset TMC table comprises: matching the position information of the current vehicle with the tile number, the TMC frame area and the traveling direction of the road respectively, and determining that the current vehicle is matched with the corresponding road when the position information of the current vehicle is located in the TMC frame area; obtaining the matched road condition identification of the corresponding road and the latest refreshing time of the road condition identification according to the speed of the current vehicle;
the updating module is used for updating the map road data corresponding to the preset elements in the TMC table under the condition that the matching module successfully matches the position information and the speed of the current vehicle with the map road data stored according to the preset elements in the TMC table; and the display module is used for displaying the TMC information of the TMC table updated by the updating module on a corresponding road in the electronic map.
7. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any one of claims 1-5.
8. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any one of claims 1-5.
CN202011318264.3A 2020-11-23 2020-11-23 Real-time traffic information processing method and system and electronic equipment Active CN112100196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011318264.3A CN112100196B (en) 2020-11-23 2020-11-23 Real-time traffic information processing method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011318264.3A CN112100196B (en) 2020-11-23 2020-11-23 Real-time traffic information processing method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN112100196A CN112100196A (en) 2020-12-18
CN112100196B true CN112100196B (en) 2021-06-25

Family

ID=73785301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011318264.3A Active CN112100196B (en) 2020-11-23 2020-11-23 Real-time traffic information processing method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112100196B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286952B (en) * 2020-12-23 2021-10-01 智道网联科技(北京)有限公司 Method, device and system for processing real-time traffic information
CN112289033B (en) * 2020-12-23 2021-08-03 智道网联科技(北京)有限公司 Real-time traffic information processing method and device
CN112287063A (en) * 2020-12-23 2021-01-29 智道网联科技(北京)有限公司 Method, device and system for processing real-time traffic information
CN112839320B (en) * 2020-12-31 2024-01-16 东软集团股份有限公司 Traffic information transmission method and device, storage medium and electronic equipment
CN113112790B (en) * 2021-03-09 2023-04-18 华东师范大学 Urban road operation situation monitoring method combined with knowledge graph
CN114519061A (en) * 2022-02-16 2022-05-20 北京百度网讯科技有限公司 Map data updating method, device, electronic equipment and medium
CN114281917B (en) * 2022-03-04 2022-07-01 腾讯科技(深圳)有限公司 Road element acquisition method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777253A (en) * 2009-12-24 2010-07-14 戴磊 Real-time road condition acquiring, analyzing and back-feeding and intelligent transportation integrated service system
CN102081855A (en) * 2011-01-21 2011-06-01 中国电信股份有限公司 Real-time traffic information notification system and method, and vehicle-mounted terminal
CN102208133A (en) * 2010-03-31 2011-10-05 株式会社电装 Method of displaying traffic information and displaying traffic camera view for vehicle systems
CN102930737A (en) * 2012-11-09 2013-02-13 深圳市凯立德科技股份有限公司 Traffic information refresh method and server and navigation device
CN106441324A (en) * 2015-08-13 2017-02-22 上海汽车集团股份有限公司 Navigation method, navigation apparatus, road condition information collection method and road condition information collection system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8180558B1 (en) * 2007-04-04 2012-05-15 Xm Satellite Radio Inc. System and method for improved traffic flow reporting using satellite digital audio radio service (SDARS) and vehicle communications, navigation and tracking system
TW201024675A (en) * 2008-12-23 2010-07-01 Mitac Int Corp Electronic map update system and method thereof
US20130346127A1 (en) * 2012-06-22 2013-12-26 Jeffrey E. Jensen Site mapping system having tool load monitoring

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777253A (en) * 2009-12-24 2010-07-14 戴磊 Real-time road condition acquiring, analyzing and back-feeding and intelligent transportation integrated service system
CN102208133A (en) * 2010-03-31 2011-10-05 株式会社电装 Method of displaying traffic information and displaying traffic camera view for vehicle systems
CN102081855A (en) * 2011-01-21 2011-06-01 中国电信股份有限公司 Real-time traffic information notification system and method, and vehicle-mounted terminal
CN102930737A (en) * 2012-11-09 2013-02-13 深圳市凯立德科技股份有限公司 Traffic information refresh method and server and navigation device
CN106441324A (en) * 2015-08-13 2017-02-22 上海汽车集团股份有限公司 Navigation method, navigation apparatus, road condition information collection method and road condition information collection system

Also Published As

Publication number Publication date
CN112100196A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN112100196B (en) Real-time traffic information processing method and system and electronic equipment
CN110914777B (en) High definition map for autonomous vehicle and route storage management system
US7698060B2 (en) Map data product and map data processing device
JP3842799B2 (en) Map data providing device
US10578444B2 (en) Guidance device, guidance method, and guidance program
CN109387208B (en) Map data processing method, device, equipment and medium
US20230075758A1 (en) Travel route planning method and travel route recommendation method
US20230409611A1 (en) Improving Offline Map Data Availability
US20210241625A1 (en) Method and apparatus for providing large scale vehicle routing
US20170307383A1 (en) In-vehicle apparatus and map data management system
EP4086572A1 (en) Method and device for accessing map data and electronic device
CN116481509A (en) Map updating method, device, equipment and computer readable storage medium
US10902655B1 (en) Editing cached map titles
CN112097785B (en) Vehicle-mounted intelligent device data processing method and device and electronic device
CN112289033A (en) Real-time traffic information processing method and device
CN113010622A (en) Real-time traffic data processing method and device and electronic equipment
US20130275428A1 (en) Navigation device
CN112287062B (en) Real-time traffic information synchronization method and device and electronic equipment
WO2023207364A1 (en) Map data loading method and apparatus, computer device, and storage medium
JP7241714B2 (en) Information processing device, route guidance device, program, and information processing method
CN113468198B (en) Map updating method and device, electronic equipment and medium
US10650589B1 (en) Generating surface approximations using curvature integrals for surface visualization rendering
US20240175704A1 (en) Method, apparatus, and computer program product for intelligent gap placement within mobility data using junctions inferred by features of the mobility data
US11337035B1 (en) Selective enabling of offline positioning
JPH11344351A (en) Navigation system, navigation method and recording medium with recorded softwafer for navigation

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
GR01 Patent grant
GR01 Patent grant