CN112289033A - Real-time traffic information processing method and device - Google Patents

Real-time traffic information processing method and device Download PDF

Info

Publication number
CN112289033A
CN112289033A CN202011539398.8A CN202011539398A CN112289033A CN 112289033 A CN112289033 A CN 112289033A CN 202011539398 A CN202011539398 A CN 202011539398A CN 112289033 A CN112289033 A CN 112289033A
Authority
CN
China
Prior art keywords
information
tmc
server
updated
map
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.)
Granted
Application number
CN202011539398.8A
Other languages
Chinese (zh)
Other versions
CN112289033B (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.)
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Network Technology Beijing 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 Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Network Technology Beijing Co Ltd
Priority to CN202011539398.8A priority Critical patent/CN112289033B/en
Publication of CN112289033A publication Critical patent/CN112289033A/en
Application granted granted Critical
Publication of CN112289033B publication Critical patent/CN112289033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/2308Concurrency control
    • 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

Abstract

The application relates to a method and a device for processing real-time traffic information. The method comprises the following steps: receiving position information and vehicle speed of a user side; inquiring whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed; if the TMC information of the auxiliary server needs to be updated, updating the TMC information corresponding to the auxiliary server; and sending the updated TMC information to the corresponding user side. In the method for processing the real-time traffic information, the position information of the user side is sent to the corresponding auxiliary servers, namely, different auxiliary servers are responsible for TMC information requests of the user sides in different map areas, the corresponding auxiliary servers automatically update the TMC information, and then the updated TMC information is sent to the user side. By means of the design, the TMC information is updated independently by the auxiliary servers in different areas, the data processing load of each server is reduced, the data processing efficiency is improved, meanwhile, the efficiency of the user side for receiving the latest real-time traffic information is improved, and the user experience is improved.

Description

Real-time traffic information processing method and device
Technical Field
The present application relates to the field of navigation technologies, and in particular, to a method and an apparatus 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 sent to the electronic map of the terminal to be displayed, so that a traveler can be prompted to avoid a crowded road section, and a driving route can be reasonably planned.
In the related art, for a nationwide TMC system, a large server receives the location information and the vehicle speed of each user terminal in real time to query and update TMC information, and the server needs to process even millions of TMC information every minute. However, TMC information needs to be updated in real time, and due to a large data load, a CPU of the server is heavily loaded, and data processing efficiency is affected, so that update of a user side is delayed.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a method and a device for processing real-time traffic information, and the method and the device for processing the real-time traffic information can reduce the load of a single server and improve the data updating efficiency.
A first aspect of the present application provides a method for processing real-time traffic information, including:
receiving position information and vehicle speed of a user side;
inquiring whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed;
if the TMC information of the auxiliary server needs to be updated, updating the TMC information corresponding to the auxiliary server;
and sending the updated TMC information to the corresponding user side.
In one embodiment, after the updating the TMC information corresponding to the secondary server, the method further includes:
and sending the position information and the vehicle speed to a main server, and updating the corresponding TMC information by the main server.
In one embodiment, when the map road data version is upgraded, each secondary server receives the upgraded map road data corresponding to the primary server.
In one embodiment, the querying whether the TMC information of the corresponding secondary server needs to be updated according to the location information and the vehicle speed includes:
determining a map road stored in an auxiliary server corresponding to the position information according to a map area corresponding to the position information;
and inquiring whether the TMC information of the corresponding map road needs to be updated or not according to the vehicle speed.
In one embodiment, the updating TMC information corresponding to the secondary server includes:
updating the TMC information of the map road data stored according to preset elements according to the vehicle speed; the preset elements comprise 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.
In one embodiment, the number of the secondary servers is more than one, and each secondary server comprises a corresponding secondary Redis database; and the map road data is stored in the auxiliary Redis database according to the preset elements.
In one embodiment, each auxiliary server stores the corresponding map road data according to map area division; wherein all of the map road data is additionally stored in a main server.
In one embodiment, the main server is provided with a main Redis database, and all the map road data are stored in the main Redis database according to the preset elements.
A second aspect of the present application provides a device for processing real-time traffic information, which includes:
the receiving module is used for receiving the position information and the vehicle speed of the user side;
the query module is used for querying whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed;
the updating module is used for updating the TMC information corresponding to the auxiliary server if the TMC information of the auxiliary server needs to be updated;
and the sending module is used for sending the updated TMC information to the corresponding user side.
A third aspect of the 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:
in the method for processing the real-time traffic information, the position information of the user side is sent to the corresponding auxiliary servers, namely, different auxiliary servers are responsible for TMC information requests of the user sides in different map areas, the corresponding auxiliary servers autonomously inquire and update respective TMC information, and then the updated TMC information is sent to the user side. By means of the design, the server is divided into the regions to assist the servers to query and update TMC information independently, data processing load of each server is reduced, data processing efficiency is improved, meanwhile, the efficiency of a user side for receiving latest real-time traffic information is improved, and user experience is improved.
Further, the technical scheme of the application can also send the message of needing to update the TMC information to the main server through the auxiliary server, and then the main server automatically updates the corresponding TMC information, so that the data of the main server and each auxiliary server are synchronized.
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 another schematic flow chart of a processing method of real-time traffic information according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a device for processing real-time traffic information according to 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 the nationwide TMC system, generally, one server processes TMC information requests from nationwide, millions of TMC information transmissions need to be processed per minute, and the data load is large, which may delay data update of part of the user terminals. In view of the above problems, embodiments of the present application provide a method for processing real-time traffic information, which can reduce a load of a server and improve data update efficiency. 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:
and step S110, receiving the position information and the vehicle speed of the user terminal.
Specifically, according to the map area to which the position information belongs, the user side sends the position information and the vehicle speed to the corresponding auxiliary server, and the auxiliary server receives the position information and the vehicle speed of the user side.
And step S120, inquiring whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed.
In one embodiment, the number of secondary servers is more than one. Specifically, whether the TMC information of the corresponding auxiliary server needs to be updated is inquired according to the position information and the vehicle speed. That is, the corresponding secondary server actively queries whether TMC information stored in itself needs to be updated. The TMC information is used to represent real-time traffic information and to determine whether the road where the current location information is located is congested. And after determining the corresponding road according to the position information, judging the congestion condition of the current road according to the speed of the vehicle. In this embodiment, the congestion condition of the original TMC information of the secondary server may be compared with the latest received vehicle speed, and different vehicle speeds correspond to different congestion degrees. When the congestion degree corresponding to the vehicle speed changes, it is described that the TMC information of the auxiliary server needs to be updated, otherwise, the TMC information does not need to be updated. It can be understood that, since the number of the secondary servers is more than one, the location information of different ues may correspond to different secondary servers. And respectively judging whether the corresponding TMC information needs to be updated or not according to the position information and the vehicle speed received by different auxiliary servers. I.e., the update requirements of the secondary servers are different. And if the update is needed, correspondingly updating the TMC information of the corresponding auxiliary server.
Step S130, if the TMC information of the secondary server needs to be updated, updating the TMC information corresponding to the secondary server.
Because the number of the auxiliary servers is more than one, each auxiliary server updates the corresponding TMC information according to the position information and the vehicle speed according to the respective responsible map area. Namely, different auxiliary servers do not interfere with each other, and independent updating is respectively realized.
Step S140, sending the updated TMC information to the corresponding user side.
And the auxiliary server sends the updated TMC information to the corresponding user side. And if the TMC information of the auxiliary server does not need to be updated, namely the TMC information stored by the auxiliary server does not change, sending the original TMC information currently stored by the auxiliary server to the corresponding user side. In one embodiment, when the user terminal needs to query the TMC information, the user terminal initiates a request. And the auxiliary server corresponding to the current position information of the user side sends the updated TMC information to the user side. By the design, the user side is prevented from being interfered by unnecessary data, and the auxiliary server sends the corresponding TMC information after the user side actively requests the TMC information.
In the method for processing the real-time traffic information, the position information of the user side is sent to the corresponding auxiliary servers, namely, different auxiliary servers are responsible for TMC information requests of the user sides in different map areas, the corresponding auxiliary servers autonomously inquire and update respective TMC information, and then the updated TMC information is sent to the user side. By means of the design, the data processing load of each server is reduced, the data processing efficiency is improved, the efficiency of a user side for receiving the latest real-time traffic information is improved, and the user experience is improved in a mode that the TMC information is automatically inquired and updated by the sub-area server and the sub-auxiliary server.
Example two
To further describe the processing method of the real-time traffic information of the present application, referring to fig. 2, the processing method of the real-time traffic information includes:
step S210, at least one auxiliary server receives the position information and the vehicle speed of the user side, wherein each auxiliary server stores map road data divided according to map areas in advance.
In one specific embodiment, all the map road data is divided according to the map areas, and the map road data of each map area is stored in the corresponding auxiliary database. And when the position information of the user side belongs to a certain map area range, the auxiliary server storing the map road data of the map area receives the position information and the vehicle speed of the user side.
Further, in order to facilitate the distribution and storage of map road data, in one specific embodiment, a corresponding number of secondary servers are set according to the number of map tiles; and dividing the map road data into a plurality of map areas according to the map tiles, and distributing and storing the map road data corresponding to each divided map area to the corresponding auxiliary server.
In the related art, the electronic map can be simulated and built through a tile map pyramid model. Specifically, the tile map pyramid model is a multi-resolution hierarchical model, and the resolution is lower and lower from the bottom layer to the top layer of the tile pyramid, but the represented geographic range is unchanged. Firstly, determining the number N of zoom levels to be provided by a map service platform, taking a map picture with the highest zoom level and the largest map scale as the bottom layer of a pyramid, namely a layer 0, partitioning the map picture, cutting the map picture from the left upper corner of the map picture to the right and from the top to the bottom, and dividing the map picture into square map tiles with the same size (such as 256 multiplied by 256 pixels) to form a layer 0 tile matrix; on the basis of the map picture of the 0 th layer, generating the map picture of the 1 st layer by a method of synthesizing one pixel by every 2 multiplied by 2 pixels, partitioning the map picture, and dividing the map picture into square map tiles with the same size as the next layer to form a tile matrix of the 1 st layer; generating a layer 2 tile matrix by the same method; …, respectively; this continues until layer N-1, which forms the entire tile pyramid.
In the application, the map road data is a part of the map data, and the TMC information can be updated only by storing the tile layer where the map road data is located, so that the storage of redundant data is reduced, and the memory is saved. In order to uniformly distribute and store the map road data in each auxiliary server, in one specific embodiment, the number of the map road data to be distributed is calculated and obtained according to the number of map tiles and the number of the auxiliary servers; and distributing and storing each piece of map road data in a corresponding auxiliary server. In one embodiment, the number of copies of the map road data to be distributed is calculated by dividing the number of map tiles by the number of secondary servers. That is, all the map road data is distributed and stored in the plurality of sub servers set by the preset multiple. In one embodiment, the secondary servers are 4, 16, or 64. Such a number, when the tiles are divided by, for example, 256 × 256 pixels, is 65536 tiles in total, and by setting the appropriate number of secondary servers, ensures that the map road data corresponding to all the tiles is distributed, and facilitates the uniform distribution of the map data corresponding to each tile on each secondary server. That is, the secondary server may be set by a preset multiple of 4.
And step S220, inquiring whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed.
Specifically, firstly, according to a map area corresponding to the position information, determining a map road stored in an auxiliary server corresponding to the position information; and inquiring whether the TMC information of the corresponding map road needs to be updated or not according to the vehicle speed.
In one embodiment, the map road data of each map area is stored in the secondary server according to preset elements. The preset elements comprise tile numbers, road numbers of all roads and corresponding TMC numbers, traveling directions of the roads, position information of the roads and corresponding TMC frame areas, road condition identifications and latest refreshing time of the road condition identifications. Wherein, the TMC bounding box (bounding box) may be obtained by calculating 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 Update 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 information of the corresponding road can be reflected in real time, namely, whether the road is congested at the latest Update time.
In one specific embodiment, the map road data is respectively stored in the main server and the auxiliary server according to the preset elements, so that the map road data can be quickly read, redundant data can be eliminated, and the data storage capacity can be reduced. In order to ensure that the TMC information corresponding to the map road data in the main server is in the latest state, the main server may update in real time according to the user vehicle location information according to the preset elements.
Specifically, first, GPS coordinate information of the position information of the vehicle is matched with the tile number, and the approximate geographical range of the vehicle is determined. 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. And then according to the speed of the vehicle, whether the road is congested can be confirmed, so that real-time traffic information of the corresponding road is obtained.
In order to realize quick matching of the position information of the user side and the TMC information of the auxiliary server, specifically, the GPS coordinate information of the position information of the vehicle is firstly matched with the tile number, and the approximate geographic range of the vehicle is determined. 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. Further, when inquiring whether the TMC information of the auxiliary server needs to be updated, the road condition identification corresponding to each road is compared with the currently received vehicle speed. The congestion state reflected by the road condition identification is related to the vehicle speed. And matching the vehicle speed with the road condition identification in the map road data stored in the corresponding auxiliary server to judge whether the TMC information in the auxiliary server needs to be updated. For example, when the vehicle speed is slow, the congestion of different degrees may occur in the road condition, and the threshold value of the vehicle speed may be set to correspond to the congestion of different degrees, so as to update the corresponding road condition identifier, so as to embody the latest real-time traffic road condition information.
Step S230, if the TMC information of the secondary server needs to be updated, updating the TMC information corresponding to the secondary server.
It will be appreciated that updating is required when the TMC information stored by the secondary server does not correspond to the currently received vehicle speed. And adjusting the TMC information of the auxiliary server to a state consistent with the current vehicle speed. For example, the congestion degree of the road condition indicator is adjusted to a state corresponding to the vehicle speed. Of course, if the TMC information of the secondary server does not need to be updated, this step is skipped and step S250 is directly performed.
Step S240, if the TMC information of the secondary server needs to be updated, the location information and the vehicle speed are sent to the primary server, so that the primary server updates the corresponding TMC information.
In this embodiment, in order to ensure data backup, a main server is further included. In one embodiment, each auxiliary server stores corresponding map road data according to map area division; wherein, all map road data are additionally stored in the main server. That is, when the number of the sub servers is plural, all the map road data is stored in a distributed manner in the different sub servers. All the map road data cooperatively stored by the plurality of auxiliary servers is the same as all the map road data stored by the main server. When the TMC data of the auxiliary server is updated, in order to ensure the data synchronization of the main server, the auxiliary server sends the position information and the vehicle speed to the main server, so that the main server updates the corresponding TMC data according to the position information and the vehicle speed.
In order to ensure the consistency of data updating and improve the updating efficiency, in one embodiment, the main server is provided with a main Redis database, and all map road data are stored in the main Redis database according to preset elements. 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 saving map road data in Redis database, through caching at Redis, avoid calling the local data of server to realize quick reading, reduce simultaneously and occupy the server, thereby reduce the hardware cost. In this embodiment, not only the primary server is provided with the primary Redis database, but also in one embodiment, the number of the secondary servers is more than one, and each secondary server includes a corresponding secondary Redis database; the map road data are stored in an auxiliary Redis database according to preset elements. Furthermore, the auxiliary Redis database of each auxiliary server stores corresponding map road data according to map area division. Furthermore, the auxiliary Redis database is divided according to map areas, and the map road data are stored according to preset elements. By the aid of the design, the auxiliary server and the main server can rapidly update the map road data stored according to the preset elements through the Redis database, and data synchronization between the main server and the auxiliary server is facilitated.
It is to be understood that if the TMC information of the secondary server does not need to be updated, i.e. the TMC information of the primary server does not need to be updated, step S250 is directly performed by skipping step S240.
In other embodiments, the host server is also used to store the base map data. When the city construction changes, the map road data of the corresponding basic map data may change, and the map road data version needs to be upgraded. And each main server synchronously sends the map road data of the latest version to the auxiliary servers, and each auxiliary server receives the updated map road data corresponding to the main server. Specifically, according to the map area, map road data of a certain map area corresponding to the upgraded version is synchronized to the corresponding auxiliary server, so that the map road data of the auxiliary server is ensured to be maintained as the latest version.
Step S250, if the TMC information is updated, sending the updated TMC information to a corresponding user side; and if the TMC information is not updated, sending the original TMC information stored by the auxiliary server to the user side.
It is understood that this step may be performed simultaneously with step S240 or in steps, without time limitation. That is, the secondary server can simultaneously send the updated TMC information to the user side and send the update demand to the primary server. If step S230 determines that the TMC information does not need to be updated, the original TMC information stored in the secondary server is directly sent to the user side. Further, the auxiliary server can send the latest TMC information to the user side according to the active request of the user side when the user needs the auxiliary server, so that the auxiliary server is prevented from being frequently and actively sent to the user side after the TMC information is updated every time, and unnecessary interaction is reduced.
In the method for processing real-time traffic information of this embodiment, each auxiliary server stores TMC information corresponding to map road data in different map areas, and queries whether the respective TMC information needs to be updated according to the corresponding location information and vehicle speed. When updating is needed, on one hand, the corresponding auxiliary server realizes automatic updating of TMC information according to the position information and the vehicle speed; on the other hand, an update message is sent to the main server so that the main server can update automatically according to the position information and the vehicle speed. By the design, the main server and each auxiliary server are independently updated, the data processing load of each auxiliary server is reduced, the data synchronization of the main server and the auxiliary server is ensured, and the phenomenon that the load overload on a single server affects the overall operation efficiency of the system is avoided.
Corresponding to the embodiment of the application function implementation method, the application also provides a device for processing real-time traffic information and a corresponding embodiment. Specifically, the apparatus 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-2.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a device for processing real-time traffic information according to an embodiment of the present application.
Referring to fig. 3, the embodiment provides a processing apparatus of real-time traffic information. The apparatus includes a receiving module 310, a querying module 320, an updating module 330, and a sending module 340. Wherein:
the receiving module 310 is used for receiving the location information and the vehicle speed of the user terminal. The query module 320 is configured to query whether the TMC information of the corresponding auxiliary server needs to be updated according to the location information and the vehicle speed received by the receiving module. The updating module 330 is configured to update the TMC information corresponding to the secondary server if the TMC information of the secondary server needs to be updated. The sending module 340 is configured to send the TMC information updated by the updating module 330 to the corresponding user side.
Further, the apparatus of the present application further includes a storage module 300. The storage module 300 is used for storing map road data divided according to a map area in advance. And when the number of the auxiliary servers is more than one, the receiving module of each auxiliary server receives the corresponding position information and the corresponding vehicle speed according to the map area corresponding to the position information. The query module 320 determines a map road stored in the auxiliary server corresponding to the position information according to the map area corresponding to the position information; and inquiring whether the TMC information of the corresponding map road needs to be updated or not according to the vehicle speed. If the TMC information of the corresponding map road in the secondary server needs to be updated, the update module 330 performs corresponding update. The sending module 340 is configured to send the TMC information updated by the updating module 330 to the corresponding user side. And the sending module 340 is further configured to send the location information and the vehicle speed to the main server, so that the main server updates the corresponding TMC information. If the TMC information of the secondary server does not need to be updated, the sending module 340 sends the TMC information currently stored by the secondary server to the user side.
According to the processing device of the real-time traffic information, the storage module of each auxiliary server stores the corresponding TMC information according to the map area, and after the receiving module of each auxiliary server receives the position information and the vehicle speed, the inquiry module inquires whether the corresponding TMC information needs to be updated or not. And then, the sending module sends the TMC information updated by the updating module to the user side according to the active request of the user side, so that the user side can be ensured to receive the latest real-time traffic road condition information. Each auxiliary server independently queries, updates and sends TMC information, so that the data processing load concentrated on a single server is reduced, the overall data processing efficiency is improved, the efficiency of a user side for receiving the latest real-time traffic information is improved, and the user experience is improved. In addition, when the TMC information needs to be updated, the updating message is sent to the main server through the sending module, and when the updating is not needed, the interaction with the main server is not needed, so that the interaction frequency with the main server is reduced, and the operation efficiency of the main server is improved.
For a specific description of the processing device of the real-time traffic information, 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 various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations 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.
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 device 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 apparatus 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 (10)

1. A method for processing real-time traffic information is characterized in that:
receiving position information and vehicle speed of a user side;
inquiring whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed;
if the TMC information of the auxiliary server needs to be updated, updating the TMC information corresponding to the auxiliary server;
and sending the updated TMC information to the corresponding user side.
2. The method of claim 1, wherein after updating the TMC information corresponding to the secondary server, the method further comprises:
and sending the position information and the vehicle speed to a main server, and updating the corresponding TMC information by the main server.
3. The method of claim 2, further comprising:
when the map road data version is upgraded, each auxiliary server receives the upgraded map road data corresponding to the main server.
4. The method according to claim 1, wherein the querying whether the TMC information of the corresponding secondary server needs to be updated according to the location information and the vehicle speed comprises:
determining a map road stored in an auxiliary server corresponding to the position information according to a map area corresponding to the position information;
and inquiring whether the TMC information of the corresponding map road needs to be updated or not according to the vehicle speed.
5. The method of claim 1, wherein the updating the TMC information corresponding to the secondary server comprises:
updating the TMC information of the map road data stored according to preset elements according to the vehicle speed; the preset elements comprise 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.
6. The method of claim 5, wherein the number of secondary servers is more than one, each secondary server comprising a corresponding secondary Redis database; and the map road data is stored in the auxiliary Redis database according to the preset elements.
7. The method of claim 5, wherein each of the secondary servers stores the corresponding map road data according to map area division; wherein all of the map road data is additionally stored in a main server.
8. The method of claim 7, wherein:
the main server is provided with a main Redis database, and all the map road data are stored in the main Redis database according to the preset elements.
9. A device for processing real-time traffic information, comprising:
the receiving module is used for receiving the position information and the vehicle speed of the user side;
the query module is used for querying whether the TMC information of the corresponding auxiliary server needs to be updated or not according to the position information and the vehicle speed;
the updating module is used for updating the TMC information corresponding to the auxiliary server if the TMC information of the auxiliary server needs to be updated;
and the sending module is used for sending the updated TMC information to the corresponding user side.
10. 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-8.
CN202011539398.8A 2020-12-23 2020-12-23 Real-time traffic information processing method and device Active CN112289033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011539398.8A CN112289033B (en) 2020-12-23 2020-12-23 Real-time traffic information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011539398.8A CN112289033B (en) 2020-12-23 2020-12-23 Real-time traffic information processing method and device

Publications (2)

Publication Number Publication Date
CN112289033A true CN112289033A (en) 2021-01-29
CN112289033B CN112289033B (en) 2021-08-03

Family

ID=74426915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011539398.8A Active CN112289033B (en) 2020-12-23 2020-12-23 Real-time traffic information processing method and device

Country Status (1)

Country Link
CN (1) CN112289033B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010622A (en) * 2021-03-08 2021-06-22 智道网联科技(北京)有限公司 Real-time traffic data processing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1969574A2 (en) * 2005-12-08 2008-09-17 Motorola, Inc. Navigation route information for traffic management
CN103023991A (en) * 2012-11-28 2013-04-03 深圳市航盛电子股份有限公司 Realtime traffic information reporting method and system based on internet protocol (IP) packet
CN204537459U (en) * 2015-03-20 2015-08-05 江苏大学 A kind of intelligent driving backup system based on car networking
CN103971531B (en) * 2013-02-01 2016-07-06 北京掌行通信息技术有限公司 A kind of acquisition methods of graphical real-time traffic information
CN106169246A (en) * 2016-08-04 2016-11-30 苏州运诺帷交通规划咨询有限公司 A kind of system and method being obtained road real-time road by API
CN111862656A (en) * 2020-07-21 2020-10-30 北京小马智行科技有限公司 Map updating method and device for intelligent carrier, storage medium and processor
CN112100196A (en) * 2020-11-23 2020-12-18 蘑菇车联信息科技有限公司 Real-time traffic information processing method and system and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1969574A2 (en) * 2005-12-08 2008-09-17 Motorola, Inc. Navigation route information for traffic management
CN103023991A (en) * 2012-11-28 2013-04-03 深圳市航盛电子股份有限公司 Realtime traffic information reporting method and system based on internet protocol (IP) packet
CN103971531B (en) * 2013-02-01 2016-07-06 北京掌行通信息技术有限公司 A kind of acquisition methods of graphical real-time traffic information
CN204537459U (en) * 2015-03-20 2015-08-05 江苏大学 A kind of intelligent driving backup system based on car networking
CN106169246A (en) * 2016-08-04 2016-11-30 苏州运诺帷交通规划咨询有限公司 A kind of system and method being obtained road real-time road by API
CN111862656A (en) * 2020-07-21 2020-10-30 北京小马智行科技有限公司 Map updating method and device for intelligent carrier, storage medium and processor
CN112100196A (en) * 2020-11-23 2020-12-18 蘑菇车联信息科技有限公司 Real-time traffic information processing method and system and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晓斌: "交通出行信息服务平台及其关键技术应用研究", 《中国博士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010622A (en) * 2021-03-08 2021-06-22 智道网联科技(北京)有限公司 Real-time traffic data processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112289033B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN112100196B (en) Real-time traffic information processing method and system and electronic equipment
CN102128629A (en) Path planning method, navigation system and geographical information system
CN110134755B (en) Map updating method, device, equipment, server and medium
CN101358851A (en) Method for navigating data in local caching, system and customer terminal device
CN105893565B (en) The foundation in three-dimensional map data library, the transmission method of three-dimensional map data and device
JP5732340B2 (en) Map data distribution server, map data distribution system, and map data distribution method
US20150254270A1 (en) Method for distributing data associated with objects in digital map data
CN112214561B (en) Map data processing method, map data processing device, computer equipment and storage medium
CN112289033B (en) Real-time traffic information processing method and device
EP4086783A1 (en) Electronic horizon creation method and system
US20230375363A1 (en) Map tile update method and apparatus
CN107295047B (en) Map data updating method, device and system
JP4807010B2 (en) Map data update system
JP2004212244A (en) Navigation system
CN112287063A (en) Method, device and system for processing real-time traffic information
CN112579716A (en) Map updating method, device and storage medium
CN112097785B (en) Vehicle-mounted intelligent device data processing method and device and electronic device
US8457886B2 (en) Method for operating a navigation system
CN112287062B (en) Real-time traffic information synchronization method and device and electronic equipment
CN103512578A (en) Navigation apparatus for updating objects by category and update method thereof
CN112286952B (en) Method, device and system for processing real-time traffic information
CN111988746B (en) Method, system and storage medium for displaying real-time moving track of vehicle
JP2001159526A (en) On-vehicle information processing device
US20230221936A1 (en) Geographic deployment of applications to edge computing nodes
KR100856205B1 (en) Route guide system for dynamic updating digital map data and method thereof

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