CN113639759B - Navigation method and navigation device - Google Patents
Navigation method and navigation device Download PDFInfo
- Publication number
- CN113639759B CN113639759B CN202110879581.0A CN202110879581A CN113639759B CN 113639759 B CN113639759 B CN 113639759B CN 202110879581 A CN202110879581 A CN 202110879581A CN 113639759 B CN113639759 B CN 113639759B
- Authority
- CN
- China
- Prior art keywords
- navigation
- path
- information
- paths
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000005516 engineering process Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 10
- 238000010276 construction Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000012015 optical character recognition Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000010006 flight Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3453—Special cost functions, i.e. other than distance or default speed limit of road segments
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3453—Special cost functions, i.e. other than distance or default speed limit of road segments
- G01C21/3461—Preferred or disfavoured areas, e.g. dangerous zones, toll or emission zones, intersections, manoeuvre types or segments such as motorways, toll roads or ferries
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
Abstract
Description
技术领域Technical Field
本申请属于导航技术领域,具体涉及一种导航方法和导航装置。The present application belongs to the field of navigation technology, and specifically relates to a navigation method and a navigation device.
背景技术Background technique
在相关技术中,导航应用程序会根据地图数据和实时的路况数据,为车主规划更合适的路线,如用时更短、距离更近或花费更低。而不同的导航应用程序的算法不同,其数据源和数据更新频率也不同,因此对于相同的目的地,不同程序可能得出不同的路径结果。In related technologies, navigation applications will plan more suitable routes for car owners based on map data and real-time traffic data, such as shorter time, shorter distance or lower cost. Different navigation applications have different algorithms, and their data sources and data update frequencies are also different. Therefore, for the same destination, different programs may produce different path results.
而用户在导航过程中需要专心驾驶,无法同时运行多个导航应用程序进行比较,导致体验不好。Users need to concentrate on driving during the navigation process and cannot run multiple navigation applications at the same time for comparison, resulting in a poor experience.
发明内容Summary of the invention
本申请实施例的目的是提供一种导航方法和导航装置,能够实现在多个导航应用程序中查找更优的路径,并自动切换至更优的路径。The purpose of the embodiments of the present application is to provide a navigation method and a navigation device, which can search for a better path in multiple navigation applications and automatically switch to the better path.
第一方面,本申请实施例提供了一种导航方法,包括:In the first aspect, embodiments of the present application provide a navigation method, including:
获取电子设备当前的位置信息以及导航目的地信息;Obtaining the current location information and navigation destination information of the electronic device;
根据位置信息和导航目的地信息,通过第一导航应用确定第一路径,并分别通过N个第二导航应用确定N个第二路径,其中,第一导航应用在前台运行,N为正整数;According to the location information and the navigation destination information, determine the first path through the first navigation application, and determine N second paths through N second navigation applications respectively, wherein the first navigation application runs in the foreground and N is a positive integer;
在M个第二路径与第一路径的不匹配的情况下,确定M个第二路径中的目标路径,其中,M小于或等于M;In the case where the M second paths do not match the first paths, determine the target path among the M second paths, where M is less than or equal to M;
将目标路径对应的目标导航应用切换至前台运行,并通过目标导航应用按照目标路径进行导航,其中,N个第二导航应用中包括目标导航应用。Switch the target navigation application corresponding to the target path to run in the foreground, and navigate according to the target path through the target navigation application, wherein the N second navigation applications include the target navigation application.
第二方面,本申请实施例提供了一种导航装置,包括:In a second aspect, an embodiment of the present application provides a navigation device, including:
获取模块,用于获取电子设备当前的位置信息以及导航目的地信息;The acquisition module is used to obtain the current location information and navigation destination information of the electronic device;
确定模块,用于根据位置信息和导航目的地信息,通过第一导航应用确定第一路径,并分别通过N个第二导航应用确定N个第二路径,其中,第一导航应用在前台运行,N为正整数;a determination module, configured to determine a first path through a first navigation application according to the location information and navigation destination information, and determine N second paths through N second navigation applications respectively, wherein the first navigation application is running in the foreground, N is a positive integer;
确定模块,还用于在M个第二路径与第一路径不匹配的情况下,确定M个第二路径中的目标路径,其中,M小于或等于N;The determination module is also configured to determine the target path among the M second paths when the M second paths do not match the first paths, where M is less than or equal to N;
导航模块,用于将目标路径对应的目标导航应用切换至前台运行,并通过目标导航应用按照目标路径进行导航,其中,N个第二导航应用中包括目标导航应用。The navigation module is used to switch the target navigation application corresponding to the target path to run in the foreground, and navigate according to the target path through the target navigation application, wherein the N second navigation applications include the target navigation application.
第三方面,本申请实施例提供了一种电子设备,包括处理器,存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the implementation is as in the first aspect. steps of the method.
第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium that stores a program or instructions, and when the program or instructions are executed by a processor, the steps of the method in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面的方法的步骤。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the steps of the method in the first aspect. .
本申请实施例通过“同时”运行多个导航应用,通过多个导航应用的不同算法、不同数据来源,来共同规划路径,当N个辅导航中存在优于当前主导航的路径规划时,及时切换导航应用,且该过程无需驾驶员主动接入,能够在保证车辆行驶安全的情况下,自动切换至更优的路径上,能够保证车辆总是行驶在更优的导航路径上,能够有效地提高出行效率。The embodiment of this application runs multiple navigation applications "simultaneously" and uses different algorithms and different data sources of multiple navigation applications to jointly plan paths. When there is a path plan in N tutoring flights that is better than the current main navigation, timely Switching navigation applications does not require the driver to actively access the process. It can automatically switch to a better path while ensuring the safety of the vehicle. It can ensure that the vehicle always drives on a better navigation path and can effectively Improve travel efficiency.
附图说明Description of drawings
图1示出了图1示出了根据本申请实施例的导航方法的流程图;Figure 1 shows a flow chart of a navigation method according to an embodiment of the present application;
图2示出了根据本申请实施例的导航方法的界面示意图之一;Figure 2 shows one of the schematic interface diagrams of the navigation method according to an embodiment of the present application;
图3示出了根据本申请实施例的导航方法的界面示意图之二;Figure 3 shows the second schematic interface diagram of the navigation method according to the embodiment of the present application;
图4示出了根据本申请实施例的导航装置的结构框图;Figure 4 shows a structural block diagram of a navigation device according to an embodiment of the present application;
图5示出了根据本申请实施例的电子设备的结构框图;Figure 5 shows a structural block diagram of an electronic device according to an embodiment of the present application;
图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的导航方法和导航装置进行详细地说明。The navigation method and navigation device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
在本申请的一些实施例中,提供了一种导航方法,图1示出了根据本申请实施例的导航方法的流程图,如图1所示,导航方法包括:In some embodiments of the present application, a navigation method is provided. Figure 1 shows a flow chart of the navigation method according to the embodiment of the present application. As shown in Figure 1, the navigation method includes:
步骤102,获取电子设备当前的位置信息以及导航目的地信息;Step 102: Obtain the current location information and navigation destination information of the electronic device;
步骤104,根据位置信息和导航目的地信息,通过第一导航应用确定第一路径,并分别通过N个第二导航应用确定N个第二路径;Step 104: Determine the first path through the first navigation application according to the location information and the navigation destination information, and determine N second paths through N second navigation applications respectively;
在步骤104中,第一导航应用在前台运行,N为正整数;In step 104, the first navigation application is running in the foreground, and N is a positive integer;
步骤106,在M个第二路径与第一路径不匹配的情况下,确定M个第二路径中的目标路径;Step 106, when the M second paths do not match the first path, determine a target path among the M second paths;
在步骤106中,M小于或等于N。In step 106, M is less than or equal to N.
步骤108,将目标路径对应的目标导航应用切换至前台运行,并通过目标导航应用按照目标路径进行导航。Step 108: Switch the target navigation application corresponding to the target path to run in the foreground, and navigate according to the target path through the target navigation application.
在上述步骤中,N个第二导航应用中包括目标导航应用。In the above steps, the N second navigation applications include the target navigation application.
在本申请实施例中,在需要导航时,首先确定电子设备当前的位置信息,也即“起点”位置,并确定导航目的地信息,也即“终点位置”。In the embodiment of the present application, when navigation is required, the current location information of the electronic device, that is, the "starting point" location, is first determined, and the navigation destination information, that is, the "end location" is determined.
在确定了起点和终点之后,分别通过第一导航应用和N个第二导航应用,确定从起点到终点的路径,即第一路径和第二路径。其中,第一导航应用为“主导航”程序,主导航应用在电子设备的前台运行,并与司机或随乘人员进行交互。第二导航应用为“辅导航”程序,辅导航应用在电子设备的后台运行,且辅导航应用的数量可以为多个,比如1个、2个、3个或更多。After the starting point and the end point are determined, the path from the starting point to the end point, that is, the first path and the second path, is determined through the first navigation application and N second navigation applications respectively. Among them, the first navigation application is a "main navigation" program. The main navigation application runs in the foreground of the electronic device and interacts with the driver or the accompanying passengers. The second navigation application is a "tutoring navigation" program. The tutoring navigation application runs in the background of the electronic device, and the number of tutoring navigation applications can be multiple, such as 1, 2, 3 or more.
进一步地,首先通过主导航应用,也即第一导航应用,按照由第一导航根据电子设备当前的位置信息和导航目的地信息规划的第一路径进行导航。Further, first, through the main navigation application, that is, the first navigation application, navigation is performed according to the first path planned by the first navigation based on the current location information and navigation destination information of the electronic device.
在导航过程中,实时判断第二路径与第一路径是否相匹配。具体地,可以分别对比N个第二导航应用中每一个第二导航应用的第二路径,与当前第一导航应用的第一路径之间是否一致,如果一致则说明两者路径相匹配,否则不匹配。During the navigation process, it is determined in real time whether the second path matches the first path. Specifically, you can compare the second path of each second navigation application in the N second navigation applications to see if it is consistent with the first path of the current first navigation application. If they are consistent, it means that the two paths match, otherwise Mismatch.
可以理解的,如果在N个第二导航应用中,存在M个第二路径与第一路径之间的差异值大于阈值,则说明至少有M个第二路径,与当前的第一路径不匹配(出现了偏差),此时将M个第二路径中较优的一个第二路径作为目标路径,并将目标路径对应的目标导航应用切换到前台,在接下来的行程中,通过目标导航应用按照目标路径进行导航。It can be understood that if in N second navigation applications, there are M second paths and the difference between the first path is greater than the threshold, it means that there are at least M second paths that do not match the current first path. (A deviation has occurred). At this time, the better second path among the M second paths is used as the target path, and the target navigation application corresponding to the target path is switched to the foreground. In the next trip, through the target navigation application Navigate by following the target path.
其中,“更优”的第二路径,可以是用时更短的路径,也可以是距离更近的路径,又或是花费更少的路径。Among them, the "better" second path can be a shorter path, a shorter path, or a less expensive path.
具体地,图2示出了根据本申请实施例的导航方法的界面示意图之一,如图2所示,在导航启动后,如果发现了满足条件的目标路径,则可以在当前导航界面200中,弹出对应的提示框202,提示框202中可以包括发现了更佳路径的提示信息,“发现更优路线,近1km”,也可以包括对应的确认标识204。如果当前的驾驶员希望更改导航,可通过语音,或点击确认标识204的方式,切换当前的导航应用和导航路径。Specifically, Figure 2 shows one of the interface schematic diagrams of the navigation method according to the embodiment of the present application. As shown in Figure 2, after the navigation is started, if a target path that meets the conditions is found, the current navigation interface 200 can , a corresponding prompt box 202 pops up. The prompt box 202 may include prompt information that a better route has been found, "Better route found, nearly 1 km", and may also include a corresponding confirmation mark 204. If the current driver wants to change the navigation, he can switch the current navigation application and navigation path through voice or by clicking on the confirmation mark 204.
本申请实施例通过同时运行多个导航应用,通过多个导航应用的不同算法、不同数据来源,来共同规划路径,当N个辅导航中存在优于当前主导航的路径规划时,及时切换导航应用,且该过程无需驾驶员主动甄别路径优劣,能够在保证车辆行驶安全的情况下,自动切换至更优的路径上,能够保证车辆总是行驶在更优的导航路径上,能够有效地提高出行效率。The embodiment of this application jointly plans paths by running multiple navigation applications at the same time, using different algorithms and different data sources of multiple navigation applications. When there is a path plan in the N tutoring flights that is better than the current main navigation, the navigation will be switched in time. Application, and this process does not require the driver to actively identify the advantages and disadvantages of the path. It can automatically switch to a better path while ensuring the safety of the vehicle. It can ensure that the vehicle always drives on a better navigation path and can effectively Improve travel efficiency.
在本申请的一些实施例中,在M个第二路径与第一路径不匹配的情况下,确定M个第二路径中的目标路径之前,还包括:In some embodiments of the present application, when the M second paths do not match the first paths, before determining the target path among the M second paths, the method further includes:
获取N个第二路径中每个第二路径的路径信息以及第一路径的路径信息;Obtaining path information of each second path in the N second paths and path information of the first path;
其中,路径信息包括以下至少一项:路段信息、距离信息、耗时信息和收费信息。The route information includes at least one of the following: road segment information, distance information, time-consuming information and toll information.
在本申请实施例中,根据第二路径的路径信息,以及第一路径的路径信息,判断第一路径和第二路径是否相符合,并根据路径信息,在M个第二路径中确定目标路径。In this embodiment of the present application, based on the path information of the second path and the path information of the first path, it is determined whether the first path and the second path are consistent, and based on the path information, the target path is determined among the M second paths. .
具体地,路径信息可以包括路段信息,也即车辆需要行驶经过的路段,距离信息,也即沿该路径行驶,车辆需要行驶的总距离。路径信息还可以包括耗时信息,也即车辆沿该路径行驶至导航目的地信息所需要花费的时长。路径信息还可以包括收费信息,收费信息具体为车辆沿该路径行驶至导航目的地信息,所经过的收费路段的总路费。Specifically, the path information may include road section information, i.e., the road section that the vehicle needs to travel through, and distance information, i.e., the total distance that the vehicle needs to travel along the path. The path information may also include time information, i.e., the time it takes for the vehicle to travel along the path to the navigation destination information. The path information may also include toll information, which is specifically the total toll for the toll road section that the vehicle passes through along the path to the navigation destination information.
能够理解的是,在一般情况下,距离越短、耗时越少或收费越低,则说明该路径越优秀。用户可以自由设置不同路径信息的权重,也可以设置其中一种路径信息为主要考量,如“距离优先”、“耗时优先”等。It can be understood that in general, the shorter the distance, the less time consuming, or the lower the toll, the better the path. Users can freely set the weight of different path information, or set one of the path information as the main consideration, such as "distance priority", "time-consuming priority", etc.
进一步地,分别计算N个第二路径中,每一个第二路径的路径信息,与当前启动的第一路径的路径信息的差异值。具体地,假设一个第二路径的距离信息为“5km”,当前第一路径的距离信息为“7km”,则两者的差异值为2km。Furthermore, the difference between the path information of each of the N second paths and the path information of the currently activated first path is calculated. Specifically, assuming that the distance information of a second path is "5km" and the distance information of the current first path is "7km", the difference between the two is 2km.
用户可根据实际需求,设置对应的预设阈值。比如,差异值的预设阈值设置为2km,则当第二路径与第一路径之间的距离差大于2km时,确定存在第二路径与第一路径的偏差较大,此时第二路径与第一路径不匹配。再比如,预设阈值设置为2分钟,则当以第二路径行驶的预计耗时,与以第一路径行驶的预计耗时之间的差距大于2分钟,则确定存在第二路径与第一路径的偏差较大,此时确定第二路径与第一路径不匹配。再比如,预设阈值设置为5元,则当第二路径的路费与第一路径的路费之间的差距大于5元,则确定存在第二路径与第一路径的偏差较大,此时第二路径与第一路径不相符。Users can set corresponding preset thresholds according to actual needs. For example, if the preset threshold of the difference value is set to 2km, then when the distance difference between the second path and the first path is greater than 2km, it is determined that there is a large deviation between the second path and the first path. At this time, the second path is different from the first path. The first path does not match. For another example, if the preset threshold is set to 2 minutes, then when the difference between the estimated time consumption of traveling on the second route and the estimated time consumption of traveling on the first route is greater than 2 minutes, it is determined that there is a difference between the second route and the first route. The deviation of the path is large, and it is determined that the second path does not match the first path. For another example, if the preset threshold is set to 5 yuan, then when the difference between the toll of the second path and the toll of the first path is greater than 5 yuan, it is determined that there is a large deviation between the second path and the first path. At this time, the second path The second path does not match the first path.
本申请通过比较备选路径与主路径之间路径信息的差,来确定不同导航路径之间的差异,有利于快速的选出“更优”的导航路径。The present application determines the difference between different navigation paths by comparing the difference in path information between the alternative path and the main path, which is conducive to quickly selecting a "better" navigation path.
在本申请的一些实施例中,确定M个第二路径中的目标路径,包括:In some embodiments of the present application, determining a target path among the M second paths includes:
根据第二路径的路径信息与第一路径的路径信息之间的差异值以及路径信息对应的预设权重比值,分别确定M个第二路径的权重值;Determine weight values of the M second paths respectively according to a difference value between the path information of the second path and the path information of the first path and a preset weight ratio corresponding to the path information;
在M个第二路径中,将权重值最高的第二路径确定为目标路径。Among the M second paths, the second path with the highest weight value is determined as the target path.
能够理解的,多个第二路径中的目标路径是最优导航路径。It can be understood that the target path among the multiple second paths is the optimal navigation path.
在本申请实施例中,M个第二路径信息中,每个第二路径信息均设置有对应的预设权重比值,其中,路径信息包括路段信息、距离信息、耗时信息和收费信息,上述预设权重也即路径信息中,路段信息、距离信息、耗时信息和收费信息中每一个信息的重要程度。比如,用户更看重根据路径信息进行行驶时,所需消耗的时间,则在上述多个信息中,设置耗时信息所占的权重比值更高。In the embodiment of the present application, each of the M second path information is provided with a corresponding preset weight ratio, wherein the path information includes road section information, distance information, time-consuming information and charging information, and the above preset weight is the importance of each of the road section information, distance information, time-consuming information and charging information in the path information. For example, if the user pays more attention to the time consumed when driving according to the path information, then the weight ratio of the time-consuming information is set higher in the above multiple information.
具体地,可根据上述第二路径的路径信息,与第一路径的路径信息之间的差异值,比如沿第二路径行驶时经过的路段,和沿第一路径行驶时所经过的路段的差别;又比如沿第二路径行驶时需行驶的距离,和沿第一路径行驶时需行驶的距离之间的距离差;再比如沿第二路径行驶时预计消耗的时间,和沿第一路径行驶时预计消耗的时间的时间差;再比如沿第二路径行驶时预计支付的路费,和沿第一路径行驶时预计支付的路费的金额差等。Specifically, the difference value between the path information of the second path and the path information of the first path can be used, such as the difference between the road segment passed when traveling along the second path and the road segment passed when traveling along the first path. ; Another example is the distance difference between the distance to be traveled when traveling along the second path and the distance to be traveled when traveling along the first path; another example is the estimated time consumed when traveling along the second path and the distance when traveling along the first path The time difference between the time that is expected to be consumed; another example is the difference in the amount of tolls that are expected to be paid when traveling along the second path, and the amount of tolls that are expected to be paid when traveling along the first path, etc.
根据上述第二路径的路径信息与第一路径的路径信息之间的差异值,在M个第二路径中,确定“最优路径”。举例来说,首先计算沿第二路径行驶时,车辆所需行驶的距离值,与沿第一路径行驶时,车辆所需形式的距离值的差值,并去掉单位信息,得到差值1;然后计算沿第二路径行驶时,预计消耗的时间,和沿第一路径行驶时,预计消耗的时间的差值,并去掉单位信息,得到差值2;然后计算沿第二路径行驶时,预计花费的路费金额,和沿第一路径行驶时,预计花费的路费金额的差值,并去掉单位信息,得到差值3;最后计算沿第二路径行驶时,会经过的路段信息,与沿第一路径行驶时,会经过的路段信息的差值4。According to the difference value between the path information of the second path and the path information of the first path, the "optimal path" is determined among the M second paths. For example, first calculate the difference between the distance value required by the vehicle when traveling along the second path and the distance value required by the vehicle when traveling along the first path, and remove the unit information to obtain a difference of 1; Then calculate the difference between the estimated time when traveling along the second path and the estimated time when traveling along the first path, and remove the unit information to obtain a difference of 2; then calculate the estimated time when traveling along the second path. The difference between the amount of tolls spent and the amount of tolls expected to be spent when driving along the first path, and removing the unit information, yields a difference of 3; finally, calculate the information about the road segments that will be passed when driving along the second path, and the difference between the amount of tolls that are expected to be spent when driving along the second path. When traveling on a route, the difference value of the road segment information that will be passed is 4.
其中,对于路段信息,由于其信息不是数字,因此可以通过预设路段的赋值表,对不同的路段进行赋值,越好的路段,其赋值越高。能够理解的是,路段的限速越高、堵车率越低,则路段“越好”,赋值越高。通过查询第二路段的赋值,和第一路段的赋值,并计算两者的差值,从而得到上述差值4。Among them, for the road section information, since its information is not a number, different road sections can be assigned values through the preset road section assignment table. The better the road section, the higher its assigned value. It can be understood that the higher the speed limit of the road section and the lower the traffic jam rate, the "better" the road section is, and the higher the assigned value is. By querying the assigned value of the second road section and the assigned value of the first road section, and calculating the difference between the two, the above difference 4 is obtained.
进一步地,根据上述差值1、差值2、差值3和差值4的和,作为一个第二路径的权重值,根据权重值的大小,来判断M个第二路径中,哪个第二路径“更优”。Further, based on the sum of the above difference 1, difference 2, difference 3 and difference 4, as the weight value of a second path, determine which of the M second paths is second according to the size of the weight value. The path is "better".
具体地,在计算时,可以为上述差值1、差值2、差值3和差值4设置不同的权重比值,比如说,路段信息的权重比值为0.2(20%),距离信息的权重比值为0.3(30%),耗时信息的权重比值为0.4(40%),收费信息的权重比值为0.1(10%)。能够理解的是,不同路径信息的权重比值,可根据用户的实际需求自行设置。Specifically, during calculation, different weight ratios can be set for the above-mentioned difference 1, difference 2, difference 3 and difference 4. For example, the weight ratio of road segment information is 0.2 (20%), and the weight of distance information is 0.2 (20%). The ratio is 0.3 (30%), the weight ratio of time-consuming information is 0.4 (40%), and the weight ratio of charging information is 0.1 (10%). It can be understood that the weight ratio of different path information can be set according to the actual needs of the user.
因此,在确定第二路径的权重值时,可通过如下算式计算:Therefore, when determining the weight value of the second path, it can be calculated by the following formula:
Q=|D2-D1|×Q1+|T2-T1|×Q2+|P2-P1|×Q3+|M2-M1|×Q4;Q=|D2-D1|×Q1+|T2-T1|×Q2+|P2-P1|×Q3+|M2-M1|×Q4;
其中,Q为权重值,D2为第二路径对应的距离信息,D1为第一路径对应的距离信息,Q1为距离信息对应的权重比值,T2为第二路径对应的耗时信息,T1为第一路径对应的耗时信息,Q2为耗时信息对应的权重比值,P2为第二路径对应的收费信息,P1为第一路径对应的收费信息,Q3为收费信息对应的权重比值,M2为第二路径对应的路段信息,M1为第一路径对应的路段信息,Q4为路段信息对应的权重比值。Among them, Q is the weight value, D2 is the distance information corresponding to the second path, D1 is the distance information corresponding to the first path, Q1 is the weight ratio corresponding to the distance information, T2 is the time-consuming information corresponding to the second path, and T1 is the time-consuming information corresponding to the second path. The time-consuming information corresponding to one path, Q2 is the weight ratio corresponding to the time-consuming information, P2 is the charging information corresponding to the second path, P1 is the charging information corresponding to the first path, Q3 is the weight ratio corresponding to the charging information, and M2 is the The road segment information corresponding to the second path, M1 is the road segment information corresponding to the first path, and Q4 is the weight ratio corresponding to the road segment information.
由于以确定M个第二路径中,存在“优于”第一路径的备选路径,因此能够理解的是,M个第二路径中,沿第二路径行驶时,车辆需要行驶的距离值,要小于沿第一路径行驶时,车辆需要行驶的距离值;和/或沿第二路径行驶时,预计的耗时要短于沿第一路径行驶时,预计的耗时;和/或沿第二路径行驶时,预计的过路费用,要少于沿第一路径行驶时,预计的过路费用。Since it is determined that among the M second paths, there are alternative paths that are "better" than the first path, it can be understood that among the M second paths, the distance value that the vehicle needs to travel when traveling along the second path, It should be less than the distance the vehicle needs to travel when traveling along the first path; and/or the estimated time consumption when traveling along the second path should be shorter than the estimated time consumption when traveling along the first path; and/or along the second path. The estimated toll when traveling along the second path is less than the estimated toll when traveling along the first path.
因此,在计算得到每个第二路径的权重之后,在其中选取权重值最高的一个第二路径,作为最优的目标路径,并将导航应用切换至目标路径对应的目标导航应用,按照目标路径进行导航,因此能够保证车辆总是行驶在更优的导航路径上,能够有效地提高出行效率。Therefore, after calculating the weight of each second path, select the second path with the highest weight value as the optimal target path, and switch the navigation application to the target navigation application corresponding to the target path. According to the target path Navigation can ensure that the vehicle always travels on a better navigation path, which can effectively improve travel efficiency.
在本申请的一些实施例中,确定M个第二路径中的目标路径,包括:In some embodiments of the present application, determining the target path among the M second paths includes:
分别获取M个第二路径对应的M个第二导航应用的更新时间;Respectively obtain the update time of the M second navigation applications corresponding to the M second paths;
将更新时间最新的第二导航应用对应的第二路径确定为目标路径。The second path corresponding to the second navigation application with the latest update time is determined as the target path.
在本申请实施例中,由于存在着施工、事故或重大活动等情况,会导致部分道路“封路”,即处于不可通行的状态。如果导航应用没有及时更新封路信息,则可能将处于不可通行的道路规划到导航路径中,导致车辆浪费额外的路程和时间。In the embodiment of this application, due to construction, accidents or major activities, some roads may be "road closed", that is, in an impassable state. If the navigation application does not update road closure information in a timely manner, impassable roads may be planned into the navigation route, causing the vehicle to waste extra distance and time.
而由于不同的导航应用,其地图数据的更新频率、更新时间点可能存在不同,因此,可根据M个第二路径对应的M个第二导航应用的更新时间,来选择目标导航应用和目标路径。Since different navigation applications may have different update frequencies and update time points of their map data, the target navigation application and the target path can be selected based on the update times of the M second navigation applications corresponding to the M second paths. .
具体地,可以首先判断导航路径中,是否有经过施工路段、事故路段或注册有重大活动等特殊情况的路段,如果有,则分别获取M个第二导航应用的更新时间,由于更新时间越新,则说明该导航应用对施工、事故、重大活动等特殊情况的情报越可靠,因此在M个第二导航应用中,选取更新时间最新的第二导航应用规划的第二路径,作为目标路径,并按照目标路径进行导航,能够有效地避开施工、事故或重大活动所占用的路段,提高导航效率和可靠性。Specifically, it is possible to first determine whether the navigation path passes through any construction sections, accident sections, or sections with special circumstances such as major events registered. If so, the update time of the M second navigation applications is obtained respectively. The newer the update time, the more reliable the information of the navigation application on special circumstances such as construction, accidents, major events, etc. Therefore, among the M second navigation applications, the second path planned by the second navigation application with the latest update time is selected as the target path, and navigation is performed according to the target path. This can effectively avoid sections occupied by construction, accidents or major events, thereby improving navigation efficiency and reliability.
在本申请的一些实施例中,分别通过N个第二导航应用确定N个第二路径之前,还包括:In some embodiments of the present application, before determining the N second paths through the N second navigation applications respectively, the method further includes:
在第一路径满足预设条件的情况下,在后台启动N个第二导航应用;When the first path meets the preset conditions, launch N second navigation applications in the background;
在N个第二导航应用中输入位置信息以及导航目的地信息。The location information and the navigation destination information are input into N second navigation applications.
在本申请实施例中,第一导航应用为前台运行的导航应用,也即主导航应用。用户通过与主导航应用进行交互,从而设置导航目的地信息。具体地,用户可以在第一导航应用的输入框中,进行文字输入,从而在文字框中拼写导航目的地信息。In this embodiment of the present application, the first navigation application is a navigation application running in the foreground, that is, the main navigation application. The user interacts with the main navigation application to set navigation destination information. Specifically, the user can input text in the input box of the first navigation application, thereby spelling out the navigation destination information in the text box.
在导航过程中,如果第一路径满足预设条件,则在后台启动N个第二导航应用。其中,预设条件可以是车辆沿第一路径行驶至目的地,所消耗的时间超过历史平均耗时,或车辆沿第一路径行驶至目的地,途径的信号灯数量超过设定数量,或第一路径途径学校路段、村庄路段或拥堵路段等。During the navigation process, if the first path meets the preset conditions, N second navigation applications are launched in the background. The preset condition may be that the vehicle travels along the first path to the destination and the time consumed exceeds the historical average time, or the vehicle travels along the first path to the destination and the number of traffic lights exceeds a set number, or the first The route passes through school sections, village sections or congested sections, etc.
在第一路径满足预设条件的情况下,在后台自动启动N个第二导航应用。其中,由于第一导航应用在前台运行,可以直接接收到用户的输入指令,具体地,图3示出了根据本申请实施例的导航方法的界面示意图之二,如图3所示,第一导航应用对应的导航界面300中,包括有输入框302,用户在输入框302中输入导航目的地信息的文字。第一导航应用根据用户输入,确定导航目的地信息,并规划路径。When the first path meets the preset conditions, N second navigation applications are automatically launched in the background. Among them, since the first navigation application is running in the foreground, it can directly receive the user's input instructions. Specifically, Figure 3 shows the second interface schematic diagram of the navigation method according to the embodiment of the present application. As shown in Figure 3, the first The navigation interface 300 corresponding to the navigation application includes an input box 302, in which the user inputs the text of the navigation destination information. The first navigation application determines navigation destination information and plans a route based on user input.
由于第二导航应用在后台运行,因此无法接收到用户输入。此时,可在系统中启动图像识别程序,该图像识别程序根据第一导航应用的输入框302中的文字图像,采集对应的图像信息,并进行图像识别,具体为光学字符识别(Optical Character Recognition,OCR)。通过OCR技术,提取出用户在第一导航应用的输入框302中输入的导航目的地信息的文字的文本数据,将这些文本数据作为输入,分别输入到N个第二导航应用中,从而在N个第二导航应用中确定相同的导航目的地信息。Because the second navigation application is running in the background, it cannot receive user input. At this time, an image recognition program can be started in the system. The image recognition program collects corresponding image information based on the text image in the input box 302 of the first navigation application, and performs image recognition, specifically optical character recognition (Optical Character Recognition). , OCR). Through OCR technology, the text data of the text of the navigation destination information input by the user in the input box 302 of the first navigation application is extracted, and these text data are used as input and input into N second navigation applications respectively, so that in N The same navigation destination information is determined in a second navigation application.
本申请通过基于OCR技术的文字识别,从而在用户在第一导航应用中确定导航目的地信息的同时,在N个第二导航应用中同步确定相同的导航目的地信息,无需用户手动在N个第二导航应用中进行输入,节约了用户操作,提高了导航效率。This application uses text recognition based on OCR technology, so that when the user determines the navigation destination information in the first navigation application, the same navigation destination information is simultaneously determined in N second navigation applications, without the need for the user to manually determine the navigation destination information in N second navigation applications. Input is performed in the second navigation application, which saves user operations and improves navigation efficiency.
在本申请的一些实施例中,提供了一种导航装置,图4示出了根据本申请实施例的导航装置的结构框图,如图4所示,导航装置400包括:In some embodiments of the present application, a navigation device is provided. Figure 4 shows a structural block diagram of the navigation device according to the embodiment of the present application. As shown in Figure 4, the navigation device 400 includes:
获取模块402,用于获取电子设备当前的位置信息以及导航目的地信息;The acquisition module 402 is used to acquire the current location information and navigation destination information of the electronic device;
确定模块404,用于根据位置信息和导航目的地信息,通过第一导航应用确定第一路径,并分别通过N个第二导航应用确定N个第二路径,第一导航应用在前台运行,其中N为正整数;在M个第二路径与第一路径不匹配的情况下,确定M个第二路径中的目标路径;其中,M小于或等于N;Determining module 404, configured to determine a first path through a first navigation application based on location information and navigation destination information, and determine N second paths through N second navigation applications respectively, where the first navigation application is running in the foreground, where N is a positive integer; when the M second paths do not match the first paths, determine the target path among the M second paths; where M is less than or equal to N;
导航模块406,用于将目标路径对应的目标导航应用切换至前台运行,并通过目标导航应用按照目标路径进行导航;其中,N个第二导航应用中包括目标导航应用。The navigation module 406 is used to switch the target navigation application corresponding to the target path to the foreground, and perform navigation according to the target path through the target navigation application; wherein the N second navigation applications include the target navigation application.
本申请实施例通过同时运行多个导航应用,通过多个导航应用的不同算法、不同数据来源,来共同规划路径,当N个辅导航中存在优于当前主导航的路径规划时,及时切换导航应用,且该过程无需驾驶员主动甄别路径优劣,能够在保证车辆行驶安全的情况下,自动切换至更优的路径上,能够保证车辆总是行驶在更优的导航路径上,能够有效地提高出行效率。The embodiment of the present application runs multiple navigation applications at the same time, and plans the route jointly through different algorithms and different data sources of the multiple navigation applications. When a route planning that is better than the current main navigation exists among the N auxiliary navigations, the navigation application is switched in time, and the process does not require the driver to actively identify the advantages and disadvantages of the path. It can automatically switch to a better path while ensuring the safety of the vehicle, and can ensure that the vehicle always travels on a better navigation path, which can effectively improve travel efficiency.
在本申请的一些实施例中,获取模块402还用于:In some embodiments of the present application, the acquisition module 402 is also used to:
获取N个第二路径中每个第二路径对应的路径信息以及第一路径的路径信息;其中,路径信息包括以下至少一项:路段信息、距离信息、耗时信息和收费信息。Obtain the path information corresponding to each of the N second paths and the path information of the first path; wherein the path information includes at least one of the following: road segment information, distance information, time-consuming information, and charging information.
在本申请实施例中,根据第二路径的路径信息,以及第一路径的路径信息,判断第一路径和第二路径是否相符合,并根据路径信息,在M个第二路径中确定目标路径。In this embodiment of the present application, based on the path information of the second path and the path information of the first path, it is determined whether the first path and the second path are consistent, and based on the path information, the target path is determined among the M second paths. .
在本申请实施例中,通过比较备选路径与主路径之间路径信息的差,来确定不同导航路径之间的差异,有利于快速的选出“更优”的导航路径。In the embodiment of the present application, the difference between different navigation paths is determined by comparing the difference in path information between the alternative path and the main path, which is conducive to quickly selecting a "better" navigation path.
在本申请的一些实施例中,确定模块404还用于:In some embodiments of the present application, the determining module 404 is also used to:
根据第二路径的路径信息与第一路径的路径信息之间的差异值以及路径信息对应的预设权重比值,分别确定M个第二路径的权重值;Determine the weight values of the M second paths respectively according to the difference value between the path information of the second path and the path information of the first path and the preset weight ratio corresponding to the path information;
在M个第二路径中,将权重值最高的第二路径确定为目标路径。Among the M second paths, the second path with the highest weight value is determined as the target path.
能够理解的,多个第二路径中的目标路径是最优导航路径。It can be understood that the target path among the multiple second paths is the optimal navigation path.
在本申请实施例中,在计算得到每个第二路径的权重之后,在其中选取权重值最高的一个第二路径,作为更优的目标路径,并将导航应用切换至目标路径对应的目标导航应用,按照目标路径进行导航,因此能够保证车辆总是行驶在更优的导航路径上,能够有效地提高出行效率。In the embodiment of the present application, after calculating the weight of each second path, the second path with the highest weight value is selected as the more optimal target path, and the navigation application is switched to the target navigation corresponding to the target path. The application can navigate according to the target path, so it can ensure that the vehicle always travels on a better navigation path, which can effectively improve travel efficiency.
在本申请的一些实施例中,获取模块402还用于:In some embodiments of the present application, the acquisition module 402 is also used to:
分别获取M个第二路径对应的M个第二导航应用的更新时间;Obtain the update times of the M second navigation applications corresponding to the M second paths respectively;
将更新时间最新的第二导航应用对应的第二路径确定为目标路径。The second path corresponding to the second navigation application with the latest update time is determined as the target path.
在本申请实施例中,可以首先判断导航路径中,是否有经过施工路段、事故路段或注册有重大活动等特殊情况的路段,如果有,则分别获取M个第二导航应用的更新时间,由于更新时间越新,则说明该导航应用对施工、事故、重大活动等特殊情况的情报越可靠,因此在M个第二导航应用中,选取更新时间最新的第二导航应用规划的第二路径,作为目标路径,并按照目标路径进行导航,能够有效地避开施工、事故或重大活动所占用的路段,提高导航效率和可靠性。In this embodiment of the present application, it can first be determined whether there is a construction section, an accident section, or a section with special circumstances such as a major event in the navigation path. If so, the update times of the M second navigation applications are obtained respectively. Since The newer the update time, the more reliable the navigation application's information on special situations such as construction, accidents, major events, etc., so among the M second navigation applications, select the second path planned by the second navigation application with the latest update time, As the target path and navigating according to the target path, it can effectively avoid road sections occupied by construction, accidents or major activities, and improve navigation efficiency and reliability.
在本申请的一些实施例中,导航装置400还包括:In some embodiments of the present application, the navigation device 400 further includes:
启动模块408,用于在第一路径满足预设条件的情况下,在后台启动N个第二导航应用;在N个第二导航应用中输入位置信息以及导航目的地信息。The starting module 408 is used to start N second navigation applications in the background when the first path meets the preset conditions; and input location information and navigation destination information into the N second navigation applications.
在本申请实施例中,第一导航应用为前台运行的导航应用,也即主导航应用。用户通过与主导航应用进行交互,从而设置导航目的地信息。具体地,用户可以在第一导航应用的输入框中,进行文字输入,从而在文字框中拼写导航目的地信息。In this embodiment of the present application, the first navigation application is a navigation application running in the foreground, that is, the main navigation application. The user interacts with the main navigation application to set navigation destination information. Specifically, the user can input text in the input box of the first navigation application, thereby spelling out the navigation destination information in the text box.
在本申请实施例中,通过基于OCR技术的文字识别,从而在用户在第一导航应用中确定导航目的地信息的同时,在N个第二导航应用中同步确定相同的导航目的地信息,无需用户手动在N个第二导航应用中进行输入,节约了用户操作,提高了导航效率。In the embodiment of the present application, through text recognition based on OCR technology, when the user determines the navigation destination information in the first navigation application, the same navigation destination information is simultaneously determined in N second navigation applications without the need for The user manually performs input in the N second navigation applications, which saves user operations and improves navigation efficiency.
本申请实施例中的导航装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The navigation device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
本申请实施例中的导航装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The navigation device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的导航装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The navigation device provided by the embodiments of the present application can implement various processes implemented by the above method embodiments. To avoid duplication, they will not be described again here.
可选地,本申请实施例还提供一种电子设备,图5示出了根据本申请实施例的电子设备的结构框图,如图5所示,电子设备500包括处理器502,存储器504,存储在存储器504上并可在处理器502上运行的程序或指令,该程序或指令被处理器502执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, the embodiment of the present application also provides an electronic device. Figure 5 shows a structural block diagram of the electronic device according to the embodiment of the present application. As shown in Figure 5, the electronic device 500 includes a processor 502, a memory 504, and a storage device 500. Programs or instructions on the memory 504 that can be run on the processor 502. When executed by the processor 502, the programs or instructions implement the various processes of the above method embodiments and can achieve the same technical effects. To avoid duplication, they are not included here. Again.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备2000包括但不限于:射频单元2001、网络模块2002、音频输出单元2003、输入单元2004、传感器2005、显示单元2006、用户输入单元2007、接口单元2008、存储器2009、以及处理器2010等部件。The electronic device 2000 includes but is not limited to: radio frequency unit 2001, network module 2002, audio output unit 2003, input unit 2004, sensor 2005, display unit 2006, user input unit 2007, interface unit 2008, memory 2009, processor 2010, etc. part.
本领域技术人员可以理解,电子设备2000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 2000 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 2010 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 6 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
其中,传感器2005用于获取电子设备当前的位置信息以及导航目的地信息;Among them, the sensor 2005 is used to obtain the current location information and navigation destination information of the electronic device;
处理器2010用于根据位置信息和导航目的地信息,通过第一导航应用确定第一路径,并分别通过N个第二导航应用确定N个第二路径,其中,第一导航应用在前台运行,N为正整数;在M个第二路径与第一路径不匹配的情况下,确定M个第二路径中的目标路径,其中,M小于或等于N;将目标路径对应的目标导航应用切换至前台运行,并通过目标导航应用按照目标路径进行导航,其中,N个第二导航应用中包括目标导航应用。The processor 2010 is configured to determine a first path through a first navigation application according to the location information and navigation destination information, and determine N second paths through N second navigation applications respectively, wherein the first navigation application is running in the foreground, N is a positive integer; when the M second paths do not match the first paths, determine the target path among the M second paths, where M is less than or equal to N; switch the target navigation application corresponding to the target path to Run in the foreground, and navigate according to the target path through the target navigation application, wherein the N second navigation applications include the target navigation application.
可选地,处理器2010还用于获取N个第二路径中每个第二路径的路径信息以及第一路径的路径信息;其中,路径信息包括以下至少一项:路段信息、距离信息、耗时信息和收费信息。Optionally, the processor 2010 is also configured to obtain path information of each second path among the N second paths and path information of the first path; wherein the path information includes at least one of the following: road segment information, distance information, consumption time information and charging information.
可选地,处理器2010还用于根据第二路径的路径信息与第一路径的路径信息之间的差异值以及路径信息对应的预设权重比值,分别确定M个第二路径的权重值;在M个第二路径中,将权重值最高的第二路径确定为目标路径。Optionally, the processor 2010 is further configured to determine the weight values of the M second paths respectively according to the difference value between the path information of the second path and the path information of the first path and the preset weight ratio corresponding to the path information; Among the M second paths, the second path with the highest weight value is determined as the target path.
可选地,处理器2010还用于根分别获取M个第二路径对应的M个第二导航应用的更新时间;将更新时间最新的第二导航应用对应的第二路径确定为目标路径导航应用。Optionally, the processor 2010 is further configured to obtain the update times of the M second navigation applications corresponding to the M second paths respectively; and determine the second path corresponding to the second navigation application with the latest update time as the target path navigation application. .
可选地,处理器2010还用于在第一路径满足预设条件的情况下,在后台启动N个第二导航应用;在N个第二导航应用中输入位置信息以及导航目的地信息。Optionally, the processor 2010 is also configured to launch N second navigation applications in the background when the first path satisfies the preset conditions; and input location information and navigation destination information into the N second navigation applications.
本申请实施例通过“同时”运行多个导航应用,通过多个导航应用的不同算法、不同数据来源,来共同规划路径,当N个辅导航中存在优于当前主导航的路径规划时,及时切换导航应用,且该过程无需驾驶员主动接入,能够在保证车辆行驶安全的情况下,自动切换至更优的路径上,能够保证车辆总是行驶在更优的导航路径上,能够有效地提高出行效率。The embodiment of this application runs multiple navigation applications "simultaneously" and uses different algorithms and different data sources of multiple navigation applications to jointly plan paths. When there is a path plan in N tutoring flights that is better than the current main navigation, timely Switching navigation applications does not require the driver to actively access the process. It can automatically switch to a better path while ensuring the safety of the vehicle. It can ensure that the vehicle always drives on a better navigation path and can effectively Improve travel efficiency.
应理解的是,本申请实施例中,输入单元2004可以包括图形处理器(GraphicsProcessing Unit,GPU)20041和麦克风20042,图形处理器20041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。It should be understood that in the embodiment of the present application, the input unit 2004 may include a graphics processor (Graphics Processing Unit, GPU) 20041 and a microphone 20042. The graphics processor 20041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera).
显示单元2006可包括显示面板20061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板20061。用户输入单元2007包括触控面板20071以及其他输入设备20072。触控面板20071,也称为触摸屏。触控面板20071可包括触摸检测装置和触摸控制器两个部分。其他输入设备20072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器2009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器2010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器2010中。The display unit 2006 may include a display panel 20061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 2007 includes a touch panel 20071 and other input devices 20072. The touch panel 20071 is also called a touch screen. The touch panel 20071 may include two parts: a touch detection device and a touch controller. Other input devices 20072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not repeated here. The memory 2009 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 2010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 2010.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above method embodiments is implemented and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the above embodiment. Readable storage media include computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above method embodiments and can achieve the same technical effect. , to avoid repetition, we will not go into details here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110879581.0A CN113639759B (en) | 2021-08-02 | 2021-08-02 | Navigation method and navigation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110879581.0A CN113639759B (en) | 2021-08-02 | 2021-08-02 | Navigation method and navigation device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113639759A CN113639759A (en) | 2021-11-12 |
CN113639759B true CN113639759B (en) | 2024-04-02 |
Family
ID=78419356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110879581.0A Active CN113639759B (en) | 2021-08-02 | 2021-08-02 | Navigation method and navigation device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113639759B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104567907A (en) * | 2015-01-22 | 2015-04-29 | 四川汇源吉迅数码科技有限公司 | Method for real-time path planning based on dynamic feedback |
CN107621953A (en) * | 2017-09-19 | 2018-01-23 | 维沃移动通信有限公司 | Method for displaying application information and mobile terminal |
CN109005297A (en) * | 2018-08-30 | 2018-12-14 | 维沃移动通信有限公司 | Display method and mobile terminal for navigation application |
CN109388471A (en) * | 2018-10-18 | 2019-02-26 | 维沃移动通信有限公司 | A kind of air navigation aid and device |
CN110442437A (en) * | 2019-07-18 | 2019-11-12 | 维沃移动通信有限公司 | Application switching method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10289260B2 (en) * | 2014-08-27 | 2019-05-14 | Honda Motor Co., Ltd. | Systems and techniques for application multi-tasking |
-
2021
- 2021-08-02 CN CN202110879581.0A patent/CN113639759B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104567907A (en) * | 2015-01-22 | 2015-04-29 | 四川汇源吉迅数码科技有限公司 | Method for real-time path planning based on dynamic feedback |
CN107621953A (en) * | 2017-09-19 | 2018-01-23 | 维沃移动通信有限公司 | Method for displaying application information and mobile terminal |
CN109005297A (en) * | 2018-08-30 | 2018-12-14 | 维沃移动通信有限公司 | Display method and mobile terminal for navigation application |
CN109388471A (en) * | 2018-10-18 | 2019-02-26 | 维沃移动通信有限公司 | A kind of air navigation aid and device |
CN110442437A (en) * | 2019-07-18 | 2019-11-12 | 维沃移动通信有限公司 | Application switching method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN113639759A (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9513134B1 (en) | Management of evacuation with mobile objects | |
JP7450958B2 (en) | Method and portable electronic device for calculating carbon credits related to carbon emissions saved | |
EP3009798B1 (en) | Providing alternative road navigation instructions for drivers on unfamiliar roads | |
KR102026913B1 (en) | Method and system for selecting a stop for traffic demand service | |
CN106097748B (en) | The method for pushing and supplying system of traffic information | |
WO2013014612A1 (en) | Multi-modal journey planner | |
CN113008253A (en) | Hybrid vehicle running method, device and storage medium | |
JP5538252B2 (en) | Navigation system, center server, in-vehicle device | |
US10989549B2 (en) | Route recommendation in map service | |
JP2009204481A (en) | Navigation device and program | |
US20150377637A1 (en) | Route calculation system, route calculation method, and route calculation program | |
CN113984075B (en) | Navigation method, device, navigation equipment and computer readable storage medium | |
JP2015021836A (en) | Navigation apparatus and route calculation device | |
CN118089770A (en) | Driving path planning method, device, equipment and storage medium | |
CN107544990A (en) | Information processing method and device | |
CN113706857B (en) | Method, device and equipment for determining road trafficability and storage medium | |
JP2019100763A (en) | Passing-each-other difficulty section avoidance system, server device, information display device, and passing-each-other difficulty section avoidance method | |
RU2706606C1 (en) | Method, system and device for marking events of turning and routing of vehicle | |
CN113639759B (en) | Navigation method and navigation device | |
CN118762547A (en) | Method, device, electronic device and medium for determining real-time running position of a bus | |
CN111951583A (en) | Prompt method and electronic device | |
CN117523838A (en) | Road state determining method, device, vehicle and storage medium | |
WO2022143601A1 (en) | Method, apparatus, and device for use in prompting no-parking road section, medium, and program product | |
CN112735130B (en) | Traffic data processing method and device, electronic equipment and medium | |
CN114582149A (en) | Traffic information pushing method, electronic device 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |