CN112287063A - Method, device and system for processing real-time traffic information - Google Patents

Method, device and system for processing real-time traffic information Download PDF

Info

Publication number
CN112287063A
CN112287063A CN202011545194.5A CN202011545194A CN112287063A CN 112287063 A CN112287063 A CN 112287063A CN 202011545194 A CN202011545194 A CN 202011545194A CN 112287063 A CN112287063 A CN 112287063A
Authority
CN
China
Prior art keywords
server
auxiliary
information
updated
tmc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011545194.5A
Other languages
Chinese (zh)
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 CN202011545194.5A priority Critical patent/CN112287063A/en
Publication of CN112287063A publication Critical patent/CN112287063A/en
Pending legal-status Critical Current

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/29Geographical information databases
    • 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
    • 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/00Systems or methods specially adapted for 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

Abstract

The application relates to a method, a device and a system for processing real-time traffic information. The method comprises the following steps: at least one auxiliary server inquires whether the corresponding TMC information needs to be updated; if the TMC information of the auxiliary server needs to be updated, sending an update request to the main server; and receiving TMC information which is sent by the main server and is updated according to the updating request. According to the technical scheme, at least one auxiliary server is used for respectively inquiring whether TMC information needs to be updated or not, the main server is used for respectively updating the auxiliary servers needing to be updated according to the updating request, and the corresponding auxiliary servers receive the updated TMC information to complete updating. According to the technical scheme, the query step and the updating step are distributed on the main server and the auxiliary server and are correspondingly carried out, processing on one server is avoided, and therefore the data processing load of a single server is reduced, and meanwhile the updating efficiency of TMC information is improved.

Description

Method, device and system for processing real-time traffic information
Technical Field
The present application relates to the field of navigation technologies, and in particular, to a method, an apparatus, and a system 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, a nationwide TMC system is generally processed by a large server, and the server needs to receive information of a user side, autonomously query and update related data according to the information of the user side, and send millions of updated TMC information to the user side every minute. The data processing capacity is large, the system load is heavy, and the system operation efficiency and the data updating efficiency are influenced.
Disclosure of Invention
In order to solve the problems in the related art, the application provides a method, a device and a system for processing real-time traffic information.
A first aspect of the present application provides a method for processing real-time traffic information, including:
at least one auxiliary server inquires whether the corresponding TMC information needs to be updated;
if the TMC information of the auxiliary server needs to be updated, sending an update request to the main server;
and receiving TMC information which is sent by the main server and is updated according to the updating request.
In one embodiment, the querying, by the at least one secondary server, whether the corresponding TMC information needs to be updated includes:
each auxiliary server inquires whether TMC information corresponding to the map road data is the same as TMC information of the map road data corresponding to the main server according to a preset period; map road data is stored in each auxiliary server and each main server in advance;
and if the TMC information in the auxiliary server is different from the corresponding TMC information in the main server, determining that the TMC information in the auxiliary server needs to be updated.
In one embodiment, the pre-storing map road data in each of the secondary server and the primary server includes:
the main server uniformly stores all the map road data; and
and each auxiliary server stores the corresponding map road data according to the map area.
In one embodiment, each of the secondary servers respectively stores the corresponding map road data according to a map area, including:
setting a corresponding number of auxiliary servers according to the number of the map tiles;
and dividing the map road data according to map tiles, and distributing and storing the divided map road data to the corresponding auxiliary server.
In one embodiment, the dividing the map road data according to map tiles, and allocating and storing the divided map road data to the corresponding secondary servers includes:
calculating the number of the map road data to be distributed according to the number of the map tiles and the number of the auxiliary servers;
and distributing and storing each piece of the map road data in the corresponding auxiliary server.
In one embodiment, the number of secondary servers is a multiple of 4.
In one embodiment, the master server is provided with a master Redis database, and the TMC information of the master server is stored in the master Redis database according to preset elements; and/or each auxiliary server is provided with a corresponding auxiliary Redis database, and TMC information of the auxiliary server is stored in the auxiliary 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 query module is used for querying whether the corresponding TMC information needs to be updated;
a request sending module, configured to send an update request to the primary server if the TMC information of the secondary server needs to be updated;
and the information receiving module is used for receiving TMC information which is sent by the main server and is updated according to the updating request.
A third aspect of the present application provides a system for processing real-time traffic information, which includes a primary server and at least one secondary server, wherein:
the auxiliary server is used for inquiring whether the corresponding TMC information needs to be updated; if the TMC information of the auxiliary server needs to be updated, sending an update request to the main server; receiving TMC information which is sent by the main server and is updated according to the updating request;
and the main server is used for sending the TMC information to the corresponding auxiliary server according to the updating request sent by the auxiliary server.
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:
according to the technical scheme, at least one auxiliary server is used for respectively inquiring whether TMC information needs to be updated or not, the main server is used for respectively updating the auxiliary servers needing to be updated according to the updating request, and the corresponding auxiliary servers receive the updated TMC information to complete updating. According to the technical scheme, the query step and the update step are distributed on the main server and the auxiliary server to be correspondingly carried out, namely the auxiliary server is responsible for querying, the main server is responsible for updating, various tasks are prevented from being processed on one server in a centralized mode, and therefore the main server and the auxiliary server cooperate with each other to improve the updating efficiency of TMC information while the data processing load of a single server is reduced.
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 real-time traffic information processing apparatus 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.
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:
step S110, at least one auxiliary server queries whether the corresponding TMC information needs to be updated.
In one embodiment, the auxiliary server is configured to receive the location information of the user side, and send the corresponding TMC information to the user side according to the location information, so that the user can view the latest real-time traffic road condition information. In order to ensure that the TMC information obtained by the user is as new as possible, it can be determined whether the TMC information needs to be updated by querying the TMC information of the secondary server. Further, the number of secondary servers may be one or more than one. When the number of the auxiliary servers is at least one, each auxiliary server stores TMC information, and each auxiliary server searches whether the corresponding TMC information needs to be updated or not.
Step S120, if the TMC information of the auxiliary server needs to be updated, an update request is sent to the main server.
When the TMC information of the auxiliary server needs to be updated, the updating request is sent to the main server, so that the main server can perform corresponding updating actions subsequently. Further, when the number of the auxiliary servers is more than one, the updating requirements of each auxiliary server are different, namely when a part of auxiliary servers needing to update TMC information exist, corresponding updating requests are sent to the main server; and the rest auxiliary servers which do not need to be updated are kept unchanged.
Step S130, receiving TMC information which is sent by the main server and updated according to the update request.
Specifically, the main server sends the latest TMC information stored on the main server to the auxiliary server as the TMC information that needs to be updated by the auxiliary server according to the update request of the auxiliary server, and the auxiliary server receives the corresponding TMC information and replaces the original TMC information in the auxiliary server, so that the TMC information on the auxiliary server is kept in a relatively latest state. In order to ensure that the TMC information stored in the main server is kept up to date, the main server receives the position information and the vehicle speed of the user side in real time, and automatically updates the stored TMC information according to the corresponding position information and the vehicle speed, so that the TMC information sent to the auxiliary server by the main server is ensured to be the latest TMC information.
In the method for processing the real-time traffic information, the at least one auxiliary server respectively inquires whether the TMC information needs to be updated, the main server respectively updates the auxiliary servers needing to be updated according to the updating request, and the corresponding auxiliary servers receive the updated TMC information to complete the updating. According to the technical scheme, the query step and the update step are distributed on the main server and the auxiliary server to be correspondingly carried out, namely the auxiliary server is responsible for querying, the main server is responsible for updating, various tasks are prevented from being processed on one server in a centralized mode, and therefore the main server and the auxiliary server cooperate with each other to improve the updating efficiency of TMC information while the data processing load of a single server is reduced.
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, pre-storing map road data in each of the auxiliary server and the main server.
In one embodiment, the main server stores all the map road data uniformly; and each auxiliary server stores the corresponding map road number according to the map area. That is, each secondary server only stores different parts of all the map road data, and the set of all the map road data stored by each secondary server is all the map road data stored on the primary server. 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 according to map tiles, and distributing and storing the divided map road data 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.
It is understood that the map road data is a part of the map data. In the application, the storage of redundant data can be reduced and the memory can be saved only by storing the tile layer where the map road data are located. 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. In one embodiment, the number of secondary servers may be a multiple of 4 but is not limited to such. In one embodiment, the number of secondary servers may be 4, 16, 64, etc. 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. Meanwhile, the number of auxiliary servers is reduced, and the hardware cost is controlled.
In one embodiment, the map road data is stored according to preset elements such as tile numbers, road numbers of each road 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, 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. 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.
Step S220, each of the auxiliary servers queries, according to a preset period, whether the TMC information corresponding to the map road data is the same as the TMC information of the map road data corresponding to the main server.
In one specific implementation, each secondary server queries a primary Redis database of the primary server according to a preset period. Because each auxiliary server only stores a small part of map road data in all map road data, and the main server stores all map road data, during query, the auxiliary server only needs to search the corresponding map road data in the main Redis database of the main server. By setting the preset period of inquiry, frequent interaction between the auxiliary server and the main server is avoided, and respective operation load is reduced.
In one specific embodiment, the master server is provided with a master Redis database, and the TMC information of the master server is stored in the master Redis database according to preset elements; and/or each auxiliary server is provided with a corresponding auxiliary Redis database, and TMC information of the auxiliary server is stored in the auxiliary Redis database according to the 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 TMC information in Redis database, through caching at Redis, avoid calling the local data of main server and auxiliary server to realize quick reading, reduce the memory that occupies the server simultaneously, thereby reduce the hardware cost.
Further, the map road data can be stored in a main Redis database of the main server according to the preset elements, so that the reading speed is further increased. In one embodiment, the map road data in the secondary server may also be stored according to the preset elements. In one embodiment, the map road data in the secondary server may also be stored in the secondary Redis database according to the preset elements. By the design, the storage mode of each auxiliary server corresponds to that of the main server, so that quick query and update are facilitated.
Step S230, if the TMC information in the secondary server is different from the corresponding TMC information in the primary server, determining that the TMC information in the secondary server needs to be updated, and sending an update request to the primary server corresponding to the secondary server that needs to update the TMC information.
It can be understood that, since the number of the secondary servers is at least one, the TMC information of each secondary server queried in each preset period is not the same as the corresponding TMC information in the primary server. And when the TMC information corresponding to the map road data stored in the auxiliary server is different from the TMC information corresponding to the map road data in the main server, the auxiliary server sends an updating request to the main server. It is to be understood that, if the TMC information corresponding to the map road data in the secondary server is the same as the TMC information corresponding to the map road data in the primary server through the query, and there is no need to update the data, step S240 is directly performed.
Step S240, the corresponding auxiliary server receives the TMC information which is sent by the main server and updated according to the update request.
In one embodiment, the main server may send the updated TMC information to the auxiliary server according to the preset elements to replace the original TMC information in the auxiliary server, so that the server may send the latest TMC information to the user side, and ensure that the user obtains the latest real-time traffic information.
In other embodiments, after the auxiliary server updates the TMC information, the auxiliary server may send the latest TMC information to the user side according to a request of the user side. Or, if the TMC information of the secondary server does not need to be updated, the secondary server sends the original TMC information to the user side.
In the method for processing real-time traffic information of this embodiment, the same map road data is stored in the main server and each auxiliary server, and whether the TMC information of each auxiliary server is the same as the TMC information corresponding to the main server is periodically queried. When the TMC information stored in the auxiliary server is different, the auxiliary server is updated through the main server, and the data of the auxiliary server is ensured to be kept in the latest state. Meanwhile, the main server and the auxiliary server both adopt Redis databases for data storage, so that the data reading and updating efficiency is improved. In addition, the number of the auxiliary servers is set according to the quota of the number of the map tiles, so that the map road data are distributed on each auxiliary server to be stored in a balanced mode. Each auxiliary server only needs to periodically inquire whether the TMC information of the auxiliary server is the same as that of the main server or not, and then the main server updates the data of each auxiliary server to take the best role, so that the overload of the load on a single server is avoided, and the overall operation efficiency of the system is not influenced.
Corresponding to the embodiment of the application function implementation method, the application also provides a device and a system 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 device comprises a query module 320, a request sending module 330 and an information receiving module 340. Wherein:
and the query module 320 is configured to query whether the corresponding TMC information needs to be updated.
A request sending module 330, configured to send an update request to the primary server if the TMC information of the secondary server needs to be updated.
An information receiving module 340, configured to receive TMC information that is sent by the main server and updated according to the update request.
Further, the apparatus further includes a storage module 310, where the storage module 310 is configured to pre-store map road data in each of the secondary server and the primary server. The query module 320 queries, according to a preset period, each of the auxiliary servers whether the TMC information corresponding to the map road data is the same as the TMC information of the map road data corresponding to the main server. If the TMC information in the secondary server is different from the corresponding TMC information in the primary server, the request sending module 330 sends an update request to the primary server. Finally, the information receiving module 340 receives the latest TMC information in the primary server to replace the corresponding original TMC information in the secondary server.
According to the device for processing the real-time traffic information, whether the corresponding TMC information needs to be updated or not is respectively inquired for at least one auxiliary server through the inquiry module 320, when the TMC information needs to be updated, the request sending module 330 sends the update information to the main server, and then the main server respectively updates the auxiliary servers needing to be updated through the update sending module 340. The query step and the update step are performed in a dispersed manner, so that processing on one main server is avoided, the data processing load of a single server is reduced, and the update efficiency of TMC information 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.
Example four
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, a system 400 for processing real-time traffic information includes a primary server 410 and at least one secondary server 420. Wherein:
the auxiliary server 420 is configured to query whether the corresponding TMC information needs to be updated; if the TMC information of the secondary server 420 needs to be updated, sending an update request to the primary server 410; and receiving TMC information which is sent by the main server 410 and updated according to the update request;
the main server 410 is configured to send the TMC information to the corresponding auxiliary server 420 according to the update request sent by the auxiliary server 420.
Further, the main server 410 and each of the sub servers 420 previously store map road data, respectively. Specifically, the main server 410 stores all the map road data in a unified manner; and each auxiliary server stores the corresponding map road data according to the map area. Further, to evenly distribute the amount of data storage, in one embodiment, a corresponding number of secondary servers 420 are set according to the number of map tiles; and dividing the map road data according to the map tiles, and distributing and storing the divided map road data to the corresponding auxiliary server 420. In order to reduce the hardware cost, in one embodiment, the number of the map road data to be distributed is calculated according to the number of the map tiles divided by the number of the auxiliary servers 420; each map road data allocation is stored in the corresponding secondary server 420. In one embodiment, the number of secondary servers 420 is a multiple of 4. The number of secondary servers 420 may be 4, 16, or 64.
In summary, in the real-time traffic information processing system 400 of the present application, the main server 410 and the at least one auxiliary server 420 coordinate to perform work division, so that the main server 410 is responsible for updating, and the auxiliary server 420 is responsible for querying, which avoids concentrating all matters on one main server 410 for processing, thereby reducing the data processing load of a single server and improving the updating efficiency of TMC information.
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 (10)

1. A method for processing real-time traffic information is characterized in that:
at least one auxiliary server inquires whether the corresponding TMC information needs to be updated;
if the TMC information of the auxiliary server needs to be updated, sending an update request to the main server;
and receiving TMC information which is sent by the main server and is updated according to the updating request.
2. The method of claim 1, wherein the at least one secondary server querying whether the corresponding TMC information needs to be updated comprises:
each auxiliary server inquires whether TMC information corresponding to the map road data is the same as TMC information of the map road data corresponding to the main server according to a preset period; map road data is stored in each auxiliary server and each main server in advance;
and if the TMC information in the auxiliary server is different from the corresponding TMC information in the main server, determining that the TMC information in the auxiliary server needs to be updated.
3. The method of claim 2, wherein the pre-storing map road data at each of the secondary server and the primary server comprises:
the main server uniformly stores all the map road data; and
and each auxiliary server stores the corresponding map road data according to the map area.
4. The method of claim 3, wherein each of the secondary servers respectively stores the corresponding map road data according to a map area, and comprises:
setting a corresponding number of auxiliary servers according to the number of the map tiles;
and dividing the map road data according to map tiles, and distributing and storing the divided map road data to the corresponding auxiliary server.
5. The method of claim 4, wherein the dividing the map road data according to map tiles and allocating and storing the divided map road data to the corresponding secondary servers comprises:
calculating the number of the map road data to be distributed according to the number of the map tiles and the number of the auxiliary servers;
and distributing and storing each piece of the map road data in the corresponding auxiliary server.
6. The method of claim 1, wherein the number of secondary servers is a multiple of 4.
7. The method according to any one of claims 1 to 6, characterized in that:
the main server is provided with a main Redis database, and the TMC information of the main server is stored in the main Redis database according to preset elements; and/or the presence of a gas in the gas,
and each auxiliary server is provided with a corresponding auxiliary Redis database, and TMC information of the auxiliary server is stored in the auxiliary Redis database according to the preset elements.
8. A device for processing real-time traffic information, comprising:
the query module is used for querying whether the corresponding TMC information needs to be updated;
a request sending module, configured to send an update request to the primary server if the TMC information of the secondary server needs to be updated;
and the information receiving module is used for receiving TMC information which is sent by the main server and is updated according to the updating request.
9. A system for processing real-time traffic information, comprising a primary server and at least one secondary server, wherein:
the auxiliary server is used for inquiring whether the corresponding TMC information needs to be updated; if the TMC information of the auxiliary server needs to be updated, sending an update request to the main server; receiving TMC information which is sent by the main server and is updated according to the updating request;
and the main server is used for sending the TMC information to the corresponding auxiliary server according to the updating request sent by the auxiliary server.
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-7.
CN202011545194.5A 2020-12-23 2020-12-23 Method, device and system for processing real-time traffic information Pending CN112287063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011545194.5A CN112287063A (en) 2020-12-23 2020-12-23 Method, device and system for processing real-time traffic information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011545194.5A CN112287063A (en) 2020-12-23 2020-12-23 Method, device and system for processing real-time traffic information

Publications (1)

Publication Number Publication Date
CN112287063A true CN112287063A (en) 2021-01-29

Family

ID=74426331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011545194.5A Pending CN112287063A (en) 2020-12-23 2020-12-23 Method, device and system for processing real-time traffic information

Country Status (1)

Country Link
CN (1) CN112287063A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037490A1 (en) * 2005-02-10 2009-02-05 Alpine Electronics, Inc. Map-updating-data creating method, and map updating method and apparatus
CN101976534A (en) * 2010-11-01 2011-02-16 百度在线网络技术(北京)有限公司 Electronic map generation method and device
CN102063788A (en) * 2009-11-18 2011-05-18 厦门雅迅网络股份有限公司 Method and system for releasing real-time road condition information
CN102376160A (en) * 2010-08-09 2012-03-14 中国移动通信集团辽宁有限公司 Method and system for updating real-time traffic information
CN104142935A (en) * 2013-05-07 2014-11-12 北京四维图新科技股份有限公司 Dynamic tiled map acquiring method and device
CN104954474A (en) * 2015-06-19 2015-09-30 北京奇虎科技有限公司 Method and device for data updating in load balancing
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
US20090037490A1 (en) * 2005-02-10 2009-02-05 Alpine Electronics, Inc. Map-updating-data creating method, and map updating method and apparatus
CN102063788A (en) * 2009-11-18 2011-05-18 厦门雅迅网络股份有限公司 Method and system for releasing real-time road condition information
CN102376160A (en) * 2010-08-09 2012-03-14 中国移动通信集团辽宁有限公司 Method and system for updating real-time traffic information
CN101976534A (en) * 2010-11-01 2011-02-16 百度在线网络技术(北京)有限公司 Electronic map generation method and device
CN104142935A (en) * 2013-05-07 2014-11-12 北京四维图新科技股份有限公司 Dynamic tiled map acquiring method and device
CN104954474A (en) * 2015-06-19 2015-09-30 北京奇虎科技有限公司 Method and device for data updating in load balancing
CN112100196A (en) * 2020-11-23 2020-12-18 蘑菇车联信息科技有限公司 Real-time traffic information processing method and system and electronic equipment

Similar Documents

Publication Publication Date Title
US20170336219A1 (en) System and method for accelerating route search
CN110134755B (en) Map updating method, device, equipment, server and medium
CN112100196B (en) Real-time traffic information processing method and system and electronic equipment
JP5732340B2 (en) Map data distribution server, map data distribution system, and map data distribution method
CN101477748B (en) Traffic condition management method and system
CN102128629A (en) Path planning method, navigation system and geographical information system
CN105814453A (en) Determining location information using a location data point provided by a computing device
CN112214561B (en) Map data processing method, map data processing device, computer equipment and storage medium
WO2022166326A1 (en) Method and apparatus for updating map tile
CN102306165A (en) Ship electronic chart data multi-platform shared service device and construction method thereof
CN107295047B (en) Map data updating method, device and system
JP2009128162A (en) Map data updating method, map data updating program, car navigation device, and car navigation system
US20220349727A1 (en) Method and system for constructing electronic horizon
CN110047371B (en) Rendering method and device of vector electronic map
CN112289033B (en) Real-time traffic information processing method and device
CN102426584A (en) Service system for obtaining accurate geographical position of vehicle and obtaining method thereof
JP2010237444A (en) Map distribution apparatus, map distribution method and computer program
CN112287063A (en) Method, device and system for processing real-time traffic information
CN112286952B (en) Method, device and system for processing real-time traffic information
US8457886B2 (en) Method for operating a navigation system
JP4380097B2 (en) Map information update system, map information processing apparatus, and map information providing apparatus
JP5662729B2 (en) Map data distribution system and map data distribution method
CN112579716A (en) Map updating method, device and storage medium
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

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129