Disclosure of Invention
In view of the above, the present invention has been made to provide a map updating method and system, an electronic device, a computer storage medium that overcome or at least partially solve the above-mentioned problems.
According to an aspect of the present invention, there is provided a map updating method applied to a terminal device, including: acquiring satellite navigation data, and determining a map area where the terminal equipment is located according to the satellite navigation data;
if the map area is changed from a first map area to a second map area, obtaining map version information of map data corresponding to the second map area in the terminal equipment, and uploading the map version information and the information of the map area to a server;
receiving a judgment result of whether the map data sent by the server is the latest version of map data; if the judgment result is that the map data is not the latest version map data, sending a map data updating request to a server;
receiving difference map updating data which are issued by the server and correspond to the second map area;
and updating the map data corresponding to the second map region in the terminal equipment by using the differential map updating data.
Optionally, after acquiring the satellite navigation data, the method further comprises:
the terminal equipment identifies whether the terminal equipment is in a moving state;
when the terminal equipment is in a mobile state, periodically uploading a traffic data updating request of a map area where the terminal equipment is located and information of the map area to the server;
receiving real-time traffic data issued by the server according to the traffic data updating request and the information of the map area;
and updating traffic data corresponding to the map area where the terminal equipment is located by using the real-time traffic data.
Optionally, the identifying whether the terminal device is in a moving state includes:
acquiring the gear state of a vehicle in which the terminal equipment is positioned; if the gear state is a forward gear, determining that the terminal equipment is in a moving state; or,
and determining that the terminal equipment is in a moving state or a static state according to the satellite navigation data.
Optionally, after acquiring the satellite navigation data, the method further includes:
the terminal equipment identifies whether the terminal equipment is powered on for the first time or is started in a cold mode; if yes, determining that the map data needs to be updated; if not, when the terminal equipment judges that the map area is changed from the first map area to the second map area, the map data needs to be updated.
Optionally, the method further comprises:
and when the terminal equipment judges that the latest updating time of the stored map data reaches an updating time threshold from the current moment, determining that the map data needs to be updated.
According to another aspect of the present invention, there is also provided a map updating method applied to a server side, including:
receiving information of a map area and map version information sent by terminal equipment, wherein the map version information is map version information of map data corresponding to the map area in the terminal equipment;
when the map data is judged to be not the latest map data according to the map version information, feeding back a judgment result indicating that the map data is not the latest map data to the terminal equipment;
receiving a map data updating request sent by the terminal device when the judgment result shows that the map data is not the latest version of map data;
and responding to the map data updating request, determining differential map updating data according to the map data and the latest version map data and sending the differential map updating data to the terminal equipment so that the terminal equipment can update the map data by using the differential map updating data.
Optionally, the method further comprises:
receiving information of a map area and a traffic information updating request which are periodically sent by the terminal equipment when the terminal equipment is in a moving state;
and determining real-time traffic data corresponding to the map area and sending the real-time traffic data to the terminal equipment so that the terminal equipment can update the traffic data corresponding to the map area by using the real-time traffic data.
According to still another aspect of the present invention, there is also provided a first electronic device, including:
a first processor;
a first memory storing a first computer program;
the first computer program, when executed by the first processor, causes the first electronic device to perform a map updating method applied to a terminal device side as described in any one of the above.
According to still another aspect of the present invention, there is also provided a second electronic device including:
a second processor;
a second memory storing a second computer program;
when the second computer program is run by the second processor, it causes the second electronic device to perform the map updating method applied to the server side as described in any one of the above.
According to still another aspect of the present invention, there is also provided a map updating system including the first electronic device and the second electronic device as mentioned above.
According to still another aspect of the present invention, there is also provided a computer storage medium having at least one instruction, at least one program, code set, or instruction set stored therein, the at least one instruction, at least one program, code set, or instruction set being loaded by a processor and executing the map updating method applied to the terminal device or the map updating method applied to the server side as described in any one of the above.
In the invention, the terminal equipment acquires and determines the map area where the terminal equipment is located according to the satellite navigation data. And the terminal equipment acquires the map version information of the map data corresponding to the second map area which is locally stored and uploads the map version information and the information of the map area to the server when determining that the map area where the terminal equipment is located is changed from the first map area to the second map area. And then receiving a judgment result of whether the map data sent by the server is the map data of the latest version, and sending a map data updating request to the server under the condition that the judgment result is that the map data is not the map data of the latest version. And then receiving differential map updating data which is sent by the server and corresponds to the second map area, and updating the map data which corresponds to the second map area in the terminal equipment by using the differential map updating data. Based on the technical scheme provided by the invention, after the terminal equipment identifies that the map area where the terminal equipment is located is changed from the first map area to the second map area according to the satellite navigation data, the terminal equipment determines that the map data corresponding to the second map area needs to be updated, the map data is updated timely, a user does not need to actively download the map data, and the user experience degree is improved.
The foregoing is a summary of the present invention, and so that the technical means of the present invention will be more clearly understood and appreciated in light of the following description, the present invention will now be described in detail with reference to the accompanying drawings.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the technical features of the embodiments and alternative embodiments of the present invention may be combined with each other without conflict.
In order to solve the above problem, the present invention provides a map updating method applied to a terminal device, and fig. 1 is a schematic flowchart of a map updating method according to an embodiment of the present invention. Referring to fig. 1, the method may include at least the following steps.
Step S102: acquiring satellite navigation data, and determining a map area where the terminal equipment is located according to the satellite navigation data;
step S104: and if the map area is changed from the first map area to the second map area, obtaining the map version information of the map data corresponding to the second map area in the terminal equipment, and uploading the map version information and the information of the map area to the server.
Step S106: receiving a judgment result of whether the map data sent by the server is the latest version of map data; if the judgment result is that the map data is not the latest version of map data, sending a map data updating request to the server;
step S108: receiving difference map updating data which is sent by the server and corresponds to the second map area;
step S110: and updating the map data corresponding to the second map region in the terminal equipment by using the differential map updating data.
In the step, after the map data is updated, the corresponding map area and the update content can be written into the update log and stored.
In the embodiment of the invention, the terminal equipment acquires and determines the map area where the terminal equipment is located according to the satellite navigation data. And the terminal equipment acquires the map version information of the map data corresponding to the second map area which is locally stored and uploads the map version information and the information of the map area to the server when determining that the map area where the terminal equipment is located is changed from the first map area to the second map area. And then receiving a judgment result of whether the map data sent by the server is the map data of the latest version, and sending a map data updating request to the server under the condition that the judgment result is that the map data is not the map data of the latest version. And then receiving differential map updating data which is sent by the server and corresponds to the second map area, and updating the map data which corresponds to the second map area in the terminal equipment by using the differential map updating data. Based on the technical scheme provided by the invention, the terminal equipment determines that the map data corresponding to the second map area needs to be updated after identifying that the map area where the terminal equipment is located is changed from the first map area to the second map area according to the satellite navigation data, so that the map data is updated timely without active downloading by a user, and the user experience is improved.
The map area mentioned in the above step may refer to a city in which the terminal device is located, such as beijing, shanghai, and the like.
The map data mentioned in the above step may include at least one of: road geographical position data, building geographical position data and traffic sign geographical position data.
The above steps refer to terminal devices, such as mobile devices, computers, or vehicle machines built in floating vehicles, or any combination thereof. In some embodiments, the mobile device may include, for example, a cell phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, and the like, or any combination thereof.
For the above-mentioned acquiring of the satellite navigation data in step S102, specifically, the terminal device may acquire the satellite navigation data by using a TCAM (ternary content addressable memory), where the TCAM is an Electronic Control Unit (ECU) integrated with an antenna GPS, and the TCAM may receive the satellite navigation data every 100ms and transmit the satellite navigation data to the terminal device.
In some embodiments of the present invention, after acquiring the satellite navigation data, the terminal device may identify whether it is initially powered on or cold started. If the map data are identified to be the initial power-on or cold start, determining that the map data need to be updated; if the terminal device is identified not to be powered on for the first time or started in a cold mode, when the terminal device judges that the map area where the terminal device is located is changed from the first map area to the second map area, the fact that the map data need to be updated is determined.
The initial power-on means that the terminal device is connected to the power supply for the first time, and the cold start means that the terminal device is restarted after the power supply is cut off. The terminal equipment determines that the map data needs to be updated after recognizing that the terminal equipment is in initial power-on or cold start. Specifically, the terminal device obtains map version information of map data corresponding to a map area where the terminal device is located, which is locally stored by the terminal device. For example, if the map area where the terminal device is located is shanghai, map version information of map data corresponding to shanghai, which is locally stored, is acquired. And then uploading the map version information and the information of the map area, which can be city information, such as Shanghai, to the server. And then receiving a judgment result of whether the map data sent by the server is the map data of the latest version, and sending a map data updating request to the server if the judgment result is that the map data is not the map data of the latest version. And then receiving differential map updating data which is sent by the server and corresponds to the map area, and updating the map data which corresponds to the map area in the terminal equipment by using the differential map updating data.
When the terminal device is not powered on for the first time or is started in a cold mode, the terminal device determines that the map data needs to be updated when the map area where the terminal device is located is changed from the first map area to the second map area. For example, when the terminal device determines that the map area in which the terminal device is located is changed from shanghai to beijing, it is determined that the map data corresponding to beijing stored locally needs to be updated.
When the terminal equipment identifies that the terminal equipment is initially powered on or cold started, determining that the map data needs to be updated; when it is recognized that it is not the initial power-on or cold start, it is determined that the map data needs to be updated when the map area in which it is located is changed from the first map area to the second map area. Therefore, the map data used by the user can be guaranteed to be the map data of the latest version, the user does not need to actively download the map data, and the user experience degree is improved.
In some embodiments of the present invention, after the terminal device acquires the satellite navigation data, the terminal device may further identify whether it is in a moving state. And under the condition that the terminal equipment is identified to be in the moving state, periodically uploading the traffic data updating request of the map area where the terminal equipment is located and the information of the map area to the server. And then receiving real-time traffic data issued by the server according to the traffic data updating request and the information of the map area, and then updating the traffic data corresponding to the map area where the terminal equipment is located by using the real-time traffic data. The duration corresponding to the period may be set according to an actual situation, and the present invention is not limited. The traffic data may include at least one of: road congestion status data and intersection red light waiting time length data.
For the terminal device to identify whether it is in a moving state, in some embodiments of the present invention, if the terminal device is a car machine, the terminal device may determine through the gear state of the vehicle in which it is located, specifically, if it is identified that the gear state of the vehicle in which it is located is a forward gear, it is determined that it is in the moving state.
In other embodiments of the present invention, the terminal device may further determine whether it is in a moving state according to the satellite navigation data. Specifically, if it is recognized that the satellite navigation data corresponding to the satellite navigation data is continuously changed within a set time period, it is determined that the satellite navigation data is in a moving state. The set time length can be set according to actual conditions, and the invention is not limited.
The embodiment of the invention periodically uploads the traffic data updating request and the map area information of the map area where the terminal equipment is located to the server under the condition that the terminal equipment is in the moving state. And then receiving real-time traffic data issued by the server according to the traffic data updating request and the information of the map area, and updating the traffic data corresponding to the map area where the terminal device is located by using the real-time traffic data, so that the dynamic updating of the traffic data corresponding to the map area is realized, a user can obtain the real-time traffic data of the map area where the user is located, and the experience degree of the user is further improved.
In some embodiments of the invention, the method further comprises: when the terminal equipment judges that the latest updating time of the stored map data reaches the updating time threshold value from the current moment, the terminal equipment determines that the map data needs to be updated. The update duration threshold may be set according to a fixed update time set by a map provider, for example, set to be one month, or three months, or five months, or six months, and the like.
In the embodiment, when the terminal device judges that the latest update time of the stored map data reaches the update time threshold from the current time, the map data needs to be updated, so that the map data used by the user can be ensured to be the latest version of map data as far as possible, and the user experience is further improved.
Based on the same inventive concept, the invention also provides a map updating method applied to the server side, and fig. 2 is a schematic flow chart of the map updating method according to another embodiment of the invention. Referring to fig. 2, the method may include at least the following steps.
Step S202: receiving information of a map area and map version information sent by terminal equipment, wherein the map version information is map version information of map data corresponding to the map area in the terminal equipment;
step S204: when the map data is judged to be not the latest map data according to the map version information, a judgment result indicating that the map data is not the latest map data is fed back to the terminal equipment;
step S206: receiving a map data updating request sent by the terminal device when the judgment result shows that the map data is not the latest version of map data;
step S208: and responding to the map data updating request, determining differential map updating data according to the map data and the latest version of map data and sending the differential map updating data to the terminal equipment so that the terminal equipment can update the map data by using the differential map updating data.
In the embodiment of the invention, after receiving the information of the map area and the map version information sent by the terminal equipment, the server judges whether the map data corresponding to the map area in the terminal equipment is the latest map data according to the map version information. When it is determined that the map data is not the latest version of map data based on the map version information, a determination result indicating that the map data is not the latest version of map data is fed back to the terminal device. And then receiving and responding to a map data updating request sent by the terminal equipment, determining differential map updating data according to the map data and the latest version map data and sending the differential map updating data to the terminal equipment, so that the terminal equipment can update the map data in the terminal equipment in time by using the differential map updating data. Based on the technical scheme provided by the embodiment of the invention, the user does not need to actively download the map data, and the map data is updated timely, so that the user experience is improved.
In some embodiments of the present invention, the server may receive information of a map area and a traffic information update request periodically transmitted by the terminal device while the terminal device is in a moving state, and then determine real-time traffic data corresponding to the map area according to the traffic information update request and transmit the real-time traffic data to the terminal device, so that the terminal device updates the traffic data corresponding to the map area by using the real-time traffic data. Therefore, dynamic updating of traffic data corresponding to the map area is achieved, the user can learn the real-time traffic data of the map area where the user is located, and the experience degree of the user is further improved.
In addition, in order to ensure the security of information exchange between the terminal device and the server, in some embodiments of the present invention, the communication device may be used as a communication medium between the terminal device and the server, and information between the terminal device and the server is transmitted through the communication device, which may be a tem (transmit electronic) device. The operation of the communication device will be described in detail in the following embodiments, and therefore, for the detailed description of the communication device, reference is also made to the following embodiments.
Having described the implementation of each link in the embodiments shown in fig. 1 and fig. 2, the following describes in detail the implementation process of the map updating method according to the present invention by combining the terminal device, the communication device, and the server. Fig. 3 is a flowchart of a map updating method according to still another embodiment of the present invention. Referring to fig. 3, the method may include the following steps.
Step S302: the method comprises the steps that terminal equipment obtains satellite navigation data and determines a map area where the terminal equipment is located according to the satellite navigation data;
in this embodiment, the terminal device may be a car machine, an Infotainment Head Unit (IHU), an In-Vehicle Infotainment system (IVI), or any other Vehicle information terminal, the terminal device may obtain the satellite navigation data via a TCAM, i.e., an ECU of an integrated antenna GPS, and the TCAM may receive the satellite navigation data once every 100ms and send the satellite navigation data to the terminal device.
The map area may refer to a city in which the terminal device is located, such as beijing, shanghai, and the like.
Step S304: the terminal equipment judges whether the terminal equipment is powered on for the first time or is started in a cold mode, and if yes, step S306 is executed; if not, go to step S308;
the initial power-on means that the terminal device is connected to the power supply for the first time, and the cold start means that the terminal device is restarted after the power supply is cut off.
Step S306: obtaining map version information of map data corresponding to a map area in the terminal device, and executing step S310;
in this step, the map data may include at least one of: road geographical position data, building geographical position data and traffic sign geographical position data.
Step S308: determining that the map area is changed from the first map area to the second map area, acquiring map version information of map data corresponding to the second map area in the terminal device, and executing step S310;
step S310: the terminal equipment uploads the map version information and the map area information to the communication equipment;
the information of the map area may be city information, such as beijing, in which the terminal device is located.
Step S312: the communication equipment authenticates with the server, and the map version information and the map area information are uploaded to the server after the authentication is passed;
in this step, in order to ensure the security of information communication between the terminal device and the server, the communication device authenticates with the server, and uploads the map version information and the information of the map area to the server after the authentication is passed.
Step S314: the server judges whether the map data corresponding to the map area in the terminal equipment is the map data of the latest version according to the received map version information and the information of the map area, generates a judgment result and sends the judgment result to the communication equipment;
in this step, the server may determine the latest version of map data corresponding to the map area in the server from the information of the map area, then determine whether the map data corresponding to the map area in the terminal device is the latest version of map data from the received map version information, and generate a determination result.
Step S316: the communication equipment sends the judgment result to the terminal equipment;
step S318: if the judgment result is that the map data is not the latest version of map data, the terminal equipment sends a map data updating request to the communication equipment;
step S320: the communication equipment sends a map data updating request to the server;
step S322: the server determines differential map updating data corresponding to the map area according to the map data updating request and sends the differential map updating data to the communication equipment;
step S324: the communication equipment carries out safety verification on the updating data of the differential map, and sends the updating data of the differential map to the terminal equipment after the verification is passed;
in this step, the communication device may perform security verification on the verification method using the key, which is common to those skilled in the art and will not be described in detail herein.
The communication equipment sends the updated data of the differential map to the terminal equipment after the updated data of the differential map passes the safety check, thereby ensuring the safety and the accuracy of the data.
Step S326: the terminal equipment updates the map data corresponding to the map area in the terminal equipment by using the differential map updating data;
after the step, the terminal equipment updates the map data corresponding to the map area, the map data is updated in time without active downloading by a user, and the user experience is improved.
Step S328: the terminal equipment identifies whether the terminal equipment is in a moving state; if the mobile terminal is in the moving state, periodically sending a traffic data updating request of a map area where the terminal equipment is located and information of the map area to the communication equipment;
this step is carried out in step S302, in which the terminal device can determine whether it is in a moving state according to the gear state of the vehicle in which it is located. If the gear state of the vehicle in which the gear is located is recognized as a forward gear, determining that the gear is in a moving state; in addition, the terminal device may determine whether it is in a moving state based on the satellite navigation data. And if the satellite navigation data corresponding to the satellite navigation data is identified to be continuously changed within the set time length, determining that the satellite navigation data is in a moving state. The set time length can be set according to the actual situation, and the invention is not limited.
The traffic data may include at least one of: road congestion status data and intersection red light waiting time length data.
Step S330: the communication equipment authenticates with the server, and after the authentication is passed, the communication equipment sends a traffic data updating request and the information of the map area to the server;
step S332: the server determines real-time traffic data corresponding to the map area and transmits the real-time traffic data to the terminal equipment;
step S334: and the terminal equipment updates the traffic data corresponding to the map area by using the received real-time traffic data.
In this step, the terminal device updates traffic data corresponding to the map area where the terminal device is located, using the real-time traffic data. Therefore, dynamic updating of traffic data corresponding to the map area is achieved, the user can learn the real-time traffic data of the map area where the user is located, and the experience degree of the user is further improved.
Step S336: the terminal equipment judges whether the latest updating time of the stored map data reaches an updating time threshold value from the current moment; if yes, it is determined that the corresponding map data needs to be updated, and step S306 is performed.
This step S336 supports step S302, and when the terminal device determines whether the latest update time of the map data stored therein reaches the update time threshold from the current time, it determines that the corresponding map data needs to be updated, so as to ensure that the map data used by the user is the latest version of map data as much as possible.
Based on the same inventive concept, the present invention further proposes a first electronic device 400, and fig. 4 is a schematic structural diagram of the first electronic device 400 according to an embodiment of the present invention. Referring to fig. 4, the first electronic device 400 comprises a first processor 410, a first memory 420 having a first computer program 421 stored therein. The first computer program 421, when run by the first processor 410, causes the first electronic device 400 to perform the map updating method applied to the terminal device side as mentioned in any of the embodiments above.
Based on the same inventive concept, the present invention further provides a second electronic device 500, and fig. 5 is a schematic structural diagram of the second electronic device according to an embodiment of the present invention. Referring to fig. 5, the second electronic device 500 comprises a second processor 510, a second memory 520 storing a second computer program 521. The second computer program 521, when run by the second processor 510, causes the second electronic device 500 to perform a map updating method applied to the server side as mentioned in any of the embodiments above.
The first electronic device 400 and the second electronic device 500 may be provided in a terminal device and a server, respectively, as part of the terminal device and the server, respectively.
Based on the same inventive concept, the present invention further provides a map updating system 600, and fig. 6 is a schematic structural diagram of a map updating system according to an embodiment of the present invention. Referring to fig. 6, the map updating system includes a first electronic device 400 and a second electronic device 500.
Based on the same inventive concept, the present invention further provides a computer storage medium, in which at least one instruction, at least one program, code set, or instruction set is stored, and the at least one instruction, the at least one program, code set, or instruction set is loaded by a processor and executes the map updating method applied to the vehicle side or the map updating method applied to the server side as mentioned in any of the above embodiments.
The invention provides a map updating method and system, electronic equipment and a computer storage medium. And the terminal equipment acquires the map version information of the map data corresponding to the second map area which is locally stored and uploads the map version information and the information of the map area to the server when determining that the map area where the terminal equipment is located is changed from the first map area to the second map area. And then receiving a judgment result of whether the map data sent by the server is the map data of the latest version, and sending a map data updating request to the server under the condition that the judgment result is that the map data is not the map data of the latest version. And then receiving differential map updating data which is sent by the server and corresponds to the second map area, and updating the map data which corresponds to the second map area in the terminal equipment by using the differential map updating data. Based on the technical scheme provided by the invention, after the terminal equipment identifies that the map area where the terminal equipment is located is changed from the first map area to the second map area according to the satellite navigation data, the terminal equipment determines that the map data corresponding to the second map area needs to be updated, the map data is updated timely, a user does not need to actively download the map data, and the user experience degree is improved.
Further, in the embodiment of the present invention, after the terminal device acquires the satellite navigation data, next, the terminal device may further identify whether the terminal device is in a moving state. When the terminal device is in a mobile state, the traffic data updating request of the map area where the terminal device is located and the information of the map area can be periodically uploaded to the server. And then receiving real-time traffic data issued by the server according to the traffic data updating request and the information of the map area, and updating the traffic data corresponding to the map area where the terminal equipment is located by using the real-time traffic data. Therefore, dynamic updating of traffic data corresponding to the map area is achieved, the user can learn the real-time traffic data of the map area where the user is located, and the experience degree of the user is further improved.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.