[go: up one dir, main page]

CN115985126B - Road condition refreshing method and device, electronic device, storage medium, and program product - Google Patents

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

Info

Publication number
CN115985126B
CN115985126B CN202111207099.9A CN202111207099A CN115985126B CN 115985126 B CN115985126 B CN 115985126B CN 202111207099 A CN202111207099 A CN 202111207099A CN 115985126 B CN115985126 B CN 115985126B
Authority
CN
China
Prior art keywords
navigation
time
real
road
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111207099.9A
Other languages
Chinese (zh)
Other versions
CN115985126A (en
Inventor
张大鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111207099.9A priority Critical patent/CN115985126B/en
Publication of CN115985126A publication Critical patent/CN115985126A/en
Application granted granted Critical
Publication of CN115985126B publication Critical patent/CN115985126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Navigation (AREA)

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.

Description

Road condition refreshing method and device, electronic equipment, storage medium and program product
Technical Field
The application relates to the technical field of navigation, in particular to a road condition refreshing method and device, electronic equipment, a computer readable storage medium and a computer program product.
Background
Navigation is a technology of a key path pointing to a destination, and refreshing of the road condition information of a vehicle driving road in a minute level is performed in the navigation process, so that the latest road condition can be timely synchronized to a navigation user. The road condition information of the vehicle driving road generally comprises the remaining time, which represents the time spent by the vehicle reaching the destination, and in the implementation of the prior art, the remaining time is obtained by the navigation terminal requesting to the navigation server through the network, so that the navigation terminal is difficult to refresh the road condition information of the vehicle driving road in time under the condition of weak network or no network, and the road condition information displayed in the navigation interface is inaccurate.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present application provide a road condition refreshing method and apparatus, an electronic device, a computer readable storage medium, and a computer program product.
According to one aspect of the embodiment of the application, a road condition refreshing method is provided, which comprises the steps of 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 navigation point string is distributed on the navigation path, a road section on the navigation path is formed by the route between at least two navigation points, a first road section where the real-time position is located is determined, a first distance difference value between the real-time position and an end position of the first road section is obtained, and a first residual time when the navigation object reaches the navigation end point from the real-time position is determined according to the first distance difference value so as to refresh road conditions in a navigation process based on the first residual time.
According to one aspect of the embodiment of the application, a road condition refreshing device is provided, which comprises a real-time position acquisition module, a first distance difference acquisition module and a remaining time acquisition module, wherein the real-time position acquisition module is configured to acquire the real-time position of a navigation object on a navigation path, the navigation path is a route between a navigation starting point and a navigation terminal point, a navigation point string is distributed on the navigation path, a road section on the navigation path is formed by the route between at least two navigation points, the first distance difference acquisition module is 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 the end position of the first road section, and the remaining time acquisition module is configured to determine a first remaining time when the navigation object reaches the navigation terminal point from the real-time position according to the first distance difference so as to refresh road conditions in a navigation process based on the first remaining time.
According to one aspect of the embodiment of the application, the electronic equipment comprises one or more processors and a storage device, wherein the storage device is used for storing one or more programs, and the electronic equipment is enabled to realize the road condition refreshing method when the one or more programs are executed by the one or more processors.
According to an aspect of an embodiment of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor of a computer, cause the computer to perform the road condition refreshing method as described above.
According to an aspect of the embodiments of the present application, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the road condition refreshing method as described above.
In the technical scheme provided by the embodiment of the application, the residual time for the navigation object to reach the navigation terminal from the real-time position is obtained according to the distance difference between the real-time position and the end position of the road section where the real-time position is located, so that under the condition of weak network or no network, although accurate road condition information is difficult to obtain from the navigation server, the real-time residual time can be simulated to refresh the road condition information in a minute level by the technical scheme of the embodiment of the application, and the road condition information displayed in the navigation interface is more accurate.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram of a navigation interface shown in accordance with an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an implementation environment for road condition refreshing during navigation according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a road condition refreshing method according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of a navigation path and navigation condition shown in an exemplary embodiment;
FIG. 5 is a flow chart of step S350 in the embodiment of FIG. 3 in an exemplary embodiment;
FIG. 6 is a flowchart illustrating a road condition refreshing method according to another exemplary embodiment of the present application;
FIG. 7 is a flowchart of a road condition refreshing method according to another exemplary embodiment of the present application;
FIG. 8 is a schematic diagram of a navigation path and navigation condition shown in another exemplary embodiment;
FIG. 9 is a flow chart of step S310 in the embodiment shown in FIG. 3 in an exemplary embodiment;
FIG. 10 is a simplified flow chart of refreshing road conditions in a navigation interface in an exemplary application scenario;
FIG. 11 is a block diagram of a road condition refreshing apparatus according to an exemplary embodiment of the present application;
fig. 12 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the present application, the term "plurality" means two or more. "and/or" describes the association relationship of the association object, and indicates that there may be three relationships, for example, a and/or B may indicate that there are three cases of a alone, a and B together, and B alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted first that navigation is a technique of pointing to a critical path of a destination, is a process of monitoring and controlling the movement of objects such as a process, a vehicle, a pedestrian, etc. from one place to another, and in a broader sense, navigation may refer to any skill or study related to determining a position and a direction. Embodiments of the present application relate to land navigation for monitoring the change in position of an object such as a vehicle, pedestrian, etc. moving from one location to another in accordance with a planned path.
Specific frequency refreshing can be carried out aiming at road condition information in the navigation process, so that user experience is ensured. Taking an application scene of vehicle driving path navigation as an example, because the vehicle driving speed is higher, the road condition of the vehicle driving road is refreshed in a minute level in the navigation process, for example, the residual time of reaching a destination by the vehicle is usually displayed by taking the minute as the minimum unit, and therefore, the road condition of the vehicle driving road can be refreshed every 1 minute in the navigation process, and the latest road condition can be timely and synchronously checked by a driver. In other application scenarios, the frequency of refreshing the road condition of the traveling road of the object may be set according to the actual situation, which is not limited by the embodiment of the present application.
Fig. 1 is a schematic diagram of a navigation interface according to an exemplary embodiment of the present application, in which 48 minutes of remaining time to reach a destination is displayed, and the remaining time should be dynamically refreshed to ensure a user experience due to the continuous change of the position of an object during traveling. It should be understood that information other than the remaining time for reaching the destination may be displayed in the navigation interface, for example, the route information for prompting to enter the innominate road after 2 km left turn, the predicted arrival time point, the remaining mileage, etc. shown in fig. 1.
Fig. 2 is a schematic diagram of an implementation environment for refreshing road conditions during navigation according to an exemplary embodiment of the present application. As shown in fig. 2, navigation is implemented by the navigation map software installed on the intelligent terminal 210 during the driving process of the vehicle, the navigation map software performs a minute-level road condition refreshing, that is, each minute performs a network request to the navigation server 220 according to the domain name of the navigation server 220, then the navigation server 220 returns corresponding road condition data to the navigation map software, the road condition data contains the remaining time when the vehicle arrives at the destination, the navigation map software performs data analysis on the road condition data to obtain the information of the remaining time, and packages and displays the obtained remaining time on the navigation interface, thereby implementing the minute-level refreshing of the remaining time on the navigation interface.
The smart terminal 210 shown in fig. 2 may be any terminal device supporting installation of navigation map software, such as a smart phone, a vehicle-mounted computer, a tablet computer, a notebook computer, or a wearable device, but is not limited thereto. The navigation server 220 shown in fig. 2 may be a navigation server, for example, an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and an artificial intelligence platform, which are not limited herein. The intelligent terminal 210 may communicate with the navigation server 220 through a wireless network such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology), and the like, which is not limited herein.
The weak network is also called as a weak network environment, and has the characteristic of low network transmission rate, and in the weak network or no network environment, the intelligent terminal 210 cannot make a network request to the navigation server 220, so that the remaining time displayed in the navigation interface cannot be refreshed, and the wrong remaining time can be displayed in the navigation interface. The effect on the user experience of the remaining time to reach the destination that cannot be refreshed in the navigation interface will be described below with a specific example:
for example, in a network taxi scene, after a driver opens network taxi software installed on an intelligent terminal and receives an order, the intelligent terminal enters a navigation interface as shown in fig. 1, if the total consumption of a navigation path is 48 minutes, the intelligent terminal is always in a weak network or no network state due to unsmooth network after the vehicle runs to a distance of 10 minutes in the rest, and both the driver and the passenger can find that the rest of the navigation interface display is not updated, so that the driver can generate distrust on the navigation map software, thereby influencing the reputation of the navigation map provider and the network taxi software, and meanwhile, the passenger can generate distrust on the driver, thereby increasing the risk of complaints of the driver.
For example, in a vehicle driving scene, a driver drives according to road conditions displayed by a navigation interface, the driver is easy to feel mental when driving for a long time, and the driver finds that the remaining time displayed by the navigation interface is not updated under the condition of weak network or no network, so that a certain degree of oppression is brought to the driver, and the driver is caused to feel emotional abnormality, so that on one hand, the driver is not trusted to navigation map software, and on the other hand, the driving safety is possibly influenced.
The problems noted above have general applicability in general travel scenarios. It can be seen that in the case of weak or no network, various problems arise due to the inability to guarantee the refresh frequency at the time of the remainder of the arrival at the destination. To solve these problems, embodiments of the present application respectively provide a road condition refreshing method, a road condition refreshing device, an electronic device, a computer readable storage medium, and a computer program product, and these embodiments will be described in detail below.
Referring to fig. 3, fig. 3 is a flowchart illustrating a road condition refreshing method according to an exemplary embodiment of the application. The method may be applied to the implementation environment shown in fig. 2 and specifically performed by the intelligent terminal 210 in the implementation environment. It should be understood that the method may be adapted to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and the implementation environments to which the method is adapted are not limited by the present embodiment.
For example, a navigation SDK (Software Development Kit, a software development kit, which is a development kit set when application software is built for a specific software package, a software framework, an operating system, and the like) may be installed in an intelligent terminal to which the road condition refreshing method disclosed in this embodiment is applied, and the method disclosed in this embodiment is specifically implemented as one or more functions provided by the navigation SDK externally.
As shown in fig. 3, in an exemplary embodiment, the road condition refreshing method at least includes steps S310 to S350, which are described in detail as follows:
step S310, the real-time position of the navigation object on the navigation path is obtained.
It should be noted that, the navigation object refers to an object for performing map navigation, and is typically an intelligent terminal with navigation map software installed, for example, an electronic device with a mobile property such as a smart phone, a vehicle-mounted terminal, a tablet computer, or a wearable device. Accordingly, the user of the navigation object is typically a driver, a pedestrian, or the like.
The navigation path is a route between a navigation start point and a navigation end point, which is obtained by planning the navigation path for the navigation start point and the navigation end point, and it should be understood that the navigation start point refers to a start point of the route to be planned, and the navigation end point refers to a destination of the route to be planned. It should also be appreciated that the navigation route is typically determined by both the navigation start point and the navigation terminal.
After the navigation object acquires the navigation starting point and the navigation ending point, a network request is initiated to the navigation server, wherein the network request carries the navigation starting point and the navigation ending point, so that the navigation server calculates a path aiming at the navigation starting point and the navigation ending point to obtain a navigation path connecting the navigation starting point and the navigation ending point, a navigation point string of a navigation route and a plurality of road sections for forming the navigation path. The navigation path is the whole line between the navigation starting point and the navigation end point, and the calculation path is the path planning process for the navigation starting point and the navigation end point.
It should be understood that the navigation point string is a set of a plurality of navigation points, and the navigation points are key points on the whole navigation path, and may include one or more of a marked position, an intersection position, a passing point, and a preset positioning point on the navigation path, for example. The navigation point string is usually obtained by the navigation server performing a route calculation based on its own attribute, which is not limited in this embodiment.
It should be further understood that each of the segments constituting the navigation path is formed by a route between at least two navigation points, for example, as shown in fig. 4, navigation points 0 to 9 are sequentially distributed over the entire navigation path, and a segment (hereinafter, referred to as a segment 0 to 1) is formed by a route between navigation points 0 to 1, a segment (hereinafter, referred to as a segment 1 to 3) is formed by a route between navigation points 1 to 3, a segment (hereinafter, referred to as a segment 3 to 7) is formed by a route between navigation points 3 to 7, and a segment (hereinafter, referred to as a segment 7 to 9) is formed by a route between navigation points 7 to 9, respectively. That is, an exemplary navigation path shown in FIG. 4 is a route composed of road segments 0-1, road segments 1-3, road segments 3-7, and road segments 7-9. The division of different road segments on the navigation path is also usually obtained by the navigation server during the course of the calculation.
In addition, it should be mentioned that, in the process of calculating the route, the navigation server not only plans to form different road segments on the navigation route, but also predicts the time spent by the navigation object passing through the different road segments to obtain the predicted time spent corresponding to each road segment. For example, as shown in FIG. 4, the estimated time for the navigation object to pass through road segments 0-1 is estimated to be 1 minute, the estimated time for the navigation object to pass through road segments 1-3 is estimated to be 2 minutes, the estimated time for the navigation object to pass through road segments 3-7 is estimated to be 4 minutes, and the estimated time for the navigation object to pass through road segments 7-9 is estimated to be 1 minute.
The navigation server transmits the relevant information obtained by calculating the route to the navigation object, so that the navigation object can acquire the information, and perform operations such as displaying a navigation path and the remaining kilometer data in the navigation interface, displaying the remaining time spent by the navigation object in reaching the navigation destination, and displaying the estimated arrival time point calculated by combining the system time point, and the embodiment is not limited to this.
The real-time position of the navigation object on the navigation path may be obtained through a positioning module installed in the navigation object, for example, a GPS (Global Positioning System ) positioning module installed in the navigation object may be used to obtain the real-time position of the navigation object, or a positioning module that uses other positioning technologies to implement positioning, such as LBS (Location Based Service, mobile phone base station positioning service), may be used to obtain the real-time position of the navigation object, which is not limited herein.
Step 330, determining a first road segment where the real-time position is located, and acquiring a first distance difference between the real-time position and an end position of the first road segment.
The first road segment where the implementation position is located, that is, the road segment where the navigation object is currently located, may be determined according to the real-time position of the navigation object. As shown in fig. 4, if the real-time position corresponding to navigation is denoted as point a, it is located on the route between the navigation point 1 and the navigation point 2, and the first road segment on which the real-time position is located is namely the road segments 1-3.
The end position of the first road segment refers to the navigation point forming the end position of the first road segment, and still taking fig. 4 as an example, if the first road segment is specifically the road segments 1-3, the end position of the first road segment is the position where the navigation point 3 is located.
According to the position information data corresponding to the real-time position corresponding to the navigation and the position information data corresponding to the end position of the first road section, a first distance difference value between the real-time position and the end position can be calculated. For example, the first distance difference may be calculated by selecting an equidistant calculation manner of the euclidean distance (Euclidean Distance) and the manhattan distance (MANHATTAN DISTANCE) based on the actual requirement, which is not limited in this embodiment.
Step 350, determining a first remaining time when the navigation object reaches the navigation end point from the real-time position according to the first distance difference value, so as to refresh the road condition in the navigation process based on the first remaining time.
In this embodiment, according to a first distance difference between the real-time position of the navigation object and the end position of the first road segment where the navigation object is located, and in combination with the estimated time of the first road segment obtained in the road calculation process, the estimated time of the navigation object reaching the end position of the first road segment from the real-time position may be obtained, and in combination with the estimated time of each road segment located after the first road segment obtained in the road calculation process, the first remaining time of the navigation object reaching the navigation end point from the real-time position may be determined.
The road conditions in the navigation process refer to some road conditions in the navigation process, for example, including the number of remaining mileage, remaining time, expected arrival time point, trend of navigation path, etc. displayed by the navigation interface shown in fig. 1. The embodiment refreshes the road conditions in the navigation process based on the first residual time, and comprises displaying the first residual time as the residual time in the navigation interface so as to display the accurate residual time to the user of the navigation object through the navigation interface.
It can be seen that, according to the technical scheme provided by the embodiment of the application, the residual time required by the navigation object to reach the navigation terminal from the current position is not required to be acquired by sending a network request to the navigation server, but the residual time is calculated by acquiring 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, and under the condition of weak network or no network, although accurate road condition information is difficult to acquire from the navigation server, the real-time residual time can be simulated to refresh the road condition information in a minute level by the technical scheme provided by the embodiment of the application, so that the road condition information displayed in the navigation interface is more accurate. In addition, for the user of the navigation object, the problem of poor user experience caused by poor network state can be avoided.
Fig. 5 is a flow chart of step S350 in the embodiment shown in fig. 3 in an exemplary embodiment. As shown in fig. 5, the process of determining 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 value may include steps S510 to S530, which are described in detail as follows:
step S510, determining a first estimated time for reaching the end position of the first road segment from the real-time position according to the first distance difference.
Considering that the real-time position of the navigation object is not on the navigation point contained in the navigation path to the greatest extent, when the residual use of the navigation object reaching the navigation end point is difficult to directly obtain according to the data obtained by the navigation server in the road calculation process, in order to solve the problem, the embodiment adopts a distance difference scheme to approximately obtain the residual use of the navigation object reaching the navigation end point.
The first estimated time for the navigation object to reach the end position of the first road segment from the real-time position is determined according to the first distance difference. The method comprises the steps of firstly calculating the ratio between a first distance difference value and the distance of a first road section, and then taking the product of the ratio and the estimated time corresponding to the first road section as the first estimated time for the navigation object to reach the end position of the first road section from the real-time position. As described above, the predicted time corresponding to the first route segment is obtained in the planning process of the navigation path, that is, obtained by calculating the path through the navigation server.
In step S530, a first remaining time for the navigation object to reach the navigation end point from the real-time position is determined based on the first estimated time and the sum of estimated time of the road segments located after the first road segment in the navigation path.
Based on the estimated time of each road segment located after the first road segment in the navigation path is also obtained in the planning process of the navigation path, the estimated time sum of the road segments can be calculated. Based on the first projected time and the projected time integrated, a first remaining time for the navigation object to reach a navigation endpoint from the real-time location may be determined.
Taking the navigation path and the real-time position of the navigation object as shown in fig. 4 as an example, the process of obtaining the first remaining time required for the navigation object to reach the navigation end point from the real-time position can also be expressed by the following formula:
Wherein T a9 represents the first remaining time when the navigation object arrives at navigation point 9 (i.e., navigation end point) from the real-time position a point, D 3 represents the first distance difference between the real-time position of the navigation object and the end position of road segments 1-3, D 13 represents the distance value of road segments 1-3, T 13 represents the estimated time corresponding to road segments 1-3, T 37 represents the estimated time corresponding to road segments 3-7, and T 79 represents the estimated time corresponding to road segments 7-9. It is to be understood that the road segments 3-7 and 7-9 are each a road segment located after the road segment 1-3 where the point a of the real-time position is located, and in the navigation path, a direction approaching the navigation end point is referred to as a backward direction. As can be seen from the foregoing, according to the scheme provided in this embodiment, according to the navigation path related information obtained in the road calculation stage, the remaining time when the navigation object reaches the navigation end point from the real-time position can be estimated more accurately, and when the navigation object is in the state of weak network or no network, the simulated remaining time can be obtained according to the scheme provided in this embodiment, and the remaining time is used for displaying in the navigation interface to refresh the road condition, so that the refresh frequency of the navigation interface for the remaining time in the state of weak network or no network is ensured, and the user experience is also ensured.
Fig. 6 is a flowchart illustrating a road condition refreshing method according to another exemplary embodiment of the present application. As shown in fig. 6, the method is an improvement on the embodiment shown in fig. 3, and the improved road condition refreshing method further includes steps S610 to S670, and the detailed process is described below:
In step S610, a network request is periodically sent to the navigation server.
As described above, in order to ensure that the road condition in the navigation interface can be refreshed according to the specific frequency, the network request needs to be periodically sent to the navigation server. The network request carries the real-time position of the navigation object to request the navigation server to return corresponding road condition data, such as the data of the residual time and the like. For example, in a car navigation application scenario, since the moving speed of the car is fast, the navigation interface needs to refresh road conditions at the level of minutes, so that the period of sending the network request to the navigation server is once per minute, and meanwhile, the frequency of acquiring the real-time position of the navigation object should be once per minute, and the navigation interface is synchronous with the time point of sending the network request to the navigation server.
In step S630, a preset trigger condition is detected.
The preset trigger condition is a preset condition for triggering the execution of the steps of the embodiment shown in fig. 3. For example, considering that in a weak or no network environment, a network request sent to a navigation server cannot generally be sent successfully, the preset trigger condition may include a failure of the network request to send. For another example, in the case that the risk factor exists in the network state, the received road condition data returned by the navigation server may not be legal data, so the preset triggering condition may also include that the road condition data returned by the navigation server for the network request is illegal. For the former example scenario, if the network feedback message is received after the network request is sent to indicate that the network request is sent failed, it is determined that a preset trigger condition is detected. For the latter example scenario, by checking 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 a obviously erroneous value, it is determined that the preset trigger condition is detected.
If it is determined that the preset trigger condition is detected, the process goes to step S310, where each step of the method shown in fig. 3 is executed. That is, when the preset trigger condition is detected, the road condition data waiting to be refreshed is not acquired by the navigation server, but rather the distance difference-based scheme shown in fig. 3 is adopted to simulate to obtain more accurate remaining time.
If the preset trigger condition is not detected, the process goes to step S650.
Step S650, data analysis is carried out on the road condition data returned by the navigation server side, and the estimated time when the navigation object reaches the navigation terminal point from the real-time position is obtained.
Under the condition that the preset triggering condition cannot be detected, the network state is good in the current navigation process, no weak network or no network condition occurs, and the communication condition with the navigation server is also good, so that after the network request is sent to the navigation server, road condition data returned by the navigation server for the network request can be received, and the received road condition data is subjected to data analysis, so that the estimated time when the navigation object reaches the navigation terminal from the real-time position is obtained. The process of data analysis on road condition data is the inverse process of data packaging on the navigation server in the data issuing stage.
Step S670, packaging the predicted time of the navigation object reaching the navigation terminal point from the real-time position into data with a specified format, and updating the road condition information displayed in the navigation interface according to the data with the specified format.
The method comprises the steps of packaging the predicted time of the navigation object reaching the navigation terminal point from the real-time position into data with a specified format, and obtaining the data which is suitable for the navigation Interface to display a User Interface (UI), so that the road condition information displayed in the navigation Interface is updated according to the data with the specified format, for example, the remaining time displayed in the navigation Interface is updated.
It should be further noted that, in the process of periodically sending a network request, if the network condition is recovered to a normal state from a weak network or no network, based on the scheme provided in this embodiment, a preset trigger condition cannot be detected after the network is recovered, so that the request for obtaining the road condition data to be updated from the navigation server is recovered, which not only ensures the road condition refresh under the condition of a clear network, but also ensures the road condition refresh frequency under the abnormal condition such as the weak network or no network.
Fig. 7 is a flowchart illustrating a road condition refreshing method according to another exemplary embodiment of the present application. As shown in fig. 7, the method further includes steps S710 to S730 based on the embodiment shown in fig. 3, and is described in detail as follows:
step S710, obtaining a second predicted time when the navigation object reaches the navigation end point from the navigation passing point.
It should be noted that, in the solution provided in this embodiment, the navigation path includes a navigation passing point in the navigation point string, where the navigation passing point refers to an intermediate point located between the navigation start point and the navigation end point on the navigation path, and may be understood as a position of the navigation passing point when the navigation object reaches the navigation end point.
Fig. 8 is a schematic diagram of a navigation path and a navigation condition according to another exemplary embodiment, which is further proposed based on the schematic diagram of the navigation path and the navigation condition shown in fig. 4, and specifically sets the navigation point 4 as a navigation passing point.
In this embodiment, the difference between the time required for the navigation object to reach the navigation end point from the real-time position and the time required for the navigation object to reach the navigation end point from the navigation route point is used as the second remaining time length for the navigation object to reach the navigation route point from the current real-time position. The first remaining time period for the navigation object to reach the navigation end point from the real-time position can be obtained based on the embodiment shown in fig. 3, so that the second estimated time period for the navigation object to reach the navigation end point from the navigation route point needs to be calculated.
For example, considering that the navigation route point may not be the end position of a certain road segment, the predicted time when the navigation object reaches the navigation end point from the navigation route point cannot be obtained directly according to the data obtained in the road calculation stage, so the following steps are needed to obtain the second predicted time:
step S711, determining a second road segment where the navigation passing point is located, and calculating a second distance difference between the navigation passing point and the end position of the second road segment;
Step S713, determining a third estimated time from the navigation passing point to the end position of the second road section according to the second distance difference value;
in step S715, the second predicted time when the navigation object reaches the navigation end point from the navigation route point is determined based on the sum of the third predicted time and the predicted time of the road segment located after the second road segment in the navigation path.
The principle of the second estimated time acquisition shown above is identical to that of the first estimated time acquisition in the embodiment shown in fig. 3, and is also a distance difference-based scheme, in which the second distance difference between the navigation route point and the end position of the second road segment is calculated to estimate the third estimated time when the navigation object reaches the end position of the second road segment from the navigation route point based on the second distance difference, and the sum between the third estimated time and the sum of the estimated times of the road segments located after the second road segment in the navigation path is taken as the second estimated time when the navigation object reaches the navigation end point from the navigation route point.
The acquisition procedure at the second estimated time shown above can be expressed as the following steps:
Wherein T 49 represents the second predicted time when the navigation object arrives at navigation point 9 (i.e., navigation end point) from navigation point 4 (i.e., navigation route point), D 47 represents the distance between the navigation route point and navigation point 7, D 37 represents the distance of road segment 3-7 where the navigation route point is located, T 37 represents the predicted time of road segment 3-7, and T 79 represents the predicted time of road segment 7-9 located after road segment 3-7. The detailed calculation process may refer to the acquisition process of the first expected time, which will not be described in detail herein.
Step S730, taking the difference between the first remaining time and the second predicted time as the second remaining time when the navigation object reaches the navigation route point from the real-time position, so as to refresh the road condition in the navigation process based on the second remaining time.
The formula for calculating the second remaining time in this embodiment can be expressed as follows:
Ta4=Ta9+T49
Wherein T a4 represents the second remaining time for the navigation object to reach the navigation route point from the real-time position a point, T a9 represents the first remaining time for the navigation object to reach the navigation destination from the real-time position a point, and T 49 represents the second predicted time for the navigation object to reach the navigation destination from the navigation route point.
In a scenario where a navigation passing point is set in the navigation process, the remaining time reaching the navigation passing point is usually displayed in the navigation interface for the user to obtain, so that the embodiment performs refreshing of the road condition in the navigation process based on the second remaining time, that is, refreshing display of the remaining time reaching the navigation passing point displayed in the navigation interface.
Therefore, the situation that navigation passing points exist in the actual application scene is further considered by the method provided by the embodiment, so that the method provided by the embodiment has higher applicability and meets the navigation requirements in the actual application scene.
Fig. 9 is a flowchart of step S310 in the embodiment shown in fig. 3 in an exemplary embodiment. As shown in fig. 9, the process of acquiring 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:
step S910, acquiring real-time positioning information of the navigation object.
As described above, the real-time positioning information of the navigation object may be obtained by the positioning module installed in the navigation object, for example, the GPS coordinates of the navigation object in real time may be obtained by the GPS module installed in the navigation object, and the GPS coordinates may be used as the real-time positioning information of the navigation object.
In step S930, if the deviation of the real-time positioning information is detected, 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.
In consideration of the situation that the positioning signal may have a weak signal, for example, the positioning signal that the navigation object can receive is weak in the process of passing through the long tunnel, the real-time positioning information acquired in step S910 may be inaccurate, that is, the acquired real-time positioning information of the navigation object has a deviation.
In general, if it can be determined that the navigation object is located in the road area where the navigation path is located according to the real-time positioning information of the navigation object, it can be determined that the real-time positioning information of the navigation object is normal. Otherwise, if it is determined that the navigation object is not located in the road area where the navigation path is located according to the obtained 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, even in mountain forests around the navigation path, it may be determined that the real-time positioning information has a deviation.
In some exemplary embodiments, determining whether the acquired real-time positioning information has a deviation may also be determined according to a UI interface display condition of the real-time positioning information in the navigation interface. Specifically, the current position of the navigation object displayed in the navigation interface is usually determined according to the acquired real-time positioning information of the navigation object, the navigation path also obtains corresponding position information in the road calculation stage, and if the current position of the navigation object displayed in the navigation interface is not located in the road area where the navigation path is located, it can be determined that the real-time positioning information of the navigation object has deviation.
When the real-time positioning information has deviation, the real-time position of the navigation object also has deviation, and the residual time when the navigation object obtained by determining according to the real-time position of the navigation object reaches the navigation end point or the navigation passing point is inaccurate. In order to obtain more accurate remaining time, the embodiment simulates the position of the navigation object, so that the position obtained by simulation is used as the real-time position of the navigation object on the navigation path.
By way of example, the process of simulating the real-time position of a navigation object may include the steps of:
Step S931, determining the initial position, the moving speed and the 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;
step S933 simulates the real-time position of the navigation object based on the initial position, the moving speed, and the moving method.
Considering that in general, the initial position of the navigation object is known, and the moving speed of the navigation object is known, and how the moving direction of the navigation object changes at each moment in the moving process is known, the position of the navigation object at each moment can be known, and based on this, the initial position, moving speed and moving direction of the navigation object need to be obtained in this embodiment. The initial position is a position point serving as a reference position, and the real-time positioning information of the navigation object at the position point is correct, or the real-time position of the navigation object at the position point is more accurate position information obtained through simulation.
The historical track information of the navigation object on the navigation path refers to the track of the navigation object moving on the navigation path, and in common practice, the historical track information of the navigation object on the navigation path refers to the relevant data of the completed route of the navigation object on the navigation path, and based on the relevant data, the initial position and the moving speed of the navigation object on the initial position can be obtained. The path information of the navigation path is obtained in the path calculation stage, for example, the information related to the attribute of the navigation path, such as the number of routes of the whole route, the position information of the navigation points, the trend of different road segments, and the like, generally speaking, the moving direction of the navigation object is consistent with the trend of the navigation path, so that the moving direction of the navigation object relative to the initial position in the moving process can be determined according to the path information of the navigation path.
Based on the initial position, the moving speed of the navigation object on 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 a position after moving at the initial position, so that 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, detailed moving information of the navigation object in the period of time after reaching the initial position, such as the moving distance and the moving direction relative to the initial position, can be simulated, thereby obtaining the real-time position of the navigation object. That is, the present embodiment is a process of estimating the current real-time position of the navigation object by accumulating displacement vectors at the initial position.
In some exemplary embodiments, in order to further improve accuracy of the real-time position obtained by the simulation, more comprehensive situations, such as movement habits of the navigation object (e.g. driving habits of a vehicle), dynamic and static states of the navigation object, whether the movement is uniform or not, etc. need to be considered in the simulation process of the real-time position of the navigation object, so that a machine learning approach may be adopted to simulate the real-time position of the navigation object.
Machine learning (MACHINE LEARNING, ML) is a multi-domain interdisciplinary, involving multiple disciplines such as probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory, and the like. It is specially studied how a computer simulates or implements learning behavior of a human to acquire new knowledge or skills, and reorganizes existing knowledge structures to continuously improve own performance. Among them, machine learning is the core of artificial intelligence, which is the fundamental approach for making computers intelligent, and is applied throughout various fields of artificial intelligence. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, induction learning, teaching learning, and the like.
Based on the strong learning capacity of machine learning, the displacement bias estimation of the machine learning model on the omnidirectional characteristics of the navigation object such as the moving speed, the moving direction, the moving habit, the dynamic and static states and the like can be realized through the machine learning process aiming at a large number of historical tracks, so that the estimated real-time position of the navigation object is more accurate and reliable. For example, the machine learning model may include a neural network-based supervision model, such as a two-class machine learning model, and the machine learning model is trained by using a large number of historical tracks, so that the machine learning model performs model parameter adjustment in the training process, and the adjusted model parameters have comprehensive prediction performance on the omnidirectional characteristics of the moving speed, the moving direction, the moving habit, the dynamic state and the static state of the navigation object.
Fig. 10 is a schematic flow chart of refreshing road conditions in a navigation interface in an exemplary application scenario. Under the application scene shown in 10, the road condition refreshing according to a certain frequency is the requirement or the realization target under the application scene, on one hand, under the condition that the network condition is relatively smooth, the road condition data issued by the navigation server is obtained by initiating a network request to the navigation server, and the remaining time spent by the navigation object for reaching the destination from the current real-time position can be obtained by carrying out data analysis on the received road condition data, on the other hand, under the condition of weak network or no network, the remaining time spent by the spent time spent method is adopted to obtain the remaining time spent by the navigation object for reaching the destination from the current real-time position, and the remaining time spent method is the road condition refreshing method provided by the application. In any way, the remaining time spent by the navigation object for reaching the destination from the current real-time position is obtained, and the obtained remaining time is displayed in the navigation interface, so that the refreshing of the remaining time displayed in the navigation interface is realized. Please refer to the descriptions in the foregoing embodiments for detailed implementation, and a detailed description thereof is omitted herein.
Fig. 11 is a block diagram of a road condition refreshing apparatus according to an exemplary embodiment of the present application. The apparatus may be applied to the implementation environment shown in fig. 2, and is specifically configured in the smart terminal 210. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 11, the exemplary road condition refreshing apparatus includes:
The navigation system comprises a real-time position acquisition module 1101, a first distance difference acquisition module 1103 and a residual time acquisition module 1105, wherein the real-time position acquisition module 1101 is configured to acquire the real-time position of a navigation object on a navigation path, the navigation path is a route between a navigation starting point and a navigation end point, navigation point strings are distributed on the navigation path, a road 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 a first road section where the real-time position is located and acquire a first distance difference between the real-time position and the end position of the first road section, and the residual time acquisition module 1105 is configured to determine a first residual time when the navigation object reaches the navigation end point from the real-time position according to the first distance difference so as to refresh road conditions in the navigation process based on the first residual time.
In the exemplary road condition refreshing device, the remaining time for the navigation object to reach the navigation end point from the real-time position is obtained according to the distance difference between the real-time position and the end position of the road section where the real-time position is located, so that under the condition of weak network or no network, although accurate road condition information is difficult to obtain from the navigation server, the real-time remaining time can be simulated to refresh the road condition information in a minute level through the embodiment, and the road condition information displayed in the navigation interface is more accurate.
In another exemplary embodiment, the remaining time acquisition module 1105 includes:
The navigation system comprises a first estimated time acquisition unit configured to determine a first estimated time for reaching an end position of a first road segment from a real-time position according to a first distance difference value, and a first remaining time acquisition unit configured to determine a first remaining time for reaching a navigation end point from the real-time position for a navigation object based on the first estimated time and a sum of estimated times of road segments located after the first road segment in a navigation path.
In another exemplary embodiment, the first expected time period acquisition unit includes:
The system comprises a ratio calculating subunit, a first estimated time calculating subunit and a first estimated time calculating subunit, wherein the ratio calculating subunit is configured to calculate the ratio between the first distance difference value and the distance of the first road section, and the first estimated time calculating subunit is configured to take the product of the ratio and the estimated time corresponding to the first road section as the first estimated time from the real-time position to the end position of the first road section, wherein the estimated time corresponding to the first road section is obtained in the planning process of the navigation path.
In another exemplary embodiment, the navigation point string includes navigation passing points, and the apparatus further includes:
The second residual time acquisition module is configured to take the difference between the first residual time and the second predicted time as the second residual time when the navigation object reaches the navigation passing point from the real-time position so as to refresh road conditions in the navigation process based on the second residual time.
In another exemplary embodiment, the second expected time acquisition module includes:
The navigation system comprises a navigation route point, a second distance difference value determining unit, a third estimated time determining unit and a second estimated time calculating unit, wherein the navigation route point is positioned on a second road section, the second distance difference value determining unit is configured to determine the second road section on which the navigation route point is positioned, and calculate a second distance difference value between the navigation route point and the end position of the second road section, the third estimated time determining unit is configured to determine the third estimated time when the navigation object reaches the end position of the second road section from the navigation route point according to the second distance difference value, and the second estimated time calculating unit is configured to determine the second estimated time when the navigation object reaches the navigation end point from the navigation route point based on the sum of the third estimated time and the estimated time of the road section positioned behind the second road section in the navigation path.
In another exemplary embodiment, the apparatus further comprises:
The navigation system comprises a navigation interface, a network request sending module, a jump execution module and a data processing module, wherein the network request sending module is configured to periodically send a network request to a navigation server, the network request carries the real-time position of a navigation object to request the navigation server to return corresponding road condition data, the jump execution module is configured to execute the step of acquiring the real-time position of the navigation object on a navigation path if a preset trigger condition is detected, the preset trigger condition comprises at least one of failure of network request sending and illegal road condition data returned by the navigation server for the network request, the data processing module is configured to perform data analysis on the road condition data returned by the navigation server if the preset trigger condition is not detected, obtain the predicted use of the navigation object from the real-time position to the navigation terminal, and package the predicted use of the navigation object from the real-time position to the navigation terminal into data in a specified format so as to update the road condition information displayed in the navigation interface according to the data in the specified format.
In another exemplary embodiment, the real-time location acquisition module 1101 includes:
The navigation system comprises a navigation object, a real-time positioning information acquisition unit and a real-time position simulation module, wherein the real-time positioning information acquisition unit is configured to acquire real-time positioning information of the navigation object, and the real-time position simulation module is configured to simulate the real-time position of the navigation object if deviation of the real-time positioning information is detected, and the real-time position obtained through simulation is used as the real-time position of the navigation object on a navigation path.
In another exemplary embodiment, the real-time location acquisition module 1101 further includes:
And the position deviation judging unit is configured to determine that the real-time positioning information has deviation if the navigation object is judged not to be in the road area where the navigation path is located according to the acquired real-time positioning information.
In another exemplary embodiment, the real-time location simulation module includes:
The navigation system includes a navigation object, a related information determining unit configured to determine an initial position of the navigation object, a moving speed at the initial position, and a moving direction relative to the initial position according to historical track information of the navigation object on a navigation path and path information of the navigation path, and a position simulating unit configured to simulate a 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.
In another exemplary embodiment, the apparatus is applied to a terminal device mounted with a navigation SDK, and the apparatus is implemented as a function module provided by the navigation SDK.
It should be noted that, the road condition refreshing device provided in the foregoing embodiment and the road condition refreshing method provided in the foregoing embodiment belong to the same concept, and specific ways of executing operations by each module and unit have been described in detail in the method embodiment, which is not repeated herein. In practical application, the road condition refreshing device provided in the above embodiment may distribute the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides electronic equipment, which comprises one or more processors and a storage device, wherein the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment realizes the road condition refreshing method provided in each embodiment.
Fig. 12 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application. It should be noted that, the computer system 1200 of the electronic device shown in fig. 12 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 12, the computer system 1200 includes a central processing unit (Central Processing Unit, CPU) 1201 that can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a random access Memory (Random Access Memory, RAM) 1203. In the RAM 1203, various programs and data required for the system operation are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204. An Input/Output (I/O) interface 1205 is also connected to bus 1204.
Connected to the I/O interface 1205 are an input section 1206 including a keyboard, a mouse, and the like, an output section 1207 including a display such as a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and a speaker, a storage section 1208 including a hard disk, and the like, and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like. The communication section 1209 performs communication processing via a network such as the internet. The 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, or the like is installed as needed on the drive 1210 so that a computer program read out therefrom is installed into the storage section 1208 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1209, and/or installed from the removable media 1211. When executed by a Central Processing Unit (CPU) 1201, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a road condition refreshing method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the road condition refreshing method provided in the above embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make corresponding variations or modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be defined by the claims.

Claims (14)

1. The road condition refreshing method is characterized by comprising the following steps of:
periodically sending a network request to a 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 road condition data;
If a preset triggering condition is detected, acquiring 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, navigation point strings are distributed on the navigation path, and a road section on the navigation path is formed by the route between at least two navigation points;
Determining a first road section where the real-time position is located, and acquiring a first distance difference value between the real-time position and the end position of the first road section;
And determining a first residual time when the navigation object reaches the navigation terminal point from the real-time position according to the first distance difference value, so as to refresh road conditions in the navigation process based on the first residual time.
2. The method of claim 1, wherein determining a first remaining time for the navigation object to reach the navigation endpoint from the real-time location based on the first distance difference comprises:
determining a first estimated time of arrival at an end location of the first road segment from the real-time location based on the first distance difference;
a first remaining time for the navigation object to reach the navigation end point from the real-time location is determined based on the first estimated time and a sum of estimated times for road segments in the navigation path that follow the first road segment.
3. The method of claim 2, wherein determining a first predicted time for reaching an end location of the first road segment from the real-time location based on the first distance difference comprises:
Calculating a ratio between the first distance difference and the distance of the first road section;
Taking the product of the ratio and the estimated time corresponding to the first road section as a first estimated time from the real-time position to the end position of the first road section, wherein the estimated time corresponding to the first road section is obtained in the planning process of the navigation path.
4. The method of claim 1, wherein the navigation point string includes navigation passing points, the method further comprising:
acquiring a second estimated time when the navigation object reaches the navigation end point from the navigation passing point;
and taking the difference between the first residual time and the second predicted time as the second residual time when the navigation object reaches the navigation passing point from the real-time position, so as to refresh the road condition in the navigation process based on the second residual time.
5. The method of claim 4, wherein the obtaining the second predicted time for the navigation object to reach the navigation end point from the navigation route point comprises:
determining a second road section where the navigation passing point is located, and calculating a second distance difference value between the navigation passing point and the end position of the second road section;
determining a third estimated time from the navigation passing point to the end position of the second road section according to the second distance difference value;
and determining a second estimated time for the navigation object to reach the navigation end point from the navigation passing point based on the third estimated time and the sum of the estimated time of the road sections located after the second road section in the navigation path.
6. The method according to claim 1, wherein the method further comprises:
if the preset triggering condition is not detected, carrying out data analysis on the road condition data returned by the navigation server to obtain the estimated time when the navigation object reaches the navigation terminal point from the real-time position;
and packaging the predicted time of the navigation object reaching the navigation terminal point from the real-time position into data with a specified format, and updating the road condition information displayed in the navigation interface according to the data with the specified format.
7. The method of claim 1, wherein the obtaining the real-time position of the navigation object on the navigation path comprises:
acquiring real-time positioning information of the navigation object;
If the deviation of the real-time positioning information is detected, simulating the real-time position of the navigation object, and taking the real-time position obtained by simulation as the real-time position of the navigation object on the navigation path.
8. The method of claim 7, wherein after the acquiring the real-time positioning information of the navigation object, the method further comprises:
And if the navigation object is judged not to be in the road area where the navigation path is located according to the acquired real-time positioning information, determining that the real-time positioning information has deviation.
9. The method of claim 7, wherein simulating the real-time location of the navigation object comprises:
Determining an initial position of the navigation object, a moving speed on the initial position and a 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;
And simulating 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.
10. The method according to any one of claims 1-9, characterized in that the method is applied to a terminal device installed with a navigation SDK, the method being implemented as a function provided by the navigation SDK.
11. A road condition refreshing apparatus, the apparatus comprising:
The network request sending module is configured to periodically send a network request to the navigation service end, wherein the network request carries the real-time position of the navigation object so as to request the navigation service end to return corresponding road condition data;
the system comprises a real-time position acquisition module, a real-time position acquisition module and a real-time position acquisition module, wherein the real-time position acquisition module is configured to acquire the real-time position of a navigation object on a navigation path if a preset trigger condition is detected, the navigation path is a route between a navigation starting point and a navigation terminal point, navigation point strings are distributed on the navigation path, and a road section on the navigation path is formed by the route between at least two navigation points;
The first distance difference value acquisition module is configured to determine a first road segment where the real-time position is located and acquire a first distance difference value between the real-time position and the end position of the first road segment;
And the residual time acquisition module is configured to determine a first residual time when the navigation object reaches the navigation terminal point from the real-time position according to the first distance difference value so as to refresh road conditions in the navigation process based on the first residual time.
12. An electronic device, comprising:
One or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement the road condition refreshing method of any one of claims 1 to 10.
13. A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the road condition refreshing method of any one of claims 1 to 10.
14. A computer program product comprising a computer program which, when executed by a processor, implements a road condition refreshing method as claimed in any one of claims 1 to 10.
CN202111207099.9A 2021-10-15 2021-10-15 Road condition refreshing method and device, electronic device, storage medium, and program product Active CN115985126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111207099.9A CN115985126B (en) 2021-10-15 2021-10-15 Road condition refreshing method and device, electronic device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111207099.9A CN115985126B (en) 2021-10-15 2021-10-15 Road condition refreshing method and device, electronic device, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN115985126A CN115985126A (en) 2023-04-18
CN115985126B true CN115985126B (en) 2025-01-28

Family

ID=85956848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111207099.9A Active CN115985126B (en) 2021-10-15 2021-10-15 Road condition refreshing method and device, electronic device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN115985126B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119043351A (en) * 2023-05-29 2024-11-29 华为技术有限公司 Navigation system, navigation method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060083748A (en) * 2005-01-18 2006-07-21 삼성전자주식회사 How to display driving conditions on the navigation device
CN101183006A (en) * 2007-11-14 2008-05-21 凯立德欣技术(深圳)有限公司 Method and device for determining remaining time of navigation system, and navigation system
CN107917714A (en) * 2016-10-09 2018-04-17 腾讯科技(深圳)有限公司 Duration method of estimation and device in navigation procedure

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5109344A (en) * 1988-04-28 1992-04-28 Mazda Motor Corporation Vehicle navigation apparatus employing node selection, comparison and elimination techniques
WO2011007381A1 (en) * 2009-07-13 2011-01-20 三菱電機株式会社 Navigation system
JP2013113584A (en) * 2011-11-24 2013-06-10 Aisin Aw Co Ltd System and method for indicating estimated time of arrival and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060083748A (en) * 2005-01-18 2006-07-21 삼성전자주식회사 How to display driving conditions on the navigation device
CN101183006A (en) * 2007-11-14 2008-05-21 凯立德欣技术(深圳)有限公司 Method and device for determining remaining time of navigation system, and navigation system
CN107917714A (en) * 2016-10-09 2018-04-17 腾讯科技(深圳)有限公司 Duration method of estimation and device in navigation procedure

Also Published As

Publication number Publication date
CN115985126A (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US11657420B2 (en) Computing estimated value of providing service among geographical regions
US10551199B2 (en) Utilizing artificial neural networks to evaluate routes based on generated route tiles
US20210101619A1 (en) Safe and scalable model for culturally sensitive driving by automated vehicles
US9992627B2 (en) Method and apparatus for providing location sharing via simulation
US9208478B2 (en) Posted message providing system, posted message providing apparatus, posted message providing method, and computer program
Yang et al. A novel approach for estimation of dynamic from static origin–destination matrices
US11288956B2 (en) Methods of determining user-centric traffic estimation error parameter associated with estimated road traffic conditions
US20150276412A1 (en) Global Positioning System Routing Based On Altering Arrival Time
CN115985126B (en) Road condition refreshing method and device, electronic device, storage medium, and program product
US20230211776A1 (en) Method for determining attribute value of obstacle in vehicle infrastructure cooperation, device and autonomous driving vehicle
CN113706857B (en) Method, device and equipment for determining road trafficability and storage medium
CN115526069B (en) Simulated driving scene generation method, device, equipment and computer readable medium
CN115406462A (en) Navigation and live-action fusion method and device, electronic equipment and storage medium
US20170347237A1 (en) Determining Semantic Travel Modes
JP2014162458A (en) System, method and program for identifying transportation
JP7171350B2 (en) Information processing device and program
CN117606503A (en) Commuting route update method, device, equipment and storage medium
CN112685531B (en) Vehicle matching method and device, computing device and computer-readable storage medium
US20170347232A1 (en) Determining Semantic Travel Modes
CN113837502A (en) Flight price prediction method and system based on deep learning
CN114396963A (en) Planning method and device of driving path, vehicle-mounted terminal and storage medium
CN115824233B (en) Travel road information matching method, apparatus, device and computer readable medium
US20230358640A1 (en) System and method for simulating autonomous vehicle testing environments
Poulton Modelling blue-light ambulance mobility in the London metropolitan area
CN116592869B (en) Map updating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40083187

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant