Road condition refreshing method and device, electronic device, storage medium, and program product

By obtaining the real -time location of the navigation object in the navigation terminal and calculating the distance difference between the distance, when the remaining use of the navigation object reaches the end point of the navigation, it solves the problem that the navigation terminal is difficult to refresh the road conditions in the case of weak networks or no network. The information information in the interface is refreshed accurately.

CN115985126BActive Publication Date: 2025-01-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111207099.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2025-01-28
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

In the case of a weak network or no network, it is difficult for the navigation terminal to refresh the road conditions information of the vehicle's roads in a timely manner, resulting in inaccurate road conditions information displayed in the navigation interface.

Method used

By obtaining the real -time location of the navigation object, determine the section where the real -time location is located, and calculate the distance between the real -time location and the end of the road section, and then calculate the time when the navigation object reaches the remaining use of the navigation end to perform road conditions information information Formation is refreshed.

Benefits of technology

In the case of weak networks or no network, when you can simulate the remaining use of real -time use, the minute level of road conditions information is refreshed to ensure that the road conditions displayed in the navigation interface are more accurate and avoid poor user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115985126B_ABST
    Figure CN115985126B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method and device for refreshing road conditions, an electronic device, a computer-readable storage medium, and a computer program product. The method includes: obtaining the real-time position of a navigation object on a navigation path, wherein the navigation path is a route between a navigation start point and a navigation end point, a string of navigation points is distributed on the navigation path, and a section on the navigation path is formed by a route between at least two navigation points; determining a first section where the real-time position is located, and obtaining a first distance difference between the real-time position and the end position of the first section; determining a first remaining time for the navigation object to reach the navigation end point from the real-time position according to the first distance difference, so as to refresh the road conditions during navigation based on the first remaining time. The embodiments of the present application can simulate the real-time remaining time to refresh the road conditions at the minute level in the case of a weak network or no network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of navigation technology, and in particular to a road condition refreshing method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] Navigation is a technology that points to the key path of the destination. During the navigation process, the road condition information of the vehicle's driving road will be refreshed at the minute level, so that the latest road conditions can be synchronized to the navigation user in a timely manner. The road condition information of the vehicle's driving road usually includes the remaining time, which represents the length of time it will take for the vehicle to reach the destination. In the existing technical implementation, the remaining time is obtained by the navigation terminal through the network request to the navigation server. As a result, in the case of weak network or no network, it is difficult for the navigation terminal to refresh the road condition information of the vehicle's driving road in a timely manner, resulting in inaccurate road condition information displayed in the navigation interface. Summary of the invention

[0003] To solve the above technical problems, the embodiments of the present application provide a road condition refreshing method and device, an electronic device, a computer-readable storage medium, and a computer program product.

[0004] According to one aspect of an embodiment of the present application, a method for refreshing road conditions is provided, comprising: obtaining a real-time position of a navigation object on a navigation path, wherein the navigation path is a route between a navigation starting point and a navigation end point, a string of navigation points is distributed on the navigation path, and a section on the navigation path is formed by a route between at least two navigation points; determining a first section where the real-time position is located, and obtaining a first distance difference between the real-time position and an end position of the first section; determining a first remaining time for the navigation object to reach the navigation end point from the real-time position according to the first distance difference, so as to refresh the road conditions during navigation based on the first remaining time.

[0005] According to one aspect of an embodiment of the present application, a road condition refreshing device is provided, comprising: a real-time position acquisition module, configured to acquire the real-time position of a navigation object on a navigation path, wherein the navigation path is a route between a navigation starting point and a navigation end point, a string of navigation points is distributed on the navigation path, and a section on the navigation path is formed by a route between at least two navigation points; a first distance difference acquisition module, configured to determine a first section where the real-time position is located, and to acquire a first distance difference between the real-time position and an end position of the first section; a remaining time acquisition module, configured to determine a first remaining time for the navigation object to reach the navigation end point from the real-time position according to the first distance difference, so as to refresh the road condition during navigation based on the first remaining time.

[0006] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the road condition refresh method as described above.

[0007] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the road condition refresh method as described above.

[0008] According to one aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, which implements the steps in the road condition refreshing method as described above when executed by a processor.

[0009] In the technical solution provided in the embodiments of the present application, the remaining time for the navigation object to reach the navigation end point from the real-time position is obtained based on the distance difference between the real-time position and the end position of the road section where the real-time position is located. Therefore, in the case of weak network or no network, although it is difficult to obtain accurate traffic information from the navigation server, the technical solution of the embodiments of the present application can simulate the real-time remaining time to refresh the traffic information at the minute level, so that the traffic information displayed in the navigation interface is also relatively accurate.

[0010] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0012] Figure 1 is a schematic diagram of a navigation interface shown in an exemplary embodiment of the present application;

[0013] Figure 2 is a schematic diagram of an implementation environment for refreshing road conditions during navigation according to an exemplary embodiment of the present application;

[0014] Figure 3 is a flow chart of a road condition refreshing method shown in an exemplary embodiment of the present application;

[0015] Figure 4is a schematic diagram of a navigation path and navigation status shown by an exemplary embodiment;

[0016] Figure 5 yes Figure 3 Step S350 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0017] Figure 6 is a flow chart of a road condition refreshing method shown in another exemplary embodiment of the present application;

[0018] Figure 7 is a flow chart of a road condition refreshing method shown in another exemplary embodiment of the present application;

[0019] Figure 8 is a schematic diagram of a navigation path and navigation status shown in another exemplary embodiment;

[0020] Fig. 9 yes Figure 3 A flowchart of step S310 in the illustrated embodiment in an exemplary embodiment;

[0021] Fig.10 It is a schematic diagram of a brief process of refreshing the traffic conditions in the navigation interface in an exemplary application scenario;

[0022] Fig.11 is a block diagram of a road condition refreshing device shown in an exemplary embodiment of the present application;

[0023] Fig.12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0025] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0026] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0027] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0028] First of all, it should be noted that navigation is a technology that points to the critical path of the destination. It is the process of monitoring and controlling the movement of objects such as processes, vehicles, and pedestrians from one place to another. In a broader sense, navigation can refer to any skill or study involving determining position and direction. The embodiments of this application are related to land navigation, which is used to monitor the position change process of objects such as vehicles and pedestrians moving from one place to another along a planned path.

[0029] During the navigation process, the road condition information will be refreshed at a specific frequency to ensure user experience. Taking the application scenario of vehicle route navigation as an example, due to the high speed of the vehicle, the road condition of the vehicle's driving road will be refreshed at the minute level during the navigation process. For example, the remaining time for the vehicle to reach the destination is usually displayed in minutes as the minimum unit. Therefore, the road condition of the vehicle's driving road will be refreshed every 1 minute during the navigation process, so that the latest road condition can be synchronized to the driver in time. In other application scenarios, the frequency of refreshing the road condition of the object's driving road can be set according to actual conditions, and the embodiments of the present application are not limited to this.

[0030] Figure 1 is a schematic diagram of a navigation interface shown in an exemplary embodiment of the present application. The navigation interface shows that the remaining time to reach the destination is 48 minutes. Since the location of the object is constantly changing during the journey, the remaining time should also be dynamically refreshed to ensure the user experience. It should be understood that the navigation interface can also display information other than the remaining time to reach the destination, such as Figure 1 The route information, estimated arrival time, remaining mileage, and other information shown in the prompt to turn left into an unnamed road after 2 kilometers. The embodiments of the present application do not limit the detailed information displayed on the navigation interface and can be set according to actual needs.

[0031] Figure 2FIG. 1 is a schematic diagram of an implementation environment for refreshing road conditions during navigation according to an exemplary embodiment of the present application. Figure 2 As shown, during the driving process of the vehicle, navigation is achieved through the navigation map software installed on the smart terminal 210. The navigation map software will refresh the traffic conditions every minute, that is, it will make a network request to the navigation server 220 according to the domain name of the navigation server 220 every minute, and then the navigation server 220 will return the corresponding traffic data to the navigation map software. The traffic data contains the remaining time for the vehicle to reach the destination. The navigation map software will parse the traffic data to obtain the remaining time information, and package the remaining time and display it on the navigation interface, thereby realizing the minute-level refresh of the remaining time on the navigation interface.

[0032] in, Figure 2 The smart terminal 210 shown can be any terminal device that supports the installation of navigation map software, such as a smart phone, a car computer, a tablet computer, a laptop computer, or a wearable device, but is not limited thereto. Figure 2 The navigation server 220 shown is a navigation server, which can be, for example, an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, etc., and is not limited here. The smart terminal 210 can communicate with the navigation server 220 through wireless networks such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), and 5G (fifth generation mobile information technology), and is not limited here.

[0033] A weak network is also called a weak network environment, which has the characteristics of low network transmission rate. In a weak network or no network environment, the smart terminal 210 cannot make a network request to the navigation server 220, resulting in the remaining time displayed in the navigation interface being unable to be refreshed, and the navigation interface will display an incorrect remaining time. The following is a specific example to illustrate the impact of the inability to refresh the remaining time to the destination in the navigation interface on the user experience:

[0034] For example, in the online car-hailing scenario, when the driver opens the online car-hailing software installed on the smart terminal and receives an order, the smart terminal enters the following Figure 1In the navigation interface shown, if it is assumed that the total time for the navigation route is 48 minutes, after the vehicle travels to the distance with a remaining time of 10 minutes, the smart terminal is always in a weak network or no network state due to poor network performance. The driver and passengers will find that the remaining time displayed on the navigation interface has not been updated, causing the driver to distrust the navigation map software, thereby affecting the reputation of the navigation map provider and the online car-hailing software. At the same time, passengers will also distrust the driver, increasing the risk of complaints against the driver.

[0035] For example, in a vehicle driving scenario, the driver drives according to the road conditions displayed on the navigation interface. The driver is prone to mental sensitivity after a long period of driving. In the case of weak network or no network, the driver finds that the remaining time displayed on the navigation interface has not been updated, which will bring a certain degree of oppression to the driver and cause the driver to have abnormal emotions. On the one hand, it causes the driver to distrust the navigation map software, and on the other hand, it may affect driving safety.

[0036] The problems pointed out above are generally applicable in general travel scenarios. It can be seen that in the case of weak network or no network, various problems will arise due to the inability to guarantee the refresh frequency of the remaining time to the destination. To solve these problems, the embodiments of the present application respectively propose a road condition refresh method, a road condition refresh device, an electronic device, a computer-readable storage medium and a computer program product, which will be described in detail below.

[0037] See also Figure 3 , Figure 3 is a flow chart of a road condition refreshing method shown in an exemplary embodiment of the present application. The method can be applied to Figure 2 The implementation environment shown is specifically executed by the smart terminal 210 in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.

[0038] Exemplarily, a navigation SDK (Software Development Kit, a collection of development tools for building application software for a specific software package, software framework, operating system, etc.) may be installed in the smart terminal to which the road condition refresh method disclosed in this embodiment is applicable, and the method disclosed in this embodiment is specifically implemented as one or more functions provided by the navigation SDK to the outside.

[0039] like Figure 3 As shown, in an exemplary embodiment, the road condition refreshing method at least includes steps S310 to S350, which are described in detail as follows:

[0040] Step S310, obtaining the real-time position of the navigation object on the navigation path.

[0041] First of all, it should be noted that the navigation object refers to the object for map navigation, which is usually a smart terminal with navigation map software installed, such as smart phones, car terminals, tablets, wearable devices and other mobile electronic devices. Correspondingly, the users of the navigation object are usually drivers, pedestrians and other users.

[0042] The navigation path is the route between the navigation starting point and the navigation end point, which is obtained by planning the navigation path for the navigation starting point and the navigation end point. It should be understood that the navigation starting point refers to the starting point of the route to be planned, and the navigation end point refers to the destination of the route to be planned. It should also be understood that the navigation route is usually determined by the navigation starting point and the navigation terminal.

[0043] After obtaining the navigation start point and the navigation end point, the navigation object initiates a network request to the navigation server, which carries the navigation start point and the navigation end point, so that the navigation server can calculate the route for the navigation start point and the navigation end point, and obtain the navigation path connecting the navigation start point and the navigation end point, the navigation point string of the navigation route, and the multiple road segments used to constitute the navigation path. Among them, the navigation path is the entire route between the navigation start point and the navigation end point, and the route calculation is the process of planning the route to the navigation start point and the navigation end point.

[0044] It should be understood that the navigation point string is a set of multiple navigation points, and the navigation point is a key point on the entire navigation path, for example, it can include one or more of the landmark location, intersection location, waypoint, and preset positioning point on the navigation path. The navigation point string is usually obtained by the navigation server to calculate the route based on its own attributes, and this embodiment does not limit this.

[0045] It is also necessary to understand that each segment constituting the navigation path is formed by a route between at least two navigation points, for example Figure 4 As shown, navigation points 0-9 are distributed in sequence on the entire navigation path, and the route between navigation points 0-1 forms a segment (hereinafter referred to as segment 0-1), the route between navigation points 1-3 forms a segment (hereinafter referred to as segment 1-3), the route between navigation points 3-7 forms a segment (hereinafter referred to as segment 3-7), and the route between navigation points 7-9 forms a segment (hereinafter referred to as segment 7-9). In other words, Figure 4 An exemplary navigation path shown is a route consisting of road segment 0-1, road segment 1-3, road segment 3-7 and road segment 7-9. The division of different road segments on the navigation path is usually obtained by the navigation server in the process of calculating the route.

[0046] It is also worth mentioning that during the route calculation process, the navigation server not only plans different sections on the navigation route, but also estimates the time it takes for the navigation object to pass through different sections, and obtains the estimated time corresponding to each section. Figure 4 As shown, it is estimated that the time required for the navigation object to pass through section 0-1 is 1 minute, the time required to pass through section 1-3 is 2 minutes, the time required to pass through section 3-7 is 4 minutes, and the time required to pass through section 7-9 is 1 minute.

[0047] The navigation server sends the relevant information obtained from the route calculation to the navigation object, so that the navigation object can obtain this information and perform operations such as displaying the navigation interface based on this information, such as displaying the navigation path and remaining mileage data in the navigation interface, as well as displaying the remaining time required for the navigation object to reach the navigation destination, and displaying the estimated arrival time point calculated in combination with the system time point. This embodiment does not limit this.

[0048] The real-time position of the navigation object on the navigation path can be obtained through a positioning module installed in the navigation object, for example, through a GPS (Global Positioning System) positioning module installed in the navigation object to obtain the real-time position of the navigation object, or through a positioning module that uses other positioning technologies such as LBS (Location Based Service) to achieve positioning, which is not limited here.

[0049] Step 330: determine the first road section where the real-time position is located, and obtain a first distance difference between the real-time position and the end position of the first road section.

[0050] According to the real-time position of the navigation object, the first road section where the implementation position is located can be determined, and the first road section is also the road section where the navigation object is currently located. Figure 4 As shown, if the real-time position corresponding to the navigation is represented as point a, which is located on the route between navigation point 1 and navigation point 2, the first section where the real-time position is located is section 1-3.

[0051] The end position of the first segment refers to the navigation point forming the end position of the first segment, still based on Figure 4 As an example, if the first section is specifically section 1-3, the end position of the first section is the position where navigation point 3 is located.

[0052] According to the location information data corresponding to the real-time location corresponding to the navigation and the location information data corresponding to the end location of the first section, the first distance difference between the real-time location and the end location can be calculated. For example, based on actual needs, a distance calculation method such as Euclidean distance and Manhattan distance can be selected to calculate the first distance difference, and this embodiment is not limited to this.

[0053] Step 350: determining a first remaining time for the navigation object to reach the navigation destination from the real-time position according to the first distance difference, so as to refresh the road condition during the navigation process based on the first remaining time.

[0054] In this embodiment, based on the first distance difference between the real-time position of the navigation object and the end position of the first section where the navigation object is located, combined with the estimated time of the first section obtained during the route calculation process, the estimated time for the navigation object to reach the end position of the first section from the real-time position can be obtained. Further combined with the estimated time of each section located after the first section obtained during the route calculation process, the first remaining time for the navigation object to reach the navigation end point from the real-time position can be determined.

[0055] Traffic conditions during navigation refer to some road conditions during navigation, such as Figure 1 The navigation interface shown displays the remaining kilometers, remaining time, estimated arrival time, direction of the navigation route, etc. This embodiment refreshes the road conditions during navigation based on the first remaining time, including displaying the first remaining time as the remaining time in the navigation interface, so as to show a more accurate remaining time to the user of the navigation object through the navigation interface.

[0056] It can be seen that the technical solution provided by this embodiment does not need to rely on sending a network request to the navigation server to obtain the remaining time required for the navigation object to reach the navigation end point from the current position, but calculates the remaining time by obtaining the real-time position of the navigation object and calculating the distance difference between the real-time position and the end position of the nearest road section. In the case of weak network or no network, although it is difficult to obtain accurate traffic information from the navigation server, the technical solution of the embodiment of this application can simulate the real-time remaining time to refresh the traffic information at the minute level, so that the traffic information displayed in the navigation interface is also more accurate. In addition, for users of the navigation object, it can avoid the problem of poor user experience due to poor network status.

[0057] Figure 5 yes Figure 3 Step S350 in the illustrated embodiment is a flow chart of an exemplary embodiment. Figure 5As shown, the process of determining the first remaining time for the navigation object to reach the navigation destination from the real-time position according to the first distance difference may include steps S510 to S530, which are described in detail as follows:

[0058] Step S510: determining a first estimated time from the real-time position to the end position of the first road section according to the first distance difference.

[0059] Considering that the real-time position of the navigation object is most likely not at the navigation point contained in the navigation path, it is difficult to directly obtain the remaining time for the navigation object to reach the navigation destination based on the data obtained by the navigation server during the route calculation process. To solve this problem, this embodiment adopts a distance difference solution to approximate the remaining time for the navigation object to reach the navigation destination.

[0060] Exemplarily, the solution of this embodiment first determines the first estimated time for the navigation object to reach the end position of the first section from the real-time position according to the first distance difference. First, the ratio between the first distance difference and the distance of the first section is calculated, and then the product of the ratio and the estimated time corresponding to the first section is used as the first estimated time for the navigation object to reach the end position of the first section from the real-time position. As mentioned above, the estimated time corresponding to the first section is obtained in the process of planning the navigation path, that is, obtained by calculating the route through the navigation server.

[0061] Step S530: Determine a first remaining time for the navigation object to reach the navigation destination from the real-time position based on the first estimated time and the sum of the estimated times of the sections after the first section in the navigation path.

[0062] The estimated times corresponding to the sections after the first section in the navigation path are also obtained during the planning of the navigation path, so the total estimated time of these sections can be calculated. Based on the first estimated time and the estimated time, the first remaining time for the navigation object to reach the navigation destination from the real-time position can be determined.

[0063] If Figure 4 Taking the navigation path and the real-time position of the navigation object shown as an example, the process of obtaining the first remaining time required for the navigation object to reach the navigation destination from the real-time position can also be expressed by the following formula:

[0064]

[0065] Among them, T a9 The remaining time for the navigation object to reach the navigation point 9 (i.e., the navigation end point) from the real-time position a is represented by D 3 Indicates the first distance difference between the real-time position of the navigation object and the end position of segment 1-3, D 13 Indicates the distance value of section 1-3, T13 It indicates the estimated time for section 1-3, T 37 It indicates the estimated time for section 3-7, T 79 Indicates the estimated time corresponding to section 7-9. It should be understood that sections 3-7 and 7-9 are both sections located after section 1-3 where the real-time position point a is located. In the navigation path, the direction close to the navigation end point is called the backward direction. From the above, it can be seen that the scheme proposed in this embodiment can make a relatively accurate estimate of the remaining time for the navigation object to reach the navigation end point from the real-time position based on the navigation path related information obtained in the road calculation stage. When the navigation object is in a weak network or no network state, the simulated remaining time can be obtained according to the scheme provided in this embodiment. The remaining time is used to display in the navigation interface to refresh the road conditions, thereby ensuring the refresh frequency of the remaining time of the navigation interface in a weak network or no network state, and also ensuring the user experience.

[0066] Figure 6 FIG. 1 is a flow chart of a method for refreshing road conditions shown in another exemplary embodiment of the present application. Figure 6 As shown in Figure 3 The improved method for refreshing the road condition further includes steps S610 to S670. For details, please refer to the following description:

[0067] Step S610: periodically sending a network request to the navigation server.

[0068] As mentioned above, in order to ensure that the traffic conditions in the navigation interface can be refreshed at a specific frequency, it is necessary to periodically send network requests to the navigation server. The network request carries the real-time location of the navigation object to request the navigation server to return the corresponding traffic data, such as the remaining time and other data. For example, in the application scenario of in-vehicle navigation, due to the fast movement speed of the vehicle, the navigation interface usually needs to refresh the traffic conditions at the minute level, so the cycle of sending network requests to the navigation server is once a minute; at the same time, the frequency of obtaining the real-time location of the navigation object should also be once a minute, and synchronized with the time point when the network request is sent to the navigation server.

[0069] Step S630: detecting a preset trigger condition.

[0070] The preset trigger condition is used to trigger the execution Figure 3Preset conditions of the steps of the illustrated embodiment. For example, considering that in a weak network or no network environment, the network request sent to the navigation server usually cannot be sent successfully, the preset trigger condition may include the failure to send the network request. For another example, when there are risk factors in the network state, the road condition data returned by the navigation server may not be legal data, so the preset trigger condition may also include that the road condition data returned by the navigation server in response to the network request is illegal. For the former example scenario, after sending the network request, if a network feedback message is received indicating that the network request failed to be sent, it is determined that the preset trigger condition is detected. For the latter example scenario, by verifying the received road condition data, if the field format of the remaining time contained in the road condition data is illegal, or the value of the remaining time is an obviously wrong value, it is determined that the preset trigger condition is detected.

[0071] If it is determined that the preset trigger condition is detected, then jump to step S310 and execute Figure 3 That is to say, when the preset trigger condition is detected, the navigation server will not be relied on to obtain the road condition data waiting to be refreshed, but the navigation server will be used to obtain the road condition data waiting to be refreshed. Figure 3 The distance difference-based solution shown is used to simulate and obtain a more accurate remaining time.

[0072] If the preset trigger condition is not detected, jump to step S650.

[0073] Step S650, analyzing the traffic data returned by the navigation server to obtain the estimated time required for the navigation object to reach the navigation destination from the real-time position.

[0074] If the preset trigger condition cannot be detected, it indicates that the network status is good during the current navigation process, there is no weak network or no network condition, and the communication status with the navigation server is also good. Therefore, after sending a network request to the navigation server, the traffic data returned by the navigation server for the network request can be received, and the estimated time for the navigation object to reach the navigation destination from the real-time position is obtained by parsing the received traffic data. Among them, the process of parsing the traffic data is the reverse process of the data packaging performed by the navigation server in the data sending stage.

[0075] Step S670: encapsulate the estimated time required for the navigation object to reach the navigation destination from the real-time position into data in a specified format, so as to update the traffic information displayed in the navigation interface according to the data in the specified format.

[0076] The estimated time for the navigation object to reach the navigation destination from the real-time position is encapsulated into data in a specified format in order to obtain data suitable for UI (User Interface) display on the navigation interface, thereby updating the traffic information displayed in the navigation interface according to the data in the specified format, for example, updating the remaining time displayed in the navigation interface.

[0077] It is also necessary to mention that in the process of periodically sending network requests, if the network condition recovers from a weak network or no network to a normal state, based on the solution provided in this embodiment, the preset trigger condition cannot be detected after the network is restored. Therefore, the navigation server is restored to request the road condition data to be updated, which not only ensures the road condition refresh when the network is unobstructed, but also ensures the frequency of road condition refresh in abnormal conditions such as a weak network or no network.

[0078] Figure 7 FIG. 1 is a flow chart of a method for refreshing road conditions shown in another exemplary embodiment of the present application. Figure 7 As shown, this method Figure 3 The embodiment shown further includes steps S710 to S730, which are described in detail as follows:

[0079] Step S710, obtaining a second estimated time for the navigation object to reach the navigation destination from the navigation waypoint.

[0080] First of all, it should be noted that in the solution provided in this embodiment, the navigation point string of the navigation path includes a navigation waypoint, which refers to the intermediate location between the navigation starting point and the navigation end point on the navigation path, which can be understood as the location of the navigation object passing through the navigation waypoint in the process of reaching the navigation end point.

[0081] Figure 8 is a schematic diagram of a navigation path and navigation status shown in another exemplary embodiment, which is based on Figure 4 As further proposed in the navigation path and navigation status schematic diagram shown, specifically, navigation point 4 is set as a navigation waypoint.

[0082] In this embodiment, the difference between the time required for the navigation object to reach the navigation destination from the real-time position and the time required for the navigation object to reach the navigation destination from the navigation waypoint is taken as the second remaining time for the navigation object to reach the navigation waypoint from the current real-time position. The first remaining time for the navigation object to reach the navigation destination from the real-time position can be based on Figure 3 The embodiment shown is obtained, so it is also necessary to calculate the second estimated time for the navigation object to reach the navigation destination from the navigation waypoint.

[0083] For example, considering that a navigation waypoint may not be the end position of a road section, it is usually impossible to directly obtain the estimated time for the navigation object to reach the navigation end point from the navigation waypoint based on the data obtained in the route calculation stage. Therefore, the following steps are required to obtain the second estimated time:

[0084] Step S711, determining the second road section where the navigation waypoint is located, and calculating a second distance difference between the navigation waypoint and the end position of the second road section;

[0085] Step S713, determining a third estimated time from the navigation waypoint to the end position of the second section according to the second distance difference;

[0086] Step S715, determining a second estimated time for the navigation object to reach the navigation destination from the navigation waypoint based on the third estimated time and the sum of the estimated times of the sections in the navigation path that are located after the second section.

[0087] The principle of obtaining the second estimated time shown above is the same as Figure 3 The principle of obtaining the first estimated time in the illustrated embodiment is consistent, and is also based on a distance difference scheme. The second distance difference between the navigation waypoint and the end position of the second section is calculated to estimate the third estimated time for the navigation object to reach the end position of the second section from the navigation waypoint based on the second distance difference. The sum of the third estimated time and the sum of the estimated times for the sections in the navigation path that follow the second section is used as the second estimated time for the navigation object to reach the navigation end point from the navigation waypoint.

[0088] The process of obtaining the second estimated time shown above can be represented by the following steps:

[0089]

[0090] Among them, T 49 The second estimated time for the navigation object to reach the navigation point 9 (i.e., the navigation destination) from the navigation point 4 (i.e., the navigation waypoint) is D 47 Indicates the distance between the navigation point and navigation point 7, D 37 Indicates the distance of the section 3-7 where the navigation waypoint is located, T 37 It indicates the estimated time for section 3-7, T 79 It indicates the estimated time of the section 7-9 located after the section 3-7. The detailed calculation process can refer to the acquisition process of the first estimated time, which will not be described in detail here.

[0091] Step S730, taking the difference between the first remaining time and the second estimated time as the second remaining time for the navigation object to reach the navigation waypoint from the real-time position, so as to refresh the road condition during the navigation process based on the second remaining time.

[0092] The formula for calculating the second remaining time in this embodiment can be expressed as follows:

[0093] T a4 =T a9 +T 49

[0094] Among them, T a4 It represents the remaining time for the navigation object to reach the navigation waypoint from the real-time position a, T a9 It represents the remaining time for the navigation object to reach the navigation destination from the real-time position a, T 49 Indicates the second estimated time for the navigation object to reach the navigation destination from the navigation waypoint.

[0095] In the scenario where there are navigation waypoints during the navigation process, the remaining time to reach the navigation waypoints will usually be displayed in the navigation interface for the user to obtain. Therefore, this embodiment refreshes the road conditions during navigation based on the second remaining time, and also refreshes the remaining time to reach the navigation waypoints displayed in the navigation interface.

[0096] It can be seen from this that the method provided in this embodiment further takes into account the existence of navigation waypoints in actual application scenarios, so that the method provided in this embodiment has higher applicability and meets the navigation needs in actual application scenarios.

[0097] Fig. 9 yes Figure 3 The step S310 in the illustrated embodiment is a flow chart in an exemplary embodiment. Fig. 9 As shown, the process of obtaining the real-time position of the navigation object on the navigation path may include steps S910 to S930, which are described in detail as follows:

[0098] Step S910: acquiring real-time positioning information of the navigation object.

[0099] As mentioned above, the real-time positioning information of the navigation object can be obtained through the positioning module installed in the navigation object, for example, the real-time GPS coordinates of the navigation object can be obtained through the GPS module installed in the navigation object, and the GPS coordinates can be used as the real-time positioning information of the navigation object.

[0100] Step S930: If it is detected that the real-time positioning information has a deviation, the position of the navigation object is simulated, and the simulated position is used as the real-time position of the navigation object on the navigation path.

[0101] Taking into account the situation that the positioning signal may be weak, for example, when the navigation object passes through a long tunnel, the positioning signal that the navigation object can receive is weak, resulting in the real-time positioning information obtained in step S910 may be inaccurate, that is, the real-time positioning information of the navigation object obtained is biased.

[0102] Generally, if it can be determined that the navigation object is in the road area where the navigation path is located based on the real-time positioning information of the navigation object, then it can be determined that the real-time positioning information of the navigation object is normal. On the contrary, if it is determined that the navigation object is not in the road area where the navigation path is located based on the acquired real-time positioning information, for example, the real-time positioning information indicates that the navigation object is located in other lanes outside the navigation path, or even in the mountains and forests around the navigation path, then it can be determined that the real-time positioning information is biased.

[0103] In some exemplary embodiments, the determination of whether the acquired real-time positioning information has a deviation can also be determined based on the display of the real-time positioning information in the UI interface of the navigation interface. Specifically, the current position of the navigation object displayed in the navigation interface is usually determined based on the acquired real-time positioning information of the navigation object, and the navigation path will also obtain the corresponding position information during the route calculation stage. If the current position of the navigation object displayed in the navigation interface is not within the road area where the navigation path is located, it can be determined that the real-time positioning information of the navigation object has a deviation.

[0104] In the case where the real-time positioning information is biased, the real-time position of the navigation object will also be biased, and the remaining time for the navigation object to reach the navigation destination or navigation waypoint determined based on the real-time position of the navigation object is inaccurate. In order to obtain a more accurate remaining time, this embodiment simulates the position of the navigation object and uses the simulated position as the real-time position of the navigation object on the navigation path.

[0105] Exemplarily, the process of simulating the real-time position of the navigation object may include the following steps:

[0106] Step S931, determining the initial position, moving speed and moving direction of the navigation object according to the historical track information of the navigation object on the navigation path and the path information of the navigation path;

[0107] Step S933, simulating the real-time position of the navigation object based on the initial position, moving speed and moving method.

[0108] Considering that in general, as long as the initial position of the navigation object is known, the moving speed of the navigation object is known, and how the moving direction of the navigation object changes at each moment during the moving process is known, the position of the navigation object at all times can be known. Based on this, this embodiment needs to obtain the initial position, moving speed and moving direction of the navigation object. Among them, the initial position refers to a position point used as a reference position, and the real-time positioning information of the navigation object at this position point should be correct, or the real-time position of the navigation object at this position point is relatively accurate position information obtained through simulation.

[0109] The historical trajectory information of the navigation object on the navigation path refers to the trajectory of the navigation object on this navigation path. In layman's terms, it is the relevant numerical data of the route that the navigation object has completed on this navigation path. Based on this, the initial position and the moving speed of the navigation object at the initial position can be obtained. The path information of the navigation path is obtained in the route calculation stage, such as the number of roads on the entire route, the location information of the navigation points, the direction of different sections, and other information related to the attributes of the navigation path. Generally speaking, the moving direction of the navigation object is consistent with the direction of the navigation path. Therefore, the moving direction of the navigation object relative to the initial position during the movement process can be determined based on the path information of the navigation path.

[0110] Based on the initial position obtained above, the moving speed of the navigation object at the initial position, and the moving direction of the navigation object relative to the initial position, the current real-time position of the navigation object can be simulated. It is easy to understand that the current real-time position of the navigation object is the position after the initial position is moved. Therefore, according to the moving speed of the navigation object at the initial position and the moving direction of the navigation object relative to the initial position, the detailed movement information of the navigation object during the period of time after reaching the initial position can be simulated, such as the moving distance and moving direction relative to the initial position, thereby obtaining the real-time position of the navigation object. In other words, this embodiment is a process of calculating the current real-time position of the navigation object by accumulating the displacement vector at the initial position.

[0111] In some exemplary embodiments, in order to further improve the accuracy of the simulated real-time position, more comprehensive situations need to be considered in the simulation process of the real-time position of the navigation object, such as the movement habits of the navigation object (such as vehicle driving habits), the dynamic and static state of the navigation object, whether the movement is uniform, etc. Therefore, machine learning can be used to simulate the real-time position of the navigation object.

[0112] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Among them, machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0113] Based on the powerful learning ability of machine learning, through the machine learning process for a large number of historical trajectories, the machine learning model can estimate the displacement bias of the navigation object's moving speed, moving direction, moving habits, dynamic and static states and other all-round characteristics, so as to ensure that the estimated real-time position of the navigation object is more accurate and reliable. Exemplarily, the machine learning model may include a supervised model based on a neural network, such as a binary classification machine learning model, and the machine learning model is trained by using a large number of historical trajectories so that the machine learning model adjusts the model parameters during the training process, so that the adjusted model parameters have comprehensive prediction performance for the navigation object's moving speed, moving direction, moving habits, dynamic and static states and other all-round characteristics.

[0114] Fig.10 It is a brief flow chart of refreshing the traffic condition in the navigation interface in an exemplary application scenario. In the application scenario shown in 10, refreshing the traffic condition at a certain frequency is a demand or realization goal in this application scenario. On the one hand, when the network condition is relatively smooth, by initiating a network request to the navigation server, the traffic condition data issued by the navigation server is obtained, and by parsing the received traffic condition data, the remaining time required for the navigation object to reach the destination from the current real-time position can be obtained; on the other hand, in the case of weak network or no network, the remaining time bottoming algorithm is used to obtain the remaining time required for the navigation object to reach the destination from the current real-time position. The remaining time bottoming algorithm is also the traffic condition refreshing method proposed in this application. Regardless of the method used to obtain the remaining time required for the navigation object to reach the destination from the current real-time position, the remaining time obtained will be displayed in the navigation interface, thereby realizing the refresh of the remaining time displayed in the navigation interface. For the detailed implementation process, please refer to the records in the aforementioned embodiments, which will not be repeated here.

[0115] Fig.11 is a block diagram of a road condition refreshing device shown in an exemplary embodiment of the present application. The device can be applied to Figure 2The implementation environment shown in the figure is specifically configured in the intelligent terminal 210. The device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.

[0116] like Fig.11 As shown, the exemplary road condition refreshing device includes:

[0117] The real-time position acquisition module 1101 is configured to acquire the real-time position of the navigation object on the navigation path, wherein the navigation path is the route between the navigation starting point and the navigation end point, a string of navigation points is distributed on the navigation path, and a section on the navigation path is formed by the route between at least two navigation points; the first distance difference acquisition module 1103 is configured to determine the first section where the real-time position is located, and acquire the first distance difference between the real-time position and the end position of the first section; the remaining time acquisition module 1105 is configured to determine the first remaining time for the navigation object to reach the navigation end point from the real-time position according to the first distance difference, so as to refresh the road condition during navigation based on the first remaining time.

[0118] In this exemplary traffic condition refresh device, the remaining time for the navigation object to reach the navigation end point from the real-time position is obtained based on the distance difference between the real-time position and the end position of the road section where the real-time position is located. Therefore, in the case of weak network or no network, although it is difficult to obtain accurate traffic condition information from the navigation server, this embodiment can simulate the real-time remaining time to refresh the traffic condition information at the minute level, so that the traffic condition information displayed in the navigation interface is also relatively accurate.

[0119] In another exemplary embodiment, the remaining time acquisition module 1105 includes:

[0120] The first estimated time acquisition unit is configured to determine the first estimated time for reaching the end position of the first section from the real-time position according to the first distance difference; the first remaining time acquisition unit is configured to determine the first remaining time for the navigation object to reach the navigation end point from the real-time position based on the first estimated time and the sum of the estimated times of the sections after the first section in the navigation path.

[0121] In another exemplary embodiment, the first estimated time acquisition unit includes:

[0122] The ratio calculation subunit is configured to calculate the ratio between the first distance difference and the distance of the first road section; the first estimated time calculation subunit is configured to use the product of the ratio and the estimated time corresponding to the first road section as the first estimated time for reaching the end position of the first road section from the real-time position, wherein the estimated time corresponding to the first road section is obtained during the planning process of the navigation path.

[0123] In another exemplary embodiment, the navigation point string includes navigation waypoints; the device further includes:

[0124] The second estimated time acquisition module is configured to obtain the second estimated time for the navigation object to reach the navigation end point from the navigation waypoint; the second remaining time acquisition module is configured to use the difference between the first remaining time and the second estimated time as the second remaining time for the navigation object to reach the navigation waypoint from the real-time position, so as to refresh the road condition during navigation based on the second remaining time.

[0125] In another exemplary embodiment, the second estimated time acquisition module includes:

[0126] The second distance difference determination unit is configured to determine the second road section where the navigation waypoint is located, and calculate the second distance difference between the navigation waypoint and the end position of the second road section; the third estimated time determination unit is configured to determine the third estimated time for reaching the end position of the second road section from the navigation waypoint according to the second distance difference; the second estimated time calculation unit is configured to determine the second estimated time for the navigation object to reach the navigation end point from the navigation waypoint based on the third estimated time and the sum of the estimated times of the sections in the navigation path that follow the second road section.

[0127] In another exemplary embodiment, the apparatus further comprises:

[0128] The network request sending module is configured to periodically send network requests to the navigation server, wherein the network request carries the real-time position of the navigation object, so as to request the navigation server to return corresponding traffic data; the jump execution module is configured to execute the step of obtaining the real-time position of the navigation object on the navigation path if a preset trigger condition is detected, wherein the preset trigger condition includes at least one of failure to send the network request and illegal traffic data returned by the navigation server for the network request; the data processing module is configured to parse the traffic data returned by the navigation server if the preset trigger condition is not detected, so as to obtain the estimated time for the navigation object to reach the navigation end point from the real-time position; and encapsulate the estimated time for the navigation object to reach the navigation end point from the real-time position into data in a specified format, so as to update the traffic information displayed in the navigation interface according to the data in the specified format.

[0129] In another exemplary embodiment, the real-time location acquisition module 1101 includes:

[0130] The real-time positioning information acquisition unit is configured to acquire the real-time positioning information of the navigation object; the real-time position simulation module is configured to simulate the real-time position of the navigation object if a deviation is detected in the real-time positioning information, and use the simulated real-time position as the real-time position of the navigation object on the navigation path.

[0131] In another exemplary embodiment, the real-time location acquisition module 1101 further includes:

[0132] The position deviation judgment unit is configured to determine that there is a deviation in the real-time positioning information if it is determined based on the acquired real-time positioning information that the navigation object is not in the road area where the navigation path is located.

[0133] In another exemplary embodiment, the real-time location simulation module includes:

[0134] A related information determination unit is configured to determine the initial position of the navigation object, the moving speed at the initial position, and the moving direction relative to the initial position based on the historical trajectory information of the navigation object on the navigation path and the path information of the navigation path; a position simulation unit is configured to simulate the real-time position of the navigation object based on the initial position, the moving speed at the initial position, and the moving direction relative to the initial position.

[0135] In another exemplary embodiment, the apparatus is applied to a terminal device installed with a navigation SDK, and the apparatus is implemented as a functional module provided by the navigation SDK.

[0136] It should be noted that the road condition refreshing device provided in the above embodiment and the road condition refreshing method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In practical applications, the road condition refreshing device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0137] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the road condition refresh method provided in the above-mentioned embodiments.

[0138] Fig.12 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Fig.12 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0139] like Fig.12As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage part 1208 to the random access memory (RAM) 1203, such as executing the method described in the above embodiment. In the RAM 1203, various programs and data required for system operation are also stored. The CPU 1201, the ROM 1202 and the RAM 1203 are connected to each other through the bus 1204. The input / output (I / O) interface 1205 is also connected to the bus 1204.

[0140] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0141] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1209, and / or installed from a removable medium 1211. When the computer program is executed by a central processing unit (CPU) 1201, various functions defined in the system of the present application are executed.

[0142] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0143] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0144] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0145] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the road condition refreshing method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0146] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the road condition refreshing method provided in each of the above embodiments.

[0147] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for refreshing road conditions, characterized in that: The method comprises: Periodically sending a network request to a navigation server, wherein the network request carries the real-time location of the navigation object, so as to request the navigation server to return corresponding traffic data; If a preset trigger condition is detected, the real-time position of the navigation object on the navigation path is obtained, wherein the navigation path is a route between a navigation start point and a navigation end point, a string of navigation points is distributed on the navigation path, and a route between at least two navigation points forms a section on the navigation path; wherein the preset trigger condition includes at least one of a failure to send a network request and illegality of the road condition data returned by the navigation server for the network request; Determine a first road section where the real-time position is located, and obtain a first distance difference between the real-time position and an end position of the first road section; A first remaining time for the navigation object to reach the navigation destination from the real-time position is determined according to the first distance difference, so as to refresh the road condition during navigation based on the first remaining time.

2. The method according to claim 1, characterized in that The determining, according to the first distance difference, a first remaining time for the navigation object to reach the navigation destination from the real-time position includes: Determine a first estimated time from the real-time position to the end position of the first road section according to the first distance difference; A first remaining time for the navigation object to reach the navigation destination from the real-time position is determined based on the first estimated time and the sum of the estimated times of the sections in the navigation path that are located after the first section.

3. The method according to claim 2, characterized in that The determining, according to the first distance difference, a first estimated time from the real-time position to the end position of the first road section includes: calculating a ratio between the first distance difference and the distance of the first road section; The product of the ratio and the estimated time corresponding to the first road section is used as the first estimated time for reaching the end position of the first road section from the real-time position, wherein the estimated time corresponding to the first road section is obtained during the planning process of the navigation path.

4. The method according to claim 1, characterized in that: The navigation point string includes navigation waypoints, and the method further includes: Obtaining a second estimated time for the navigation object to reach the navigation destination from the navigation waypoint; The difference between the first remaining time and the second estimated time is used as the second remaining time for the navigation object to reach the navigation waypoint from the real-time position, so as to refresh the road condition during navigation based on the second remaining time.

5. The method according to claim 4, characterized in that The obtaining of a second estimated time for the navigation object to reach the navigation destination from the navigation waypoint includes: Determine a second road section where the navigation waypoint is located, and calculate a second distance difference between the navigation waypoint and an end position of the second road section; Determining a third estimated time from the navigation waypoint to the end position of the second road section according to the second distance difference; A second estimated time for the navigation object to reach the navigation destination from the navigation waypoint is determined based on the third estimated time and the sum of the estimated times of the sections of the navigation path that are located after the second section.

6. The method according to claim 1, characterized in that The method further comprises: If the preset trigger condition is not detected, the traffic data returned by the navigation service end is analyzed to obtain the estimated time for the navigation object to reach the navigation destination from the real-time position; The estimated time taken for the navigation object to reach the navigation destination from the real-time position is encapsulated into data in a specified format, so as to update the traffic information displayed in the navigation interface according to the data in the specified format.

7. The method according to claim 1, characterized in that The obtaining of the real-time position of the navigation object on the navigation path comprises: Acquire real-time positioning information of the navigation object; If it is detected that there is a deviation in the real-time positioning information, the real-time position of the navigation object is simulated, and the simulated real-time position is used as the real-time position of the navigation object on the navigation path.

8. The method according to claim 7, characterized in that After acquiring the real-time positioning information of the navigation object, the method further includes: If it is determined based on the acquired real-time positioning information that the navigation object is not within the road area where the navigation path is located, it is determined that there is a deviation in the real-time positioning information.

9. The method according to claim 7, characterized in that: The simulating the real-time position of the navigation object comprises: Determine the initial position of the navigation object, the moving speed at the initial position, and the moving direction relative to the initial position according to the historical track information of the navigation object on the navigation path and the path information of the navigation path; The real-time position of the navigation object is simulated based on the initial position, the moving speed at the initial position, and the moving direction relative to the initial position.

10. The method according to any one of claims 1 to 9, characterized in that The method is applied to a terminal device installed with a navigation SDK, and the method implements the functions provided by the navigation SDK.

11. A road condition updating device, characterized in that: The device comprises: A network request sending module, configured to periodically send a network request to a navigation server, wherein the network request carries the real-time location of the navigation object, so as to request the navigation server to return corresponding traffic data; A real-time position acquisition module is configured to acquire the real-time position of the navigation object on the navigation path if a preset trigger condition is detected, wherein the navigation path is a route between a navigation start point and a navigation end point, a navigation point string is distributed on the navigation path, and a route between at least two navigation points forms a section on the navigation path; wherein the preset trigger condition includes at least one of a failure to send a network request and illegality of the road condition data returned by the navigation server for the network request; a first distance difference acquisition module, configured to determine a first road section where the real-time position is located, and acquire a first distance difference between the real-time position and an end position of the first road section; The remaining time acquisition module is configured to determine a first remaining time for the navigation object to reach the navigation destination from the real-time position according to the first distance difference, so as to refresh the road condition during navigation based on the first remaining time.

12. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the road condition refreshing method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the road condition refreshing method described in any one of claims 1 to 10.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the road condition refreshing method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Method for confirming remaining time of navigation system, device and navigation system

    CN101183006A

  • Method and device for estimating duration in navigation process

    CN107917714A

  • Method displaying navigation state of navigation system and the navigation system therefor

    KR1020060083748A