[go: up one dir, main page]

CN109781132B - A kind of empirical route replacement method, device, electronic device and storage medium - Google Patents

A kind of empirical route replacement method, device, electronic device and storage medium Download PDF

Info

Publication number
CN109781132B
CN109781132B CN201910194594.7A CN201910194594A CN109781132B CN 109781132 B CN109781132 B CN 109781132B CN 201910194594 A CN201910194594 A CN 201910194594A CN 109781132 B CN109781132 B CN 109781132B
Authority
CN
China
Prior art keywords
road
replacement
replaced
road segment
segment
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
CN201910194594.7A
Other languages
Chinese (zh)
Other versions
CN109781132A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910194594.7A priority Critical patent/CN109781132B/en
Publication of CN109781132A publication Critical patent/CN109781132A/en
Application granted granted Critical
Publication of CN109781132B publication Critical patent/CN109781132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Navigation (AREA)

Abstract

本发明公开了一种经验路线替换方法、装置、电子设备及存储介质。所述方法包括:获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间;将所述规划路线中所述替换区间的路段替换为所述替换路段;其中,所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同。通过上述技术方案,实现了对更多大众经验路线的挖掘,且替换路线与待替换路线之间无需首尾严格重合,提升了导航路线规划的效果及出行效率。

Figure 201910194594

The invention discloses an empirical route replacement method, device, electronic device and storage medium. The method includes: acquiring a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the road segment to be replaced; The starting point and ending point of the replacement section are determined; the section of the replacement section in the planned route is replaced with the replacement section; wherein the starting point of the to-be-replaced section is different from the starting point of the replacement section, and/or the The end point of the road section to be replaced is different from the end point of the replacement road section. Through the above technical solution, the excavation of more public experience routes is realized, and the replacement route and the to-be-replaced route do not need to be strictly overlapped, which improves the effect of navigation route planning and travel efficiency.

Figure 201910194594

Description

一种经验路线替换方法、装置、电子设备及存储介质A kind of empirical route replacement method, device, electronic device and storage medium

技术领域technical field

本发明实施例涉及导航路径规划技术,尤其涉及一种经验路线替换方法、装置、电子设备及存储介质。Embodiments of the present invention relate to a navigation path planning technology, and in particular, to an empirical route replacement method, apparatus, electronic device, and storage medium.

背景技术Background technique

目前,导航终端多采用最短路径规划算法来实现导航路线的规划,即将距离或者时间作为有向带权图的权值,采用最短路径算法,如迪杰斯特拉算法(Dijkstra'sAlgorithm)或者Contraction hierarchies,进行最短路线的求解,寻找出一条或前几条权值最小的路线,从而为用户规划出一条或几条合理的路线。At present, the navigation terminal mostly adopts the shortest path planning algorithm to realize the planning of the navigation route, that is, the distance or time is used as the weight of the directed weighted graph, and the shortest path algorithm is used, such as Dijkstra's Algorithm or Contraction Hierarchies, solve the shortest route, find one or the first few routes with the smallest weight, so as to plan one or several reasonable routes for the user.

现有路线规划方法存在的最大问题在于,道路与道路之间是孤立的,例如从A路走向B路或者C路完全是依靠最优权值的选择,无法引入经验路线的概念,即经验路线无法通过权值体系来表达。然而,现实生活中,有很多需要人工经验介入的路线规划需求,例如假期出行高峰期,当地有经验的司机或是交警往往能够预先知道哪条路会成为交通的瓶颈,同时也知道最优的绕行路线是什么,如果路线规划算法能够将这种人的经验表达为路线规划的结果,那么这对出行效率的提升有着极大的帮助。针对上述问题,提出了一种传统的经验路线替换算法,其通过挖掘或者人为指定的方式,将需要替换的路线提取为如下所示的路线集的模式:The biggest problem with existing route planning methods is that roads are isolated from each other. For example, going from road A to road B or road C depends entirely on the selection of optimal weights, and the concept of empirical route cannot be introduced, that is, empirical route. It cannot be expressed through a weight system. However, in real life, there are many route planning needs that require human experience intervention. For example, during the peak holiday season, local experienced drivers or traffic police can often know in advance which road will become a traffic bottleneck, and at the same time know the optimal route. What is the detour route? If the route planning algorithm can express this kind of human experience as the result of route planning, then this will be of great help to the improvement of travel efficiency. Aiming at the above problems, a traditional empirical route replacement algorithm is proposed, which extracts the routes that need to be replaced into the pattern of the following route set by mining or artificially specifying:

Start->A->B->->J->K->L->M->N->O->EndStart->A->B->->J->K->L->M->N->O->End

Start->C->D->E->F->G->H->EndStart->C->D->E->F->G->H->End

通过将待替换路线的起点(Start)、终点(End)分别与替换路线的起点(Start)、终点(End)进行严格的匹配,达到替换的目的,最终生成规划路线。By strictly matching the start point (Start) and end point (End) of the route to be replaced with the start point (Start) and end point (End) of the replacement route, the purpose of replacement is achieved, and the planned route is finally generated.

可见,上述传统的经验路线替换算法的替换方式过于严格,替换路线的起点、终点需要分别与待替换路线的起点、终点完全一致才能进行替换,如此导致无法挖掘更多的可替换所述待替换路线的大众经验路线。It can be seen that the replacement method of the above-mentioned traditional empirical route replacement algorithm is too strict, and the starting point and end point of the replacement route need to be completely consistent with the starting point and end point of the route to be replaced before the replacement can be performed, which leads to the inability to excavate more alternatives for the to-be-replaced route. The popular experience route of the route.

发明内容SUMMARY OF THE INVENTION

本发明提供一种经验路线替换方法、装置、电子设备及存储介质,实现了对更多大众经验路线的挖掘,且替换路线与待替换路线之间无需首尾严格重合,提升了导航路线规划的效果及出行效率。The invention provides an experience route replacement method, device, electronic device and storage medium, which realizes the mining of more public experience routes, and the replacement route and the route to be replaced do not need to be strictly overlapped, thereby improving the effect of navigation route planning and travel efficiency.

第一方面,本发明实施例提供了一种经验路线替换方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for replacing an empirical route, the method comprising:

获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;acquiring a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the to-be-replaced road segment;

基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间;Determine the replacement interval based on the planned route, the starting point and the ending point of the road section to be replaced, and the starting point and the ending point of the replacement road section;

将所述规划路线中所述替换区间的路段替换为所述替换路段;replacing the road segment of the replacement section in the planned route with the replacement road segment;

其中,所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同。Wherein, the starting point of the road section to be replaced is different from the starting point of the replacing road section, and/or the end point of the road section to be replaced is different from the end point of the replacing road section.

第二方面,本发明实施例还提供了一种经验路线替换装置,该装置包括:In a second aspect, an embodiment of the present invention also provides a device for replacing an empirical route, the device comprising:

获取模块,用于获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;an obtaining module, configured to obtain a planned route, a road section to be replaced in the planned route, and a replacement road section corresponding to the to-be-replaced road section;

确定模块,用于基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间;a determining module, configured to determine a replacement interval based on the planned route, the starting point and the ending point of the road section to be replaced, and the starting point and the ending point of the replaced road section;

替换模块,用于将所述规划路线中所述替换区间的路段替换为所述替换路段;a replacement module, configured to replace the road segment of the replacement interval in the planned route with the replacement road segment;

其中,所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同。Wherein, the starting point of the road section to be replaced is different from the starting point of the replacing road section, and/or the end point of the road section to be replaced is different from the end point of the replacing road section.

第三方面,本发明实施例还提供了一种电子设备,所述电子设备包括:In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的经验路线替换方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the empirical route replacement method of any one of claims 1-7.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-7中任一所述的经验路线替换方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the empirical route replacement method according to any one of claims 1-7 .

本发明通过获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段,基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间,将所述规划路线中所述替换区间的路段替换为所述替换路段;其中,所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同的技术手段,使得替换路线与待替换路线之间无需首尾严格重合,实现了对更多大众经验路线的挖掘,提高了对待替换路线的替换效率,提升了导航路线规划的效果及出行效率。The present invention obtains the planned route, the road segment to be replaced in the planned route, and the replacement road segment corresponding to the to-be-replaced road segment, based on the planned route, the starting point and the end point of the to-be-replaced road segment, and the starting point of the replaced road segment , the end point determines the replacement section, and replaces the section of the replacement section in the planned route with the replacement section; wherein, the starting point of the section to be replaced is different from the starting point of the replacement section, and/or the section to be replaced is The technical means that the end point of the replacement road section and the end point of the replacement road section are different, so that the replacement route and the to-be-replaced route do not need to be strictly overlapped, realizing the excavation of more public experience routes, and improving the replacement efficiency of the replacement route. Improve the effect of navigation route planning and travel efficiency.

附图说明Description of drawings

图1是本发明实施例一中的一种经验路线替换方法的流程示意图;1 is a schematic flowchart of a method for replacing an empirical route in Embodiment 1 of the present invention;

图2是本发明实施例一中的一种经验路线替换示意图;2 is a schematic diagram of an empirical route replacement in Embodiment 1 of the present invention;

图3是本发明实施例二中的一种经验路线替换方法的流程示意图;3 is a schematic flowchart of an empirical route replacement method in Embodiment 2 of the present invention;

图4是本发明实施例二中的一种进入道路集合与脱出道路集合的示意图;4 is a schematic diagram of an entry road set and an exit road set in Embodiment 2 of the present invention;

图5是本发明实施例二中的一种路线替换示意图;Fig. 5 is a kind of route replacement schematic diagram in the second embodiment of the present invention;

图6是本发明实施例三中的一种经验路线替换方法的流程示意图;6 is a schematic flowchart of an empirical route replacement method in Embodiment 3 of the present invention;

图7是本发明实施例三中的一种经验路线替换示意图;7 is a schematic diagram of an empirical route replacement in Embodiment 3 of the present invention;

图8是本发明实施例四中的一种经验路线替换方法的流程示意图;8 is a schematic flowchart of a method for replacing an empirical route in Embodiment 4 of the present invention;

图9是本发明实施例四中的一种经验路线替换示意图;Fig. 9 is a kind of experience route replacement schematic diagram in Embodiment 4 of the present invention;

图10是本发明实施例五中的一种经验路线替换装置的结构示意图;10 is a schematic structural diagram of an empirical route replacement device in Embodiment 5 of the present invention;

图11是本发明实施例六中的一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device in Embodiment 6 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

实施例一Example 1

图1为本发明实施例一提供的一种经验路线替换方法的流程示意图,本实施例可适用于对规划路线中不能顺利通行的路段进行替换的情况,该方法可以由经验路线替换装置来执行,其中该装置可由软件和/或硬件实现,一般可以集成在与导航客户端相对应的导航服务器中。具体参见图1所示,所述经验路线替换方法包括如下步骤:FIG. 1 is a schematic flowchart of a method for replacing an empirical route provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation of replacing a road section that cannot be passed smoothly in a planned route, and the method can be performed by an empirical route replacement device. , wherein the device can be implemented by software and/or hardware, and can generally be integrated in a navigation server corresponding to a navigation client. 1 , the empirical route replacement method includes the following steps:

步骤110、获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段。Step 110: Obtain a planned route, a road section to be replaced in the planned route, and a replacement road section corresponding to the to-be-replaced road section.

其中,所述规划路线具体指导航系统根据用户的出行计划为用户推荐的导航路径。所述规划路线中的待替换路段指无法顺利通行的路段,包括经常发生交通堵塞的路段,还可以包括由于道路施工临时封闭的路段,或者由于政治活动被交通管制的路段等。The planned route specifically refers to a navigation route recommended by the navigation system for the user according to the user's travel plan. The road section to be replaced in the planned route refers to the road section that cannot be passed smoothly, including the road section where traffic jams often occur, and may also include the road section temporarily closed due to road construction, or the road section under traffic control due to political activities, etc.

示例性的,所述获取规划路线,包括:Exemplarily, the obtaining the planned route includes:

根据用户输入的起终点位置信息以及设定路径规划算法,生成规划路线;Generate a planned route according to the starting and ending location information input by the user and the set route planning algorithm;

其中,用户的起点位置信息可以直接通过GPS定位获得,也可以通过用户的输入操作获得;用户的终点位置信息可以通过用户的输入操作获得。在此,用户的输入既可以是用户的手动输入,也可以是用户的历史输入,即如果用户需要输入的起点位置信息和/或终点位置信息为用户之前使用过的位置信息,则用户可以在交互界面直接点击对应的起点位置和/或终点位置以完成起终点位置信息的输入。当用户需要进行导航的起点位置为用户的当前位置时,优选的,可以通过GPS定位获取用户的当前位置信息作为算法规划路线的起点位置信息,以减少用户所需的操作步骤,提高所生成规划路线的准确性,提升用户体验。所述设定路径规划算法可以采用最短路径算法(如迪杰斯特拉算法)生成所述规划路线,其中,迪杰斯特拉(Dijkstra)算法又称为单源最短路径算法,是从一个顶点到其余各顶点的最短路径算法,解决的是有向图中最短路径问题,其主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止。Wherein, the user's starting point position information can be obtained directly through GPS positioning, or can be obtained through a user's input operation; the user's end position information can be obtained through a user's input operation. Here, the user's input can be either the user's manual input or the user's historical input, that is, if the starting point location information and/or the ending location information that the user needs to input is the location information that the user has used before, the user can The interactive interface directly clicks on the corresponding start position and/or end position to complete the input of the start and end position information. When the starting point that the user needs to navigate is the current position of the user, preferably, the current position information of the user can be obtained through GPS positioning as the starting point position information of the algorithm planning route, so as to reduce the operation steps required by the user and improve the generated planning. The accuracy of the route improves the user experience. The set path planning algorithm can use the shortest path algorithm (such as Dijkstra algorithm) to generate the planned route, wherein the Dijkstra algorithm, also known as the single-source shortest path algorithm, is derived from a The shortest path algorithm from vertices to other vertices solves the shortest path problem in directed graphs.

示例性的,获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段,包括:Exemplarily, acquiring the road section to be replaced in the planned route and the replacement road section corresponding to the to-be-replaced road section includes:

获取预先设置的至少一组经验可替换路段对;Obtaining at least a set of experience-replaceable road segment pairs set in advance;

对于各所述经验可替换路段对,若当前经验可替换路段对中包含的一个路段在所述规划路线上,则将该路段确定为待替换路段,将当前经验可替换路段对中的另一路段作为替换路段。For each of the experience replaceable road segment pairs, if one road segment included in the current experience replaceable road segment pair is on the planned route, the road segment is determined as the road segment to be replaced, and the other road segment in the current experience replaceable road segment pair is determined as the road segment to be replaced. segment as a replacement segment.

其中,每组经验可替换路段对包括基于经验总结得到的经常发生交通堵塞的路段以及可替换该路段,且不经常发生交通堵塞的路段。由于现有的导航路径规划算法通常采用最短路径算法(如迪杰斯特拉算法)生成所述规划路线,因此所述规划路线中往往会存在经常发生交通堵塞的路段,通过将各所述经验可替换路段对中的每个路段与所述规划路线中的路段进行匹配,若当前经验可替换路段对中包含的一个路段在所述规划路线上,则将该路段确定为所述待替换路段,将当前经验可替换路段对中的另一路段作为所述替换路段。优选的,为了降低获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段的运算量,可将预先设置的经验可替换路段对中基于经验总结得到的经常发生交通堵塞的路段定义为第一路段,可替换该第一路段,且不经常发生交通堵塞的路段定义为第二路段,在获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段时,只将各组经验可替换路段对中的第一路段与所述规划路线中的路段进行匹配即可。Wherein, each set of experience-replaceable road segment pairs includes a road segment with frequent traffic jams obtained based on experience and a road segment that can be replaced without frequent traffic jams. Since the existing navigation path planning algorithms usually use the shortest path algorithm (such as Dijkstra's algorithm) to generate the planned route, there are often road sections where traffic jams often occur in the planned route. Each road segment in the alternative road segment pair is matched with the road segment in the planned route, and if a road segment included in the current experience replaceable road segment pair is on the planned route, the road segment is determined as the to-be-replaced road segment , taking the other road segment in the current experience replaceable road segment pair as the replacement road segment. Preferably, in order to reduce the calculation amount of obtaining the road sections to be replaced in the planned route and the replacement road sections corresponding to the to-be-replaced road sections, the preset experience-replaceable road sections may be centered on the frequently-occurring traffic jams based on experience summarization. The road segment is defined as the first road segment, the first road segment can be replaced, and the road segment where traffic congestion does not occur frequently is defined as the second road segment, when acquiring the road segment to be replaced in the planned route and the replacement road segment corresponding to the road segment to be replaced , only the first road segment in each group of experience-replaceable road segment pairs is matched with the road segment in the planned route.

需要说明的是,所述预先设置的经验可替换路段对可通过人为指定或者大数据挖掘的方式获得,本实施例不对其进行限定。It should be noted that, the preset experience-replaceable road segment pair may be obtained through manual designation or big data mining, which is not limited in this embodiment.

步骤120、基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间。Step 120: Determine a replacement interval based on the planned route, the starting point and the ending point of the road section to be replaced, and the starting point and the ending point of the replacement road section.

其中,为了实现对更多大众经验路线的挖掘,使更多大众经验路线被应用到导航路径规划中,以提升导航路线规划的效果及用户的出行效率,本发明实施例不限制所述待替换路段的起点与所述替换路段的起点,以及所述待替换路段的终点与所述替换路段的终点严格一致;即所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同,其共包括三种可能情况,分别为:所述待替换路段的起点与所述替换路段的起点不同,并且所述待替换路段的终点与所述替换路段的终点不同;或者,所述待替换路段的起点与所述替换路段的起点不同,并且所述待替换路段的终点与所述替换路段的终点相同;或者,所述待替换路段的起点与所述替换路段的起点相同,并且所述待替换路段的终点与所述替换路段的终点不同。Among them, in order to realize the mining of more public experience routes, so that more public experience routes are applied to the navigation route planning, so as to improve the effect of navigation route planning and the travel efficiency of users, the embodiment of the present invention does not limit the to-be-replaced The starting point of the road segment is exactly the same as the starting point of the replacement road segment, and the end point of the road segment to be replaced is strictly consistent with the end point of the replacement road segment; that is, the starting point of the road segment to be replaced is different from the starting point of the replacement road segment, and/or, The end point of the road section to be replaced is different from the end point of the road section to be replaced, which includes three possible situations, namely: the start point of the road section to be replaced is different from the start point of the road section to be replaced, and the The end point is different from the end point of the replacement road segment; or, the start point of the to-be-replaced road segment is different from the start point of the replacement road segment, and the end point of the to-be-replaced road segment is the same as the end point of the replacement road segment; The start point of the replacement road segment is the same as the start point of the replacement road segment, and the end point of the to-be-replaced road segment is different from the end point of the replacement road segment.

示例性的,可参见图2所示的一种经验路线替换示意图,由图2可见,若不限制所述待替换路段的起点与所述替换路段的起点,以及所述待替换路段的终点与所述替换路段的终点严格一致,有多条替换路段(c->d->e->f->F->G->H->X或者C->D->E->F->G->H->X)可用于替换待替换路段1(Start->A->B->J->K->L->M->N->O->End),实际的交通道路网也遵循上述规律。进一步的,可从所述多条替换路段中挑选一条最优的路段作为待替换路段1的替换路段,例如若基于经验总结得到替换路段2平时的路况最好,用时最短,故可将替换路段2作为待替换路段1的替换路段,则与图2对应的经验可替换路段对为:Exemplarily, referring to a schematic diagram of an empirical route replacement shown in FIG. 2, it can be seen from FIG. 2 that if the starting point of the road section to be replaced and the starting point of the replacement road section are not limited, and the end point of the to-be-replaced road section and the The end points of the replacement sections are strictly the same, and there are multiple replacement sections (c->d->e->f->F->G->H->X or C->D->E->F-> G->H->X) can be used to replace section 1 to be replaced (Start->A->B->J->K->L->M->N->O->End), the actual traffic road The net also follows the above rules. Further, an optimal road segment can be selected from the plurality of replacement road segments as the replacement road segment of the road segment 1 to be replaced. For example, if the replacement road segment 2 has the best usual road conditions and the shortest time based on experience, the replacement road segment can be replaced. 2 is used as the replacement road segment of the road segment 1 to be replaced, then the empirically replaceable road segment pair corresponding to Fig. 2 is:

待替换路段1=Start->A->B->J->K->L->M->N->O->EndSection 1 to be replaced = Start->A->B->J->K->L->M->N->O->End

替换路段2=C->D->E->F->G->H->XReplacement section 2=C->D->E->F->G->H->X

假设规划路线为:Suppose the planned route is:

I->Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q,参考图2所示,基于所述规划路线、待替换路段1的起点、终点,以及替换路段2的起点、终点确定对应的替换区间为[Y,X]。I->Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q, refer to Figure 2 As shown, the corresponding replacement interval is determined as [Y, X] based on the planned route, the starting point and the ending point of the road segment 1 to be replaced, and the starting point and the ending point of the replacement road segment 2 .

步骤130、将所述规划路线中所述替换区间的路段替换为所述替换路段。Step 130: Replace the road section of the replacement section in the planned route with the replacement road section.

继续以图2为例,假设所述规划路线为:Continuing to take Figure 2 as an example, it is assumed that the planned route is:

I->Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->QI->Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q

待替换路段1=Start->A->B->J->K->L->M->N->O->EndSection 1 to be replaced = Start->A->B->J->K->L->M->N->O->End

替换路段2=C->D->E->F->G->H->XReplacement section 2=C->D->E->F->G->H->X

对应的替换区间为[Y,X],则替换后的规划路线为:The corresponding replacement interval is [Y, X], then the planned route after replacement is:

I->Z->C->D->E->F->G->H->X->QI->Z->C->D->E->F->G->H->X->Q

本实施例的技术方案,通过将人的经验路线预先设置为经验可替换路段对,在进行导航路径规划时,基于所述经验可替换路段对获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段,且替换路线与待替换路线之间无需首尾严格重合,实现了对更多大众经验路线的挖掘,提高了对待替换路线的替换效率,提升了导航路线规划的效果及出行效率。In the technical solution of this embodiment, a person's experience route is preset as an experience replaceable road segment pair, and when planning a navigation path, the to-be-replaced road segment in the planned route and the The replacement road section corresponding to the road section to be replaced, and the replacement route and the route to be replaced do not need to strictly overlap the beginning and the end, which realizes the mining of more public experience routes, improves the replacement efficiency of the replacement route, and improves the effect of navigation route planning. travel efficiency.

实施例二Embodiment 2

图3为本发明实施例二提供的一种经验路线替换方法的流程示意图。在上述实施例的基础上,本实施例对步骤120“基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间”进行了优化,给出了若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点不同时,所述替换区间的具体确定方式,具体参见图3所示,所述经验路线替换方法包括如下步骤:FIG. 3 is a schematic flowchart of a method for replacing an empirical route according to Embodiment 2 of the present invention. On the basis of the above-mentioned embodiment, this embodiment optimizes step 120 "determining a replacement interval based on the planned route, the starting point and the ending point of the road section to be replaced, and the starting point and ending point of the replaced road section", and gives If the starting point of the road section to be replaced is different from the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section, the specific determination method of the replacement section is as shown in FIG. 3 . As shown, the empirical route replacement method includes the following steps:

步骤310、获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段。Step 310: Acquire a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the road segment to be replaced.

步骤320、确定所述替换路段的起点的进入道路集合以及所述替换路段的终点的脱出道路集合。Step 320: Determine the set of incoming roads at the start point of the replacement road segment and the set of exit roads at the end point of the replacement road segment.

其中,所述替换路段的起点的进入道路集合指通往所述替换路段起点的所有道路,所述替换路段的终点的脱出道路集合指所述替换路段的终点所通往的所有道路。具体可参见图4所示的一种进入道路集合与脱出道路集合的示意图,如图4所示,假设替换路段的起点为A,终点为B,则起点A的进入道路集合,即通往起点A的所有道路为{a、b、c},终点B的脱出道路了集合,即终点B所通往的所有道路为{d、e、f}。Wherein, the set of incoming roads at the start point of the replacement road segment refers to all roads leading to the start point of the replacement road segment, and the set of exit roads at the end point of the replacement road segment refers to all roads leading to the end point of the replacement road segment. For details, please refer to a schematic diagram of a set of entering roads and a set of exiting roads shown in FIG. 4 . As shown in FIG. 4 , assuming that the starting point of the replacement road section is A and the ending point is B, the set of entering roads from the starting point A, that is, the starting point leading to the starting point. All the roads of A are {a, b, c}, and the escape roads of the destination B are set, that is, all the roads to the destination B are {d, e, f}.

步骤330、在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路。Step 330: Perform a reverse search on the planned route along the entry direction of the starting point of the road section to be replaced, and when a road belonging to the entry road set is searched, determine the road as the replacement starting point road.

其中,在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索的实质为,在所述规划路线上搜索通往所述待替换路段起点的道路,若搜索到的道路中存在属于所述进入道路集合的道路,则将该属于所述进入道路集合的道路确定为替换起点道路。以图2所示的一种经验路线替换示意图为例,说明上述替换起点道路的确定过程:假设图2中的待替换路段1=Start->A->B->J->K->L->M->N->O->End,替换路段2=C->D->E->F->G->H->X,规划路线为:I->Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q,则替换路段2的起点C的进入道路集合以及终点X的脱出道路集合分别为{Z}和{Q},在所述规划路线上沿待替换路段2的起点Start的进入方向进行逆序搜索,首先得到的搜索结果为道路Y,若继续进行搜索,则得到的搜索结果为道路Z,若再继续进行搜索,得到的搜索结果为道路I;在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路,逆序搜索结束,在本实施例中,当搜索到道路Z时,经判断道路Z属于所述进入道路集合({Z})的道路,故将道路Z确定为替换起点道路,逆序搜索结束。The essence of performing a reverse order search on the planned route along the entry direction of the starting point of the road section to be replaced is to search for the road leading to the starting point of the road section to be replaced on the planned route. If there is a road belonging to the set of incoming roads, the road belonging to the set of incoming roads is determined as a replacement starting point road. Taking a schematic diagram of an empirical route replacement shown in FIG. 2 as an example, the above-mentioned determination process of the replacement starting point road is described: Assume that the road section to be replaced in FIG. 2 1=Start->A->B->J->K->L ->M->N->O->End, replace section 2=C->D->E->F->G->H->X, the planned route is: I->Z->Y-> Start->A->B->J->K->L->M->N->O->End->P->X->Q, then replace the entry road set of the starting point C of road segment 2 and The set of exit roads at the end point X are respectively {Z} and {Q}. On the planned route, a reverse order search is performed along the entry direction of the starting point Start of the road section 2 to be replaced, and the search result obtained first is road Y. If the search continues , then the obtained search result is road Z, and if the search is continued, the obtained search result is road I; when searching for the road belonging to the described entry road set, the road is determined as the replacement starting point road, and the reverse order search ends, In this embodiment, when the road Z is searched, it is determined that the road Z belongs to the road of the entry road set ({Z}), so the road Z is determined as the replacement starting point road, and the reverse order search ends.

步骤340、在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路。Step 340: Perform sequential search along the exit direction of the end point of the road section to be replaced on the planned route, and when a road belonging to the escape road set is searched, determine the road as the replacement destination road.

其中,在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索的实质为,在所述规划路线上依次搜索所述待替换路段的终点所通往的所有道路,继续以上述步骤330中的举例为例,在所述规划路线(I->Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q)上沿所述待替换路段1的终点End的脱出方向进行顺序搜索,得到的搜索结果依次为道路P、道路X和道路Q,其中,当搜索到道路Q时,经判断道路Q属于所述脱出道路集合({Q})的道路,因此将道路Q确定为替换终点道路,顺序搜索结束。Wherein, the essence of performing sequential search along the exit direction of the end point of the road section to be replaced on the planned route is to sequentially search all roads leading to the end point of the road section to be replaced on the planned route, and continue with Taking the example in the above step 330 as an example, in the planned route (I->Z->Y->Start->A->B->J->K->L->M->N->O- >End->P->X->Q) along the exit direction of the end point End of the road section 1 to be replaced, and the obtained search results are road P, road X and road Q in turn. In the case of road Q, it is determined that the road Q belongs to the road of the escape road set ({Q}), so the road Q is determined as the replacement destination road, and the sequential search ends.

步骤350、将所述替换起点道路与所述替换终点道路分别确定为所述替换区间的起点与终点。Step 350: Determine the replacement start point road and the replacement end road as the start point and the end point of the replacement interval, respectively.

继续以上述步骤340中的举例为例,所述替换区间的起点与终点分别为道路Z和道路Q。Continuing to take the example in the above step 340 as an example, the starting point and the ending point of the replacement interval are the road Z and the road Q, respectively.

步骤360、将所述规划路线中所述替换起点道路与所述替换终点道路之间的路段替换为所述替换路段。Step 360: Replace the road segment between the replacement starting point road and the replacement destination road in the planned route with the replacement road segment.

示例性的,参见图5所示的一种路线替换示意图,其中,路段1为待替换路段,路段2为替换路段,替换路段的起点A的进入道路集合为{a、b、c},替换路段的终点B的脱出道路集合为{d、e、f}。在规划路线上沿待替换路段的起点的进入方向进行逆序搜索,搜索到的属于所述进入道路集合的道路为道路{a},因此道路a为替换起点道路。在规划路线上沿待替换路段的终点的脱出方向进行顺序搜索,搜索到的属于所述脱出道路集合的道路为道路e,因此道路e为替换终点道路,故将所述规划路线中道路a与道路e之间的路段替换为替换路段2,生成最终的路线。Exemplarily, refer to a schematic diagram of route replacement shown in FIG. 5 , wherein road segment 1 is the road segment to be replaced, road segment 2 is the replacement road segment, and the set of access roads at the starting point A of the replacement road segment is {a, b, c}, and the replacement The set of exit roads at the end point B of the road segment is {d, e, f}. A reverse order search is performed on the planned route along the entry direction of the starting point of the road segment to be replaced, and the searched road belonging to the entry road set is road {a}, so road a is the replacement starting point road. On the planned route, a sequential search is performed along the escape direction of the end point of the road section to be replaced, and the searched road belonging to the escape road set is road e, so road e is the replacement end road, so road a and road a in the planned route and The segment between road e is replaced with the replacement segment 2 to generate the final route.

本实施例的技术方案,若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点不同,则首先确定所述替换路段的起点的进入道路集合以及所述替换路段的终点的脱出道路集合;然后在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路,并最终将所述规划路线中所述替换起点道路与所述替换终点道路之间的路段替换为所述替换路段,实现了对更多大众经验路线的挖掘,提升了导航路线规划的效果及出行效率。In the technical solution of this embodiment, if the starting point of the road section to be replaced is different from the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section, the starting point of the replacement road section is first determined The set of entry roads and the set of exit roads at the end of the replacement road section; then the reverse order search is performed on the planned route along the entry direction of the starting point of the to-be-replaced road section, when a road belonging to the set of entry roads is searched , determine the road as the replacement starting point road; carry out sequential search along the exit direction of the end point of the road section to be replaced on the planned route, when the road belonging to the set of escaped roads is searched, determine the road as the replacement road end road, and finally replace the road section between the replacement starting point road and the replacement destination road in the planned route with the replacement road section, realizing the excavation of more public experience routes and improving the navigation route planning. effectiveness and travel efficiency.

实施例三Embodiment 3

图6为本发明实施例三提供的一种经验路线替换方法的流程示意图。在上述实施例的基础上,本实施例对步骤120“基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间”继续进行了优化,给出了若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点相同时,所述替换区间的具体确定方式,具体参见图6所示,所述经验路线替换方法包括如下步骤:FIG. 6 is a schematic flowchart of a method for replacing an empirical route according to Embodiment 3 of the present invention. On the basis of the above-mentioned embodiment, this embodiment continues to optimize step 120 of “determining a replacement interval based on the planned route, the starting point and ending point of the road section to be replaced, and the starting point and ending point of the replaced road section”, giving If the starting point of the road section to be replaced is different from the starting point of the replacement road section, and the end point of the road section to be replaced is the same as the end point of the replacement road section, the specific determination method of the replacement interval is shown in Fig. 6 for details. As shown, the empirical route replacement method includes the following steps:

步骤610、获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段。Step 610: Acquire a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the road segment to be replaced.

步骤620、确定所述替换路段的起点的进入道路集合。Step 620: Determine the access road set of the starting point of the replacement road segment.

步骤630、在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路。Step 630: Search in reverse order along the entry direction of the starting point of the road section to be replaced on the planned route, and when a road belonging to the entry road set is searched, determine the road as the replacement starting point road.

步骤640、将所述替换起点道路在所述规划路线上的下一道路与所述待替换路段的终点分别确定为所述替换区间的起点与终点。Step 640: Determine the next road of the replacement starting point road on the planned route and the end point of the road section to be replaced as the start point and the end point of the replacement interval, respectively.

其中,所述替换起点道路在所述规划路线上的下一道路指所述替换起点道路通往的、在所述规划路线上的、且与所述替换起点道路最近邻的道路。具体的,参见图7所示的一种经验路线替换示意图,其中,待替换路段为:Wherein, the next road of the replacement starting point road on the planned route refers to the road that is on the planned route, and is the nearest neighbor to the replacement starting point road, which the replacement starting point road leads to. Specifically, refer to a schematic diagram of an empirical route replacement shown in FIG. 7 , wherein the road sections to be replaced are:

Start->A->B->J->K->L->M->N->O->EndStart->A->B->J->K->L->M->N->O->End

替换路段为:C->D->E->F->G->H->End,The replacement section is: C->D->E->F->G->H->End,

规划路线为:Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->QThe planned route is: Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q

则替换路段(C->D->E->F->G->H->End)的起点C的进入道路集合为{Z},在所述规划路线(Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q)上沿所述待替换路段(Start->A->B->J->K->L->M->N->O->End)的起点Start的进入方向进行逆序搜索,得到的搜索结果为{Z、Y},其中道路Z属于所述进入道路集合的道路,因此将道路Z确定为替换起点道路,替换起点道路Z在所述规划路线上的下一道路为道路Y,因此,将道路Y与所述待替换路段的终点End分别确定为所述替换区间的起点与终点,即对应的替换区间为[Y,End]。Then the set of access roads at the starting point C of the replacement road segment (C->D->E->F->G->H->End) is {Z}, and in the planned route (Z->Y->Start- >A->B->J->K->L->M->N->O->End->P->X->Q) along the section to be replaced (Start->A-> B->J->K->L->M->N->O->End) and the entry direction of the starting point Start) are searched in reverse order, and the search results obtained are {Z, Y}, where road Z belongs to the Enter the road of the road set, so road Z is determined as the replacement starting point road, and the next road on the planned route of the replacement starting point road Z is road Y, therefore, road Y and the end point End of the to-be-replaced road section are respectively determined are the start and end points of the replacement interval, that is, the corresponding replacement interval is [Y, End].

步骤650、将所述规划路线中从所述替换起点道路的下一道路到所述待替换路段的终点的路段替换为所述替换路段。Step 650: Replace the road segment from the next road of the replacement starting point road to the end point of the to-be-replaced road segment in the planned route with the replacement road segment.

继续使用上述步骤640中的举例,替换后的规划路线为:Continuing to use the example in step 640 above, the replaced planned route is:

Z->C->D->E->F->G->H->End->P->X->QZ->C->D->E->F->G->H->End->P->X->Q

本实施例的技术方案,若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点相同,则仅确定所述替换路段的起点的进入道路集合;然后在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路,并最终将所述规划路线中从所述替换起点道路的下一道路到所述待替换路段的终点的路段替换为所述替换路段,实现了对更多大众经验路线的挖掘,提升了导航路线规划的效果及出行效率。In the technical solution of this embodiment, if the starting point of the road section to be replaced is different from the starting point of the replacement road section, and the end point of the road section to be replaced is the same as the end point of the replacement road section, only the starting point of the replacement road section is determined. the entry road set; then perform reverse order search along the entry direction of the starting point of the road section to be replaced on the planned route, when a road belonging to the entry road set is searched, determine the road as the replacement starting point road, and Finally, the road section from the next road of the replacement starting point road to the end point of the to-be-replaced road section in the planned route is replaced with the replacement road section, which realizes the mining of more public experience routes and improves the navigation route planning. effect and travel efficiency.

实施例四Embodiment 4

图8为本发明实施例四提供的一种经验路线替换方法的流程示意图。在上述实施例的基础上,本实施例对步骤120“基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间”继续进行了优化,给出了若所述待替换路段的起点与所述替换路段的起点相同、并且所述待替换路段的终点与所述替换路段的终点不同时,所述替换区间的具体确定方式,具体参见图8所示,所述经验路线替换方法包括如下步骤:FIG. 8 is a schematic flowchart of a method for replacing an empirical route according to Embodiment 4 of the present invention. On the basis of the above-mentioned embodiment, this embodiment continues to optimize step 120 of “determining a replacement interval based on the planned route, the starting point and ending point of the road section to be replaced, and the starting point and ending point of the replaced road section”, giving If the starting point of the road section to be replaced is the same as the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section, the specific determination method of the replacement section is shown in FIG. 8 . As shown, the empirical route replacement method includes the following steps:

步骤810、获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段。Step 810: Acquire a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the road segment to be replaced.

步骤820、确定所述替换路段的终点的脱出道路集合。Step 820: Determine the set of exit roads at the end point of the replacement road segment.

步骤830、在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路。Step 830: Perform sequential search along the exit direction of the end point of the road section to be replaced on the planned route, and when a road belonging to the escape road set is searched, determine the road as the replacement destination road.

步骤840、将所述待替换路段的起点、与所述替换终点道路在所述规划路线上的上一道路分别确定为所述替换区间的起点与终点。Step 840: Determine the start point of the road section to be replaced and the last road of the replacement destination road on the planned route as the start point and the end point of the replacement section, respectively.

其中,所述替换终点道路在所述规划路线上的上一道路指通往所述替换终点道路的、在所述规划路线上的、且与所述替换终点道路最近邻的道路。具体的,参见图9所示的一种经验路线替换示意图,其中,待替换路段为:Wherein, the last road of the alternative destination road on the planned route refers to the road leading to the alternative destination road, on the planned route, and closest to the alternative destination road. Specifically, refer to a schematic diagram of an empirical route replacement shown in FIG. 9 , wherein the road sections to be replaced are:

Start->A->B->J->K->L->M->N->O->EndStart->A->B->J->K->L->M->N->O->End

替换路段为:Start->C->D->E->F->G->H->X,The replacement section is: Start->C->D->E->F->G->H->X,

规划路线为:Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->QThe planned route is: Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q

则替换路段(Start->C->D->E->F->G->H->X)的终点X的脱出道路集合为{Q},在所述规划路线(Z->Y->Start->A->B->J->K->L->M->N->O->End->P->X->Q)上沿所述待替换路段(Start->A->B->J->K->L->M->N->O->End)的终点End的脱出方向进行顺序搜索,得到的搜索结果为{P、X、Q},其中道路Q属于所述脱出道路集合的道路,因此将道路Q确定为替换终点道路,替换终点道路Q在所述规划路线上的上一道路为道路X,因此,将待替换路段的起点Start、与所述替换终点道路在所述规划路线上的上一道路X分别确定为所述替换区间的起点与终点,即对应的替换区间为[Start,X]。Then the set of escape roads at the end point X of the replacement road segment (Start->C->D->E->F->G->H->X) is {Q}, and in the planned route (Z->Y- >Start->A->B->J->K->L->M->N->O->End->P->X->Q) along the section to be replaced (Start-> A->B->J->K->L->M->N->O->End) and the exit direction of the end point End) are searched sequentially, and the obtained search results are {P, X, Q}, where The road Q belongs to the road of the set of escaped roads, so the road Q is determined as the replacement end road, and the last road on the planned route of the replacement end road Q is the road X, therefore, the starting point Start of the road segment to be replaced, and The last road X of the replacement destination road on the planned route is respectively determined as the start point and the end point of the replacement interval, that is, the corresponding replacement interval is [Start, X].

步骤850、将所述规划路线中从所述待替换路段的起点到所述替换终点道路的上一道路的路段替换为所述替换路段。Step 850: Replace the road segment from the starting point of the road segment to be replaced to the last road of the replacement destination road in the planned route with the replacement road segment.

继续使用上述步骤840中的举例,替换后的规划路线为:Continuing to use the example in step 840 above, the replaced planned route is:

Z->Y->Start->C->D->E->F->G->H->X->QZ->Y->Start->C->D->E->F->G->H->X->Q

本实施例的技术方案,若所述待替换路段的起点与所述替换路段的起点相同、并且所述待替换路段的终点与所述替换路段的终点不同,则仅确定所述替换路段的终点的脱出道路集合,然后在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路,并最终将所述规划路线中从所述待替换路段的起点到所述替换终点道路的上一道路的路段替换为所述替换路段,实现了对更多大众经验路线的挖掘,提升了导航路线规划的效果及出行效率。In the technical solution of this embodiment, if the starting point of the road section to be replaced is the same as the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section, only the end point of the replacement road section is determined. Then, on the planned route, a sequential search is performed along the exit direction of the end point of the road section to be replaced, and when a road belonging to the set of escape roads is searched, the road is determined as the replacement destination road, and Finally, the road segment of the previous road from the starting point of the road segment to be replaced to the replacement destination road in the planned route is replaced with the replacement road segment, which realizes the mining of more public experience routes and improves the navigation route planning. effect and travel efficiency.

在上述实施例的基础上,所述经验路线替换方法还包括:若未搜索到属于所述进入道路集合的道路,和/或,未搜索到属于所述脱出道路集合的道路,则发出无法进行道路替换的提示信息,以提升用户体验。On the basis of the above-mentioned embodiment, the method for replacing the empirical route further includes: if no road belonging to the set of entering roads is searched, and/or no road belonging to the set of exit roads is searched, issuing an inability to proceed. Tips for road replacement to improve user experience.

实施例五Embodiment 5

图10为本发明实施例五提供的一种经验路线替换装置的结构示意图,参见图10所示,所述装置包括:获取模块1010、确定模块1020和替换模块1030;FIG. 10 is a schematic structural diagram of an empirical route replacement device according to Embodiment 5 of the present invention. Referring to FIG. 10 , the device includes: an acquisition module 1010 , a determination module 1020 , and a replacement module 1030 ;

其中,获取模块1010,用于获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;确定模块1020,用于基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间;替换模块1030,用于将所述规划路线中所述替换区间的路段替换为所述替换路段;其中,所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同。Wherein, the obtaining module 1010 is used to obtain the planned route, the road section to be replaced in the planned route, and the replacement road section corresponding to the to-be-replaced road section; the determining module 1020 is used to obtain the planned route, the road section to be replaced based on the The starting point, the ending point, and the starting point and ending point of the replacement road section determine the replacement section; the replacement module 1030 is configured to replace the section of the replacement section in the planned route with the replacement section; wherein, the to-be-replaced road section is The start point is different from the start point of the replacement road segment, and/or the end point of the road segment to be replaced is different from the end point of the replacement road segment.

进一步的,若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点不同,确定模块1020具体用于:确定所述替换路段的起点的进入道路集合以及所述替换路段的终点的脱出道路集合;在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路;将所述替换起点道路与所述替换终点道路分别确定为所述替换区间的起点与终点;对应的,替换模块1030用于:将所述规划路线中所述替换起点道路与所述替换终点道路之间的路段替换为所述替换路段。Further, if the starting point of the road section to be replaced is different from the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section, the determining module 1020 is specifically configured to: determine the replacement road section. The entry road set of the starting point and the exit road set of the end point of the replacement road segment; the reverse order search is performed on the planned route along the entry direction of the starting point of the to-be-replaced road segment, when a road belonging to the entry road set is searched for , determine the road as the replacement starting point road; carry out sequential search along the exit direction of the end point of the road section to be replaced on the planned route, when the road belonging to the set of escaped roads is searched, determine the road as the replacement road the end road; the replacement starting point road and the replacement ending road are respectively determined as the starting point and the ending point of the replacement interval; correspondingly, the replacement module 1030 is used for: comparing the replacement starting point road and the replacement starting point road in the planned route with the The link between the replacement destination roads is replaced with the replacement link.

进一步的,若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点相同,确定模块1020具体用于:确定所述替换路段的起点的进入道路集合;在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;将所述替换起点道路在所述规划路线上的下一道路与所述待替换路段的终点分别确定为所述替换区间的起点与终点;对应的,替换模块1030用于:Further, if the starting point of the road section to be replaced is different from the starting point of the replacement road section, and the end point of the road section to be replaced is the same as the end point of the replacement road section, the determining module 1020 is specifically configured to: determine the replacement road section. The entry road set of the starting point; perform reverse order search along the entry direction of the starting point of the to-be-replaced road section on the planned route, and when a road belonging to the entry road set is searched, determine the road as the replacement starting point road; The next road of the replacement starting point road on the planned route and the end point of the road section to be replaced are respectively determined as the starting point and the ending point of the replacement interval; correspondingly, the replacement module 1030 is used for:

将所述规划路线中从所述替换起点道路的下一道路到所述待替换路段的终点的路段替换为所述替换路段。A road segment from the next road of the replacement starting point road to the end point of the to-be-replaced road segment in the planned route is replaced with the replacement road segment.

进一步的,若所述待替换路段的起点与所述替换路段的起点相同、并且所述待替换路段的终点与所述替换路段的终点不同,所述确定模块1020具体用于:确定所述替换路段的终点的脱出道路集合;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路;将所述待替换路段的起点、与所述替换终点道路在所述规划路线上的上一道路分别确定为所述替换区间的起点与终点;对应的,替换模块1030具体用于:将所述规划路线中从所述待替换路段的起点到所述替换终点道路的上一道路的路段替换为所述替换路段。Further, if the starting point of the road section to be replaced is the same as the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section, the determining module 1020 is specifically configured to: determine the replacement The set of exit roads at the end of the road segment; perform sequential search along the exit direction of the end point of the road segment to be replaced on the planned route, and when a road belonging to the set of exit roads is found, the road is determined as the replacement destination road ; Determine the starting point of the road section to be replaced and the last road of the replacement destination road on the planned route as the starting point and the end point of the replacement interval respectively; Correspondingly, the replacement module 1030 is specifically used for: In the planned route, the road segment of the previous road from the starting point of the road segment to be replaced to the replacement destination road is replaced with the replacement road segment.

进一步的,获取模块1010包括:获取单元和确定单元,Further, the obtaining module 1010 includes: an obtaining unit and a determining unit,

其中,获取单元用于获取预先设置的至少一组经验可替换路段对;Wherein, the obtaining unit is used to obtain at least one set of preset experience-replaceable road segment pairs;

确定单元,用于对于各所述经验可替换路段对,若当前经验可替换路段对中包含的一个路段在所述规划路线上,则将该路段确定为待替换路段,将当前经验可替换路段对中的另一路段作为替换路段。The determining unit is used for each of the experience replaceable road segment pairs, if a road segment included in the current experience replaceable road segment pair is on the planned route, then the road segment is determined as the road segment to be replaced, and the current experience replaceable road segment is determined as the road segment to be replaced. Another segment in the pair is used as a replacement segment.

进一步的,所述装置还包括提醒模块,用于若未搜索到属于所述进入道路集合的道路,和/或,未搜索到属于所述脱出道路集合的道路,发出无法进行道路替换的提示信息。Further, the device further includes a reminder module for issuing a reminder message that the road cannot be replaced if the road belonging to the set of entry roads is not searched, and/or the road belonging to the set of exit roads is not searched. .

进一步的,获取模块1010还包括:路线生成单元,用于根据用户输入的起终点位置信息以及设定路径规划算法,生成规划路线。Further, the obtaining module 1010 further includes: a route generating unit, configured to generate a planned route according to the starting and ending location information input by the user and the set route planning algorithm.

本实施例的技术方案,通过将人的经验路线预先设置为经验可替换路段对,在进行导航路径规划时,基于所述经验可替换路段对获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段,且替换路线与待替换路线之间无需首尾严格重合,实现了对更多大众经验路线的挖掘,提高了对待替换路线的替换效率,提升了导航路线规划的效果及出行效率。In the technical solution of this embodiment, a person's experience route is preset as an experience replaceable road segment pair, and when planning a navigation path, the to-be-replaced road segment in the planned route and the The replacement road section corresponding to the road section to be replaced, and the replacement route and the route to be replaced do not need to strictly overlap the beginning and the end, which realizes the mining of more public experience routes, improves the replacement efficiency of the replacement route, and improves the effect of navigation route planning. travel efficiency.

本发明实施例所提供的经验路线替换装置可执行本发明任意实施例所提供的经验路线替换方法,具备执行方法相应的功能模块和有益效果。The empirical route replacement device provided by the embodiment of the present invention can execute the empirical route replacement method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.

实施例六Embodiment 6

图11为本发明实施例六提供的一种电子设备的结构示意图。图11示出了适于用来实现本发明实施方式的示例性设备12的框图。图11显示的设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 11 is a schematic structural diagram of an electronic device according to Embodiment 6 of the present invention. Figure 11 shows a block diagram of an exemplary apparatus 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in FIG. 11 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

如图11所示,设备12以通用计算设备的形式表现。设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 11, device 12 takes the form of a general-purpose computing device. Components of device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components including system memory 28 and processing unit 16.

总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.

设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by device 12, including volatile and non-volatile media, removable and non-removable media.

系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图11未显示,通常称为“硬盘驱动器”)。尽管图11中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如经验路线替换装置的获取模块1010、确定模块1020和替换模块1030)程序模块,这些程序模块被配置以执行本发明各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 . Device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 11, commonly referred to as a "hard drive"). Although not shown in Figure 11, a disk drive for reading and writing to removable non-volatile magnetic disks (eg "floppy disks") and removable non-volatile optical disks (eg CD-ROM, DVD-ROM) may be provided or other optical media) to read and write optical drives. In these cases, each drive may be connected to bus 18 through one or more data media interfaces. The memory 28 may include at least one program product having a set of (eg, the acquisition module 1010, the determination module 1020, and the replacement module 1030 of the empirical route replacement apparatus) program modules configured to perform the functions of various embodiments of the present invention. Function.

具有一组(经验路线替换装置的获取模块1010、确定模块1020和替换模块1030)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set of program modules 42 (acquisition module 1010, determination module 1020, and replacement module 1030 of the empirical route replacement apparatus) may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system , one or more applications, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the described embodiments of the present invention.

设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该设备12交互的设备通信,和/或与使得该设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与设备12的其它模块通信。应当明白,尽管图中未示出,可以结合设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Device 12 may also communicate with one or more external devices 14 (eg, keyboards, pointing devices, display 24, etc.), may also communicate with one or more devices that enable a user to interact with device 12, and/or communicate with Device 12 can communicate with any device (eg, network card, modem, etc.) that communicates with one or more other computing devices. Such communication may take place through input/output (I/O) interface 22 . Also, the device 12 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 20 . As shown, network adapter 20 communicates with other modules of device 12 via bus 18 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and Data backup storage system, etc.

处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的经验路线替换方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing the empirical route replacement method provided by the embodiments of the present invention.

实施例七Embodiment 7

本发明实施例七还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任一实施例所述的经验路线替换方法。所述经验路线替换方法,包括:Embodiment 7 of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the empirical route replacement method described in any of the embodiments of the present invention. The empirical route replacement method includes:

获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;acquiring a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the to-be-replaced road segment;

基于所述规划路线、所述待替换路段的起点、终点,以及所述替换路段的起点、终点确定替换区间;Determine the replacement interval based on the planned route, the starting point and the ending point of the road section to be replaced, and the starting point and the ending point of the replacement road section;

将所述规划路线中所述替换区间的路段替换为所述替换路段;replacing the road segment of the replacement section in the planned route with the replacement road segment;

其中,所述待替换路段的起点与所述替换路段的起点不同,和/或,所述待替换路段的终点与所述替换路段的终点不同。Wherein, the starting point of the road section to be replaced is different from the starting point of the replacing road section, and/or the end point of the road section to be replaced is different from the end point of the replacing road section.

本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如C语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming languages—such as C or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (15)

1.一种经验路线替换方法,其特征在于,包括:1. an experience route replacement method, is characterized in that, comprises: 获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;acquiring a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the to-be-replaced road segment; 若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点不同,则确定所述替换路段的起点的进入道路集合以及所述替换路段的终点的脱出道路集合,在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路;将所述替换起点道路与所述替换终点道路分别确定为替换区间的起点与终点;If the starting point of the to-be-replaced road segment is different from the starting point of the replaced road segment, and the end point of the to-be-replaced road segment is different from the end point of the replaced road segment, then determine the access road set of the starting point of the replaced road segment and the replacement road segment. The set of exit roads at the end of the road segment, the reverse order search is performed on the planned route along the entry direction of the starting point of the road segment to be replaced, and when a road belonging to the set of entry roads is searched, the road is determined as the replacement starting point road ; Carry out sequential search along the exit direction of the end point of the road section to be replaced on the planned route, and when searching for the road belonging to the set of exit roads, determine the road as the replacement destination road; The replacement starting point road and the replacement destination road are respectively determined as the starting point and the end point of the replacement interval; 将所述规划路线中所述替换区间的路段替换为所述替换路段;replacing the road segment of the replacement section in the planned route with the replacement road segment; 其中,所述进入道路集合指通往所述替换路段起点的所有道路,所述脱出道路集合指所述替换路段的终点所通往的所有道路。Wherein, the set of incoming roads refers to all roads leading to the starting point of the replacement road segment, and the set of exit roads refers to all roads leading to the end point of the replacement road segment. 2.根据权利要求1所述的方法,其特征在于,获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段,包括:2. The method according to claim 1, wherein obtaining the road section to be replaced in the planned route and the replacement road section corresponding to the road section to be replaced, comprising: 获取预先设置的至少一组经验可替换路段对;Obtaining at least a set of experience-replaceable road segment pairs set in advance; 对于各所述经验可替换路段对,若当前经验可替换路段对中包含的一个路段在所述规划路线上,则将该路段确定为待替换路段,将当前经验可替换路段对中的另一路段作为替换路段。For each of the experience replaceable road segment pairs, if one road segment included in the current experience replaceable road segment pair is on the planned route, the road segment is determined as the road segment to be replaced, and the other road segment in the current experience replaceable road segment pair is determined as the road segment to be replaced. segment as a replacement segment. 3.根据权利要求1所述的方法,其特征在于,还包括:若未搜索到属于所述进入道路集合的道路,和/或,未搜索到属于所述脱出道路集合的道路,则发出无法进行道路替换的提示信息。3. The method according to claim 1, further comprising: if no road belonging to the set of entering roads is searched, and/or no road belonging to the set of exit roads is searched, sending a message that cannot be Hint for road replacement. 4.根据权利要求1-3中任一项所述的方法,其特征在于,所述获取规划路线,包括:4. The method according to any one of claims 1-3, wherein the acquiring a planned route comprises: 根据用户输入的起终点位置信息以及设定路径规划算法,生成规划路线。The planned route is generated according to the starting and ending location information input by the user and the set route planning algorithm. 5.一种经验路线替换方法,其特征在于,包括:5. an empirical route replacement method, is characterized in that, comprises: 获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;acquiring a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the to-be-replaced road segment; 若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点相同,则确定所述替换路段的起点的进入道路集合;在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;将所述替换起点道路在所述规划路线上的下一道路与所述待替换路段的终点分别确定为替换区间的起点与终点;If the starting point of the road segment to be replaced is different from the starting point of the replacement road segment, and the end point of the road segment to be replaced is the same as the end point of the replacement road segment, then determine the access road set of the starting point of the replacement road segment; in the Perform reverse order search along the entry direction of the starting point of the road section to be replaced on the planned route, and when a road belonging to the entry road set is searched, determine the road as the replacement starting point road; place the replacement starting point road in the planning The next road on the route and the end point of the road section to be replaced are respectively determined as the start point and the end point of the replacement interval; 将所述规划路线中所述替换区间的路段替换为所述替换路段;replacing the road segment of the replacement section in the planned route with the replacement road segment; 其中,所述进入道路集合指通往所述替换路段起点的所有道路。Wherein, the set of incoming roads refers to all roads leading to the starting point of the replacement road segment. 6.根据权利要求5所述的方法,其特征在于,获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段,包括:6. The method according to claim 5, wherein obtaining the road section to be replaced in the planned route and the replacement road section corresponding to the road section to be replaced, comprising: 获取预先设置的至少一组经验可替换路段对;Obtaining at least a set of experience-replaceable road segment pairs set in advance; 对于各所述经验可替换路段对,若当前经验可替换路段对中包含的一个路段在所述规划路线上,则将该路段确定为待替换路段,将当前经验可替换路段对中的另一路段作为替换路段。For each of the experience replaceable road segment pairs, if one road segment included in the current experience replaceable road segment pair is on the planned route, the road segment is determined as the road segment to be replaced, and the other road segment in the current experience replaceable road segment pair is determined as the road segment to be replaced. segment as a replacement segment. 7.根据权利要求5所述的方法,其特征在于,还包括:若未搜索到属于所述进入道路集合的道路,则发出无法进行道路替换的提示信息。7 . The method according to claim 5 , further comprising: if no road belonging to the set of incoming roads is searched, sending a prompt message that the road cannot be replaced. 8 . 8.一种经验路线替换方法,其特征在于,包括:8. an empirical route replacement method, is characterized in that, comprises: 获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;acquiring a planned route, a road segment to be replaced in the planned route, and a replacement road segment corresponding to the to-be-replaced road segment; 若所述待替换路段的起点与所述替换路段的起点相同、并且所述待替换路段的终点与所述替换路段的终点不同,则确定所述替换路段的终点的脱出道路集合;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路;将所述待替换路段的起点、与所述替换终点道路在所述规划路线上的上一道路分别确定为替换区间的起点与终点;If the starting point of the road segment to be replaced is the same as the starting point of the replacement road segment, and the end point of the road segment to be replaced is different from the end point of the replacement road segment, then determine the set of exit roads of the end point of the replacement road segment; in the On the planned route, a sequential search is performed along the exit direction of the end point of the road section to be replaced, and when a road belonging to the escape road set is searched, the road is determined as the replacement end road; the starting point of the road section to be replaced, and The last road of the replacement destination road on the planned route is respectively determined as the start point and the end point of the replacement interval; 将所述规划路线中所述替换区间的路段替换为所述替换路段;replacing the road segment of the replacement section in the planned route with the replacement road segment; 其中,所述脱出道路集合指所述替换路段的终点所通往的所有道路。Wherein, the set of escaped roads refers to all roads leading to the end point of the replacement road segment. 9.根据权利要求8所述的方法,其特征在于,获取所述规划路线中的待替换路段和所述待替换路段对应的替换路段,包括:9 . The method according to claim 8 , wherein obtaining the road section to be replaced in the planned route and the replacement road section corresponding to the road section to be replaced, comprising: 10 . 获取预先设置的至少一组经验可替换路段对;Obtaining at least a set of experience-replaceable road segment pairs set in advance; 对于各所述经验可替换路段对,若当前经验可替换路段对中包含的一个路段在所述规划路线上,则将该路段确定为待替换路段,将当前经验可替换路段对中的另一路段作为替换路段。For each of the experience replaceable road segment pairs, if one road segment included in the current experience replaceable road segment pair is on the planned route, the road segment is determined as the road segment to be replaced, and the other road segment in the current experience replaceable road segment pair is determined as the road segment to be replaced. segment as a replacement segment. 10.根据权利要求8所述的方法,其特征在于,还包括:若未搜索到属于所述脱出道路集合的道路,则发出无法进行道路替换的提示信息。10 . The method according to claim 8 , further comprising: if no road belonging to the set of escaped roads is searched, sending a prompt message that the road cannot be replaced. 11 . 11.一种经验路线替换装置,其特征在于,包括:11. An experience route replacement device, characterized in that, comprising: 获取模块,用于获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;an obtaining module, configured to obtain a planned route, a road section to be replaced in the planned route, and a replacement road section corresponding to the to-be-replaced road section; 确定模块,用于若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点不同,则确定所述替换路段的起点的进入道路集合以及所述替换路段的终点的脱出道路集合,在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路;将所述替换起点道路与所述替换终点道路分别确定为替换区间的起点与终点;A determination module, configured to determine the access road of the starting point of the replaced road segment if the starting point of the to-be-replaced road segment is different from the starting point of the replaced road segment, and the end point of the to-be-replaced road segment is different from the end point of the replaced road segment set and the set of exit roads at the end of the replacement road segment, perform a reverse search on the planned route along the entry direction of the starting point of the to-be-replaced road segment, and when a road belonging to the set of entry roads is searched, the road Determine as the replacement starting point road; perform sequential search along the exit direction of the end point of the to-be-replaced road section on the planned route, and when a road belonging to the set of escaped roads is searched, determine the road as the replacement destination road; The replacement start point road and the replacement end road are respectively determined as the start point and the end point of the replacement interval; 替换模块,用于将所述规划路线中所述替换区间的路段替换为所述替换路段;a replacement module, configured to replace the road segment of the replacement interval in the planned route with the replacement road segment; 其中,所述进入道路集合指通往所述替换路段起点的所有道路,所述脱出道路集合指所述替换路段的终点所通往的所有道路。Wherein, the set of incoming roads refers to all roads leading to the starting point of the replacement road segment, and the set of exit roads refers to all roads leading to the end point of the replacement road segment. 12.一种经验路线替换装置,其特征在于,包括:12. An empirical route replacement device, characterized in that, comprising: 获取模块,用于获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;an obtaining module, configured to obtain a planned route, a road section to be replaced in the planned route, and a replacement road section corresponding to the to-be-replaced road section; 确定模块,用于若所述待替换路段的起点与所述替换路段的起点不同、并且所述待替换路段的终点与所述替换路段的终点相同,则确定所述替换路段的起点的进入道路集合;在所述规划路线上沿所述待替换路段的起点的进入方向进行逆序搜索,在搜索到属于所述进入道路集合的道路时,将该道路确定为替换起点道路;将所述替换起点道路在所述规划路线上的下一道路与所述待替换路段的终点分别确定为替换区间的起点与终点;A determination module, configured to determine the access road of the starting point of the replaced road segment if the starting point of the to-be-replaced road segment is different from the starting point of the replaced road segment, and the end point of the to-be-replaced road segment is the same as the end point of the replaced road segment set; perform reverse order search along the entry direction of the starting point of the road section to be replaced on the planned route, when a road belonging to the entry road set is searched, determine the road as the replacement starting point road; set the replacement starting point The next road of the road on the planned route and the end point of the road section to be replaced are determined as the start point and the end point of the replacement interval, respectively; 替换模块,用于将所述规划路线中所述替换区间的路段替换为所述替换路段;a replacement module, configured to replace the road segment of the replacement interval in the planned route with the replacement road segment; 其中,所述进入道路集合指通往所述替换路段起点的所有道路。Wherein, the set of incoming roads refers to all roads leading to the starting point of the replacement road segment. 13.一种经验路线替换装置,其特征在于,包括:13. An empirical route replacement device, characterized in that it comprises: 获取模块,用于获取规划路线、所述规划路线中的待替换路段和所述待替换路段对应的替换路段;an obtaining module, configured to obtain a planned route, a road section to be replaced in the planned route, and a replacement road section corresponding to the to-be-replaced road section; 确定模块,用于若所述待替换路段的起点与所述替换路段的起点相同、并且所述待替换路段的终点与所述替换路段的终点不同,则确定所述替换路段的终点的脱出道路集合;在所述规划路线上沿所述待替换路段的终点的脱出方向进行顺序搜索,在搜索到属于所述脱出道路集合的道路时,将该道路确定为替换终点道路;将所述待替换路段的起点、与所述替换终点道路在所述规划路线上的上一道路分别确定为替换区间的起点与终点;A determination module, configured to determine the exit road of the end point of the replacement road section if the starting point of the road section to be replaced is the same as the starting point of the replacement road section, and the end point of the road section to be replaced is different from the end point of the replacement road section set; perform sequential search along the exit direction of the end point of the road section to be replaced on the planned route, and when a road belonging to the set of exit roads is found, determine the road as the replacement destination road; set the to-be-replaced road The starting point of the road section and the previous road of the replacement destination road on the planned route are respectively determined as the starting point and the ending point of the replacement section; 替换模块,用于将所述规划路线中所述替换区间的路段替换为所述替换路段;a replacement module, configured to replace the road segment of the replacement interval in the planned route with the replacement road segment; 其中,所述脱出道路集合指所述替换路段的终点所通往的所有道路。Wherein, the set of escaped roads refers to all roads leading to the end point of the replacement road segment. 14.一种电子设备,其特征在于,所述电子设备包括:14. An electronic device, characterized in that the electronic device comprises: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,storage means for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-10中任一所述的经验路线替换方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the empirical route replacement method of any one of claims 1-10. 15.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-10中任一所述的经验路线替换方法。15. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the empirical route replacement method according to any one of claims 1-10 is implemented.
CN201910194594.7A 2019-03-14 2019-03-14 A kind of empirical route replacement method, device, electronic device and storage medium Active CN109781132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910194594.7A CN109781132B (en) 2019-03-14 2019-03-14 A kind of empirical route replacement method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910194594.7A CN109781132B (en) 2019-03-14 2019-03-14 A kind of empirical route replacement method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN109781132A CN109781132A (en) 2019-05-21
CN109781132B true CN109781132B (en) 2020-12-01

Family

ID=66487928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910194594.7A Active CN109781132B (en) 2019-03-14 2019-03-14 A kind of empirical route replacement method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN109781132B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109612490A (en) * 2019-01-14 2019-04-12 闽江学院 A method and device for judging driving route based on driving speed
CN110579221B (en) * 2019-09-30 2023-02-21 重庆元韩汽车技术设计研究院有限公司 Trajectory planning method and system for remote control
CN113494919B (en) * 2020-03-20 2022-07-05 百度在线网络技术(北京)有限公司 Navigation planning method and device based on personal local experience route
CN111707285B (en) * 2020-06-28 2022-07-05 北京百度网讯科技有限公司 Method and device for planning a route
CN114676352B (en) * 2022-03-28 2025-09-02 北京百度网讯科技有限公司 Route planning method, device, equipment and storage medium
CN115240423B (en) * 2022-07-24 2024-03-01 福建港南实业有限公司 Internet-based intelligent urban traffic allocation method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104236577A (en) * 2014-09-19 2014-12-24 联想(北京)有限公司 Information processing method and electronic equipment
CN104484514A (en) * 2014-12-03 2015-04-01 宁波大学 Flexible bus route design method capable of evading jammed road segments
JP2015224868A (en) * 2014-05-24 2015-12-14 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Route guiding method using text
CN105606116A (en) * 2016-03-24 2016-05-25 广东欧珀移动通信有限公司 Navigation method, navigation device and system for navigating route
CN105973257A (en) * 2016-06-28 2016-09-28 百度在线网络技术(北京)有限公司 Navigation method and device
CN106225794A (en) * 2016-06-30 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method and device for planning of navigation way
CN106595684A (en) * 2016-11-22 2017-04-26 上海斐讯数据通信技术有限公司 Electronic map-based navigation method and device
CN108020238A (en) * 2016-11-02 2018-05-11 武汉四维图新科技有限公司 A kind of method, apparatus and navigation equipment for obtaining transit point
CN108267150A (en) * 2018-01-31 2018-07-10 武汉光庭信息技术股份有限公司 It is a kind of to solve the layering rational method and system of route planning circuit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008116262A (en) * 2006-11-01 2008-05-22 Alpine Electronics Inc On-vehicle navigation apparatus and display method of roundabout
US8423288B2 (en) * 2009-11-30 2013-04-16 Apple Inc. Dynamic alerts for calendar events
US8583361B2 (en) * 2011-08-24 2013-11-12 Modular Mining Systems, Inc. Guided maneuvering of a mining vehicle to a target destination
US9958272B2 (en) * 2012-08-10 2018-05-01 Telogis, Inc. Real-time computation of vehicle service routes
CN104424799B (en) * 2013-09-05 2017-07-07 吴汉才 A kind of real-time dynamic road condition collection and the system and method for service
US10274328B2 (en) * 2016-08-22 2019-04-30 Microsoft Technology Licensing, Llc Generating personalized routes with route deviation information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015224868A (en) * 2014-05-24 2015-12-14 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Route guiding method using text
CN104236577A (en) * 2014-09-19 2014-12-24 联想(北京)有限公司 Information processing method and electronic equipment
CN104484514A (en) * 2014-12-03 2015-04-01 宁波大学 Flexible bus route design method capable of evading jammed road segments
CN105606116A (en) * 2016-03-24 2016-05-25 广东欧珀移动通信有限公司 Navigation method, navigation device and system for navigating route
CN105973257A (en) * 2016-06-28 2016-09-28 百度在线网络技术(北京)有限公司 Navigation method and device
CN106225794A (en) * 2016-06-30 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method and device for planning of navigation way
CN108020238A (en) * 2016-11-02 2018-05-11 武汉四维图新科技有限公司 A kind of method, apparatus and navigation equipment for obtaining transit point
CN106595684A (en) * 2016-11-22 2017-04-26 上海斐讯数据通信技术有限公司 Electronic map-based navigation method and device
CN108267150A (en) * 2018-01-31 2018-07-10 武汉光庭信息技术股份有限公司 It is a kind of to solve the layering rational method and system of route planning circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Longitudinal evaluation of corticospinal tract in patients with resected brainstem cavernous malformations using high-definition fiber tractography and diffusion connectometry analysis: preliminary experience";Faraji, Amir H.等;《JOURNAL OF NEUROSURGERY》;20151130;第123卷(第5期);1133-1144 *
"基于VANET的交通流信息采集与动态路径选择方法研究";苏丽;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20121015;C034-598 *

Also Published As

Publication number Publication date
CN109781132A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109781132B (en) A kind of empirical route replacement method, device, electronic device and storage medium
CN107464018B (en) A distribution route optimization method and device, computer equipment, and storage medium
JP7245900B2 (en) Route identification method, apparatus, device, program and computer storage medium
CN114547223B (en) Track prediction method, training method and device of track prediction model
CN110260870A (en) Map-matching method, device, equipment and medium based on hidden Markov model
US12287219B2 (en) Navigation processing method and apparatus, service side device, intelligent terminal, and storage medium
US11719550B2 (en) Method and apparatus for building route time consumption estimation model, and method and apparatus for estimating route time consumption
CN106643774B (en) Navigation route generation method and terminal
CN110542425B (en) Navigation path selection method, navigation device, computer equipment and readable medium
CN114202924B (en) Redundant traffic restriction information identification method and device, electronic equipment and medium
CN114413920B (en) Lane data processing method, navigation method and device
CN110006439B (en) Map track data matching method, map track data matching device, server and storage medium
CN112129304A (en) Electronic navigation method, electronic navigation device, electronic equipment and storage medium
CN110427444A (en) Navigation guide point method for digging, device, equipment and storage medium
CN109257703B (en) Display method and device for driver gathering point, electronic equipment and storage medium
CN112419728B (en) Method, device, device and storage medium for determining road condition information
CN110553658A (en) navigation path recommendation method, navigation server, computer device and readable medium
CN111292549B (en) Method for establishing route time consumption estimation model, method for estimating route time consumption and corresponding device
CN115790632A (en) Track determination method and device, electronic equipment and medium
CN115410410A (en) Parking space recommendation method, device, equipment and storage medium
CN115979296A (en) Navigation method, device, electronic device and medium
CN112113579B (en) Path generation method, path generation device, computing equipment, medium and navigation system
CN114488237A (en) Positioning method, device, electronic device and intelligent driving method
CN113970754A (en) Positioning method and device of autonomous travelable equipment
CN110440788B (en) Navigation prompting method crossing single-line road, server and computer readable 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