CN1920483A - Device for displaying road navigation track - Google Patents
Device for displaying road navigation track Download PDFInfo
- Publication number
- CN1920483A CN1920483A CN 200510044471 CN200510044471A CN1920483A CN 1920483 A CN1920483 A CN 1920483A CN 200510044471 CN200510044471 CN 200510044471 CN 200510044471 A CN200510044471 A CN 200510044471A CN 1920483 A CN1920483 A CN 1920483A
- Authority
- CN
- China
- Prior art keywords
- road
- vertex
- summit
- arc
- data
- 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.)
- Granted
Links
Images
Landscapes
- Navigation (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种给车辆传送导航指示的道路交通控制设备。The invention relates to a road traffic control device for transmitting navigation instructions to vehicles.
技术背景technical background
目前报导的为车辆提供道路导航路径的导航中心装置,配置有以计算机为核心的主控制器、用于接收车载终端提供的车辆当前位置及目的地信息并将导航路径数据向车载终端发送的收发器、存有电子地图的数据存储器、搜索器。其收发器将接收车载终端提供的车辆当前位置及目的地信息转交主控制器,在主控制器控制下搜索器提取数据存储器的电子地图数据按车辆当前位置及目的地计算出道路节点序列形式的导航路径数据后提交主控制器;在主控制器控制下收发器将主控制器取得的导航路径数据向车载终端发送。车辆的车载终端收到导航路径数据后结合本车辆的定位装置随时测量的车辆位置数据,指示驾驶员按导航路径驾驶车辆驶向目的地。由于目前的电子地图中采用简单的路中线模型,将各条道路简化为位于路面中间的一条条折线段,道路间发生交汇的一个交叉道口记录为交通网络抽象图的一个顶点,各条道路被两个相邻顶点分隔开的一条折线段记录为交通网络抽象图中的一个弧。道路上弯曲但未和其他道路发生交汇的点不视作顶点。请看图1道路中一个十字交叉道口处被抽象为一个顶点和连接该顶点的四个道路弧,电子地图中该十字交叉道口处被记录为顶点O和连结顶点O相邻的四个顶点A、B、C、D的四个道路弧OA、OB、OC、OD。电子地图中一个顶点记录数据中包含该位置的经度和纬度及该顶点所连接的道路弧个数与各个道路弧记录的索引;一个道路弧记录数据中包含该道路弧的起点顶点编号和终点顶点编号及该道路弧的长度。请看图2所示的交通网络抽象图,顶点V1、V2、……V9等均是交通网络抽象图中的顶点;而道路V1->V2、V1->V3、……V8->V9等均是交通网络抽象图中的道路弧。而该交通网络的电子地图实质上是各顶点V1、V2、……V9的顶点记录数据,和各道路弧V1->V2、V1->V3、……V8->V9的记录数据。搜索器采用标准的狄杰斯特拉(DijkStra)算法从路中线模型的电子地图中提取顶点数据和道路弧数据,以最短路径长度的原则计算出道路顶点序列形式的导航路径数据。对照图2,计算交通网络中从起点V1至终点V9的最短路径,实际上即是寻求一个顶点序列(假设为V1->V2->V4->V7->V9)使得经过的道路弧(假设为V1->V2、V2->V4、V4->V7、V7->V9)长度之和最小。为简单起见,道路弧长度即抽象前道路的实际长度。DijkStra算法实质上是基于图增长理论,在起点固定的情况下,依次决定出当前路径必定是其最短路径的顶点,直到具有最短路径的顶点与终点吻合方可终止。DijkStra算法求出最短路径时,总保存了以最短路径到达当前顶点前的上一个顶点—前点,所以只要从终点向起点回溯即可得到最短路径的具体组成。目前采用简单的路中线模型的电子地图和采用DijkStra算法的搜索器,在道路交叉道口处设有禁止转向限制时,不能得到正确的最短路径,请看图3,已知从顶点S到顶点E之间的最短路径在不存在任何限制的条件下为顶点S->顶点P->顶点A->顶点O->顶点D->顶点Q->顶点E。若从顶点A到达顶点O时不能转向顶点D(现实生活中经常发生此类交通管制的情况)。直觉上此时应按照顶点S->顶点P->顶点A->顶点O->顶点C->顶点Q->顶点E到达顶点E,但实际上路径顶点S->顶点P->顶点B->顶点O->顶点D->顶点Q->顶点E可能在长度上更符合要求。如果在上述转向限制条件下顶点S->顶点P->顶点B->顶点O->顶点D->顶点Q->顶点E路径长度小于顶点S->顶点P->顶点A->顶点O->顶点C->顶点Q->顶点E路径长度,此时DijkStra算法将失败。因为按照上述DijkStra算法的生成过程顶点S->顶点P->顶点A->顶点O必定是从起点顶点S到终点顶点O的最短路径,亦即在计算过程中顶点O的前点必定是顶点A,这样在计算完毕进行路径回溯时,必定无法得到更符合实际的最短路径顶点S->顶点P->顶点B->顶点O->顶点D->顶点Q->顶点E。由于现有报导的为车辆提供道路导航路径的导航中心装置不能处理有禁止转向限制的道路最短导航路径搜索问题,因此,不能满足现实生活中经常发生道路交叉道口处设有禁止转向限制的交通管制情况下为车辆提供道路最短导航路径需要。The currently reported navigation center device that provides road navigation paths for vehicles is equipped with a main controller with a computer as the core, and a transceiver for receiving the vehicle's current position and destination information provided by the vehicle-mounted terminal and sending the navigation route data to the vehicle-mounted terminal. device, data storage device with electronic map, search device. Its transceiver will receive the vehicle's current location and destination information provided by the vehicle-mounted terminal and transfer it to the main controller. After the navigation path data is submitted to the main controller; under the control of the main controller, the transceiver sends the navigation path data obtained by the main controller to the vehicle terminal. After receiving the navigation route data, the vehicle-mounted terminal instructs the driver to drive the vehicle to the destination according to the navigation route combined with the vehicle position data measured by the vehicle's positioning device at any time. Since the current electronic map uses a simple road centerline model, each road is simplified into a polyline segment located in the middle of the road surface, and an intersection where the roads meet is recorded as a vertex of the abstract graph of the traffic network. A polyline segment separating two adjacent vertices is recorded as an arc in the transportation network abstract graph. Points on the road that curve but do not meet other roads are not considered vertices. Please see Figure 1. A crossing in the road is abstracted as a vertex and four road arcs connecting the vertex. In the electronic map, the crossing is recorded as vertex O and four vertices A adjacent to the connecting vertex O. , B, C, D four road arcs OA, OB, OC, OD. A vertex record data in an electronic map includes the longitude and latitude of the location, the number of road arcs connected to the vertex, and the index of each road arc record; a road arc record data includes the starting vertex number and end vertex of the road arc number and the length of the road arc. Please look at the abstract graph of the traffic network shown in Figure 2, the vertices V1, V2, ... V9, etc. are all vertices in the abstract graph of the traffic network; and the roads V1->V2, V1->V3, ... V8->V9, etc. Both are road arcs in the abstract graph of the transportation network. The electronic map of the transportation network is essentially the record data of vertices V1, V2, ... V9, and the record data of road arcs V1->V2, V1->V3, ... V8->V9. The searcher uses the standard DijkStra algorithm to extract vertex data and road arc data from the electronic map of the road centerline model, and calculates the navigation path data in the form of road vertex sequences based on the principle of the shortest path length. Comparing with Figure 2, calculating the shortest path from the starting point V1 to the ending point V9 in the traffic network is actually seeking a vertex sequence (assumed to be V1->V2->V4->V7->V9) so that the passing road arc (assumed The sum of the lengths of V1->V2, V2->V4, V4->V7, V7->V9) is the smallest. For simplicity, the road arc length is the actual length of the road before abstraction. The DijkStra algorithm is essentially based on the graph growth theory. In the case of a fixed starting point, it is determined that the current path must be the vertex of the shortest path in turn, and it cannot be terminated until the vertex with the shortest path matches the end point. When the DijkStra algorithm finds the shortest path, it always saves the previous vertex before the current vertex with the shortest path—the previous point, so the specific composition of the shortest path can be obtained by backtracking from the end point to the starting point. At present, the electronic map using the simple road centerline model and the searcher using the DijkStra algorithm cannot get the correct shortest path when there is a no-turn restriction at the road intersection. Please see Figure 3. It is known that from vertex S to vertex E The shortest path between them is vertex S->vertex P->vertex A->vertex O->vertex D->vertex Q->vertex E without any restrictions. If you cannot turn to vertex D when reaching vertex O from vertex A (such traffic control situations often occur in real life). Intuitively, at this time, the vertex E should be reached according to vertex S->vertex P->vertex A->vertex O->vertex C->vertex Q->vertex E, but in fact the path vertex S->vertex P->vertex B -> Vertex O -> Vertex D -> Vertex Q -> Vertex E may be more in line with the requirements in length. If vertex S->vertex P->vertex B->vertex O->vertex D->vertex Q->vertex E path length is less than vertex S->vertex P->vertex A->vertex O under the above turning constraints -> Vertex C -> Vertex Q -> Vertex E path length, DijkStra algorithm will fail at this time. Because according to the generation process of the above-mentioned DijkStra algorithm, vertex S->vertex P->vertex A->vertex O must be the shortest path from the starting point S to the ending point O, that is, the previous point of the vertex O must be the vertex during the calculation process A. In this way, when the calculation is completed and the path is traced back, it is impossible to obtain a more realistic shortest path vertex S->vertex P->vertex B->vertex O->vertex D->vertex Q->vertex E. Because the existing reported navigation center device that provides road navigation paths for vehicles cannot deal with the search problem of the shortest road navigation path that prohibits turning restrictions, it cannot meet the traffic control requirements that often occur at road intersections in real life. Under the circumstances, it is necessary to provide the vehicle with the shortest navigation path on the road.
发明内容Contents of the invention
本发明旨在提供一种可在道路交叉道口处设有禁止转向限制的交通管制情况下为车辆提供道路最短导航路径的装置。The present invention aims to provide a device that can provide vehicles with the shortest road navigation path under the traffic control situation where there is no turning restriction at the road intersection.
本发明的技术方案方法是:一种提供道路导航路径的装置,包括主控制器、收发器、数据存储器、搜索器;数据存储器存有电子地图;收发器在主控制器控制下接收车载终端提供的车辆当前位置及目的地信息转交主控制器、将主控制器取得的导航路径数据向车载终端发送;搜索器在主控制器控制下提取数据存储器的电子地图数据按车辆当前位置及目的地计算出道路顶点序列形式的导航路径数据提交主控制器;其特征在于:所述数据存储器的电子地图中包含对每一个交叉道口处各道路端口进入该道口的入顶点记录及各道路端口入顶点对应的带有转向限制特征的道路弧记录;它还包括输入模块和地图修编器;地图修编器在主控制器的控制下,接收输入模块提供的交叉道口的各道路端口的转向限制信息修改编辑数据存储器中电子地图该交叉道口对应入顶点的道路弧记录;搜索器利用各道路端口入顶点对应的道路弧记录的转向限制特征,使用DijkStra算法求出在具有交叉道口转向限制条件下的最短导航路径数据。The technical solution method of the present invention is: a kind of device that provides road navigation path, comprises master controller, transceiver, data memory, searcher; Data memory stores electronic map; Transceiver receives vehicle-mounted terminal to provide The current location and destination information of the vehicle is transferred to the main controller, and the navigation route data obtained by the main controller is sent to the vehicle terminal; the searcher extracts the electronic map data of the data storage under the control of the main controller and calculates according to the current location and destination of the vehicle The navigation path data in the form of the exit road vertex sequence is submitted to the main controller; it is characterized in that: the electronic map of the data storage includes the entry apex record of each road port entering the crossing at each crossing and the corresponding entry apex of each road port. The road arc record with turning restriction features; it also includes an input module and a map editor; under the control of the main controller, the map editor receives the turning restriction information modification of each road port of the intersection provided by the input module Edit the electronic map of the electronic map in the data memory and the corresponding road arc record of the intersection at the vertex; the searcher utilizes the turning restriction feature of the road arc record corresponding to each road port entry vertex, and uses the DijkStra algorithm to find the shortest path under the condition of turning restrictions at the intersection. Navigation path data.
为便于地图修编器修改编辑电子地图一个交叉道口数据时人机对话:所述数据存储器的电子地图中有地图编辑格式数据和路径搜索计算格式数据;地图编辑格式数据有各条道路的道路记录和各个道口的道口记录,每条道路的道路记录包含道路名称、道路编号、道路中道口的个数、道路中各道口的编号;每个道口的道口记录包含道口名称、道口编号、道口中入顶点的个数、道口中各入顶点的编号;路径搜索计算格式数据有各入顶点的记录和各道路弧的记录;每个入顶点的记录包含入顶点编号、经度、纬度、以它为起始点的道路弧个数、以它为起始点的各道路弧的编号;每个道路弧的记录包含道路弧编号、起始顶点编号、终止顶点编号、可通行标识、道路弧长度;地图修编器修改编辑电子地图一个交叉道口数据的过程包括:In order to facilitate the man-machine dialogue when the map editor revises and edits an intersection data of the electronic map: the electronic map of the data storage has map editing format data and path search calculation format data; the map editing format data has road records of each road And the crossing record of each crossing, the road record of each road includes the road name, road number, the number of crossings in the road, and the number of each crossing in the road; the crossing record of each crossing includes the name of the crossing, the number of the crossing, the entry The number of vertices, the number of each entry vertex in the crossing; the path search calculation format data has the records of each entry vertex and the record of each road arc; each entry vertex record includes the entry vertex number, longitude, latitude, starting from it The number of road arcs at the starting point, the number of each road arc starting from it; the record of each road arc includes road arc number, starting vertex number, ending vertex number, passable sign, road arc length; map revision The process of modifying and editing an intersection data on the electronic map includes:
A.经主控制器从输入模块获得道口名称,或者该道口所在的两条道路的名称,从电子地图取出地图编辑格式数据中的该道口记录;A. Obtain the crossing name from the input module through the main controller, or the names of the two roads where the crossing is located, and take out the crossing record in the map editing format data from the electronic map;
B.经主控制器控制输入模块提示该道口各个入顶点的编号并从输入模块提取需要修改编辑的入顶点的编号及车辆行驶转向限制条件;B. The main controller controls the input module to prompt the number of each entry vertex of the crossing and extracts the number of the entry vertex that needs to be modified and edited and the vehicle steering restriction from the input module;
C.用地图编辑格式数据该道口的那个入顶点的编号找出路径搜索计算格式数据中该道口的那个入顶点为起始点的道路弧记录,按车辆行驶转向限制条件选择对应的道路弧记录并将与车辆行驶转向限制条件对应的可通行标识状态写入电子地图路径搜索计算格式数据的该道路弧记录中。C. Use the number of the entry vertex of the crossing in the map editing format data to find out the road arc record of the entry vertex of the crossing in the path search calculation format data as the starting point, select the corresponding road arc record according to the vehicle driving steering restriction condition and Write the state of the passable sign corresponding to the vehicle steering restriction condition into the road arc record of the electronic map route search calculation format data.
推荐的搜索器搜索具有交叉道口转向限制条件下最短导航路径的处理过程包括:The recommended searcher process for searching the shortest navigation path with intersection turning constraints includes:
步骤S1:记录出发顶点的编号和目的地道口顶点的编号,提取电子地图路径搜索计算格式数据中的所有入顶点记录和道路弧记录,建立一个顶点状态表和一个道路弧状态表;电子地图中,每一个入顶点作为顶点状态表中的一栏,该栏中的数据项有本顶点的编号、前点编号、起始顶点到本顶点的当前路径长度、是否计算出最短路径的状态,其中的前点为最短路径中本顶点前的那个顶点;电子地图中,每一个道路弧作为道路弧状态表中的一栏,该栏中的数据项有本道路弧的起始顶点编号、本道路弧终止顶点编号、本道路弧的长度、本道路弧在计算中被访问的状态;Step S1: Record the number of the departure vertex and the number of the destination crossing vertex, extract all entry vertex records and road arc records in the electronic map path search calculation format data, and establish a vertex state table and a road arc state table; , each incoming vertex is regarded as a column in the vertex state table. The data items in this column include the number of the current vertex, the number of the previous point, the current path length from the starting vertex to the current vertex, and the status of whether the shortest path is calculated. The previous point is the vertex before this vertex in the shortest path; in the electronic map, each road arc is regarded as a column in the road arc state table, and the data items in this column include the starting vertex number of this road arc, the current road arc The arc end vertex number, the length of this road arc, and the status of this road arc being accessed in the calculation;
步骤S2:初始化顶点状态表中所有顶点的前点编号为无效值、当前路径长度为正无穷且状态为未计算出最短路径;初始化道路弧状态表所有道路弧的状态为未访问;Step S2: Initialize the previous point numbers of all vertices in the vertex state table as invalid values, the current path length is positive infinity, and the state is that the shortest path has not been calculated; initialize the state of all road arcs in the road arc state table as unvisited;
步骤S3:初始化顶点状态表中出发顶点的前点为出发顶点自身,当前路径长度为0;Step S3: Initialize the previous point of the starting vertex in the vertex state table as the starting vertex itself, and the current path length is 0;
步骤S4:取出顶点状态表中尚未计算出最短路径且当前路径长度最小的顶点,若本步骤失败,则搜索失败退出搜索计算;若取出的顶点为目的地顶点,则是搜索成功转步骤S12;Step S4: Take out the vertex in the vertex state table that has not yet calculated the shortest path and has the smallest current path length. If this step fails, the search fails and exits the search calculation; if the taken vertex is the destination vertex, the search is successful and then go to step S12;
步骤S5:在顶点状态表中标记步骤4取出的顶点的状态为已求出最短路径;Step S5: mark the state of the vertex taken out in
步骤S6:在道路弧状态表中查找一条以取出的顶点为起始点且未被访问过的道路弧,若找不到则返回步骤S4处理顶点状态表中其它顶点;Step S6: Find a road arc starting from the extracted vertex in the road arc state table that has not been visited, if not found, return to step S4 to process other vertices in the vertex state table;
步骤S7:在道路弧状态表中标记该道路弧的状态为已访问;Step S7: mark the state of the road arc as visited in the road arc state table;
步骤S8:检查该道路弧的可通行标识数据项是否为可通行,若不可通行,则放弃对该道路弧的进一步搜索处理,直接转步骤S6对其它道路弧进行处理;Step S8: Check whether the passable identification data item of the road arc is passable, if not passable, then abandon the further search process of the road arc, and directly go to step S6 to process other road arcs;
步骤S9:检查顶点状态表中该道路弧指向的终止顶点,若其状态为已求出最短路径,直接转步骤S6对其它道路弧进行搜索处理;Step S9: Check the terminating vertex pointed to by the road arc in the vertex state table, if the state is that the shortest path has been obtained, go directly to step S6 to search for other road arcs;
步骤S10:检查顶点状态表中该道路弧的起始顶点是否可作为它指向的终止顶点的前点,不可作为前点则直接转步骤S6对其它道路弧进行搜索处理;Step S10: check whether the starting vertex of the road arc in the vertex state table can be used as the previous point of the ending vertex it points to, if it cannot be used as the previous point, then directly go to step S6 to search for other road arcs;
步骤S11:改写顶点状态表中该道路弧指向的终止顶点的前点编号为该道路弧的起始顶点编号、该道路弧指向的终止顶点的当前路径长度为该道路弧的起始顶点的当前路径长度加该道路弧的长度,并转入S6对其它道路弧进行搜索处理;Step S11: In the vertex state table, the previous point number of the end vertex pointed to by the road arc is rewritten as the start vertex number of the road arc, and the current path length of the end vertex pointed to by the road arc is the current path length of the start vertex of the road arc. Path length adds the length of this road arc, and changes over to S6 to search and process other road arcs;
步骤S12:按顶点状态表从目的地顶点向起始顶点回溯前点,再做反序排列得到最短路径上各个顶点的具体组成。Step S12: Backtrack the previous point from the destination vertex to the starting vertex according to the vertex state table, and then arrange in reverse order to obtain the specific composition of each vertex on the shortest path.
特别是针对不同类型道路弧应区别对待的情形:所述的道路弧记录中包含本道路弧的道路等级;搜索器在搜索具有交叉道口转向限制条件下最短导航路径的处理过程的步骤S11中,用该道路弧的道路等级调整加权系数计算该道路弧的加权长度,按该道路弧的加权长度替代该道路弧的长度改写顶点状态表中该道路弧指向的终止顶点的当前路径长度。Especially for the situation that different types of road arcs should be treated differently: the road arc record includes the road grade of this road arc; the searcher searches for the shortest navigation path under the intersection turning restriction in the processing step S11, Use the road level adjustment weighting coefficient of the road arc to calculate the weighted length of the road arc, and replace the length of the road arc with the weighted length of the road arc to rewrite the current path length of the terminal vertex pointed to by the road arc in the vertex state table.
本发明的提供道路导航路径的装置,使用双线道路模型用多顶点的方式处理数据存储器的电子地图中对每一个道路交叉道口的数据,在各道口的端口入顶点向其它端口驶出的道路弧引入转向的限制特征记载在对应的道路弧记录中,同时也解决了城市交通中单行线道路与一般双向行驶道路的区分问题,搜索器在搜索处理过程中利用各道路弧记录的转向限制特征信息使用DijkStra算法求出最短路径。解决了目前采用简单的路中线模型的电子地图和采用DijkStra算法的搜索器,在道路交叉道口处设有禁止转向限制时,不能得到正确的最短路径的问题。本发明在现有技术为车辆提供道路导航路径的导航中心装置的基础上增加地图修编器和输入模块,解决了现实生活中经常发生道路交叉道口处设置于禁止转向限制的交通管制情况下必须及时修改编辑电子地图的问题;从而本发明的提供道路导航路径的装置能适应道路的交通管制动态变化,为车辆提供正确的最短道路导航路径数据,指引驾驶员按该导航路径驾驶车辆驶向目的地。在数据存储器的电子地图中设置地图编辑格式数据和路径搜索计算格式数据,其中地图编辑格式的数据结构是按人们识别地理位置的习惯又兼顾计算机处理电子地图数据记录的特点设计的;便于地图修编器修改编辑电子地图交叉道口数据时人机对话。路径搜索计算格式的数据结构是按计算机处理电子地图数据记录的特点设计的;便于搜索器进行搜索操作。地图修编器修改编辑电子地图交叉道口数据的过程简单扼要,又安排输入模块作出明确的提示,操作人员可以迅速地将道路的交通管制动态变化输入到电子地图中,从而本装置提供导航路径数据的效率高,数据有效性高。搜索器利用一个顶点状态表和一个道路弧状态表并结合道路弧的可通行标识数据项将成熟的DijkStra算法成功地用于搜索具有交叉道口转向限制条件下最短导航路径,处理过程可靠性强。特别是道路弧记录中包含本道路弧的道路等级;搜索器在搜索处理过程中,用该道路弧的道路等级调整加权系数计算该道路弧的加权长度,按该道路弧的加权长度替代该道路弧的长度改写顶点状态表中该道路弧指向的终止顶点的当前路径长度,使不同类型道路弧得到区别对待,可以处理大路优先、红绿灯少优先、人流量小优先等道路选择的情形,导航路径选择灵活性好,能适合驾驶员的习惯。The device for providing the road navigation path of the present invention uses the two-line road model to process the data of each road crossing in the electronic map of the data storage in a multi-vertex manner, and enters the road at the port of each crossing to other ports to drive out from the vertices. The restriction features of arc-introduced turns are recorded in the corresponding road arc records, and it also solves the problem of distinguishing one-way roads from general two-way roads in urban traffic. The searcher uses the turn restriction feature information recorded by each road arc in the search process. Find the shortest path using DijkStra's algorithm. It solves the problem that the current electronic map using the simple road centerline model and the searcher using the DijkStra algorithm cannot obtain the correct shortest path when there is a prohibition of turning at the intersection of the road. The present invention adds a map editor and an input module on the basis of a navigation center device that provides road navigation paths for vehicles in the prior art, and solves the problem that often occurs in real life when road crossings are set at traffic control situations where steering is prohibited. Modify the problem of editing electronic maps in time; thus the device for providing road navigation paths of the present invention can adapt to dynamic changes in road traffic control, provide correct shortest road navigation path data for vehicles, and guide drivers to drive vehicles to their destinations according to the navigation path land. Set map edit format data and path search calculation format data in the electronic map of the data storage, wherein the data structure of the map edit format is designed according to people's habit of identifying geographical location and taking into account the characteristics of computer processing electronic map data records; it is convenient for map editing The editor modifies the man-machine dialogue when editing the intersection data of the electronic map. The data structure of the path search calculation format is designed according to the characteristics of computer processing electronic map data records; it is convenient for searchers to perform search operations. The process of modifying and editing the intersection data of the electronic map by the map editor is simple and concise, and the input module is arranged to give clear prompts. The operator can quickly input the dynamic changes of road traffic control into the electronic map, so that the device provides navigation path data High efficiency and high data validity. The searcher uses a vertex state table and a road arc state table and combines the passable identification data items of the road arc to successfully use the mature DijkStra algorithm to search for the shortest navigation path with intersection turning restrictions, and the processing process is highly reliable. In particular, the road arc record contains the road level of the road arc; during the search process, the searcher uses the road level adjustment weighting coefficient of the road arc to calculate the weighted length of the road arc, and replaces the road according to the weighted length of the road arc The length of the arc rewrites the current path length of the terminating vertex pointed to by the road arc in the vertex state table, so that different types of road arcs can be treated differently, and it can handle road selection situations such as priority to large roads, priority to fewer traffic lights, and priority to small traffic flows. The choice is flexible and can suit the driver's habits.
附图说明Description of drawings
图1为现有技术电子地图中采用的路中线模型的示意图。FIG. 1 is a schematic diagram of a road centerline model used in an electronic map in the prior art.
图2为现有技术电子地图中采用的交通网络抽象图。Fig. 2 is an abstract diagram of a traffic network used in an electronic map in the prior art.
图3为现有技术处理一个起点S到终点E的最短路径的示意图。FIG. 3 is a schematic diagram of processing a shortest path from a starting point S to an end point E in the prior art.
图4为本发明提供道路导航路径的装置一个实施例的结构示意图。Fig. 4 is a schematic structural diagram of an embodiment of the device for providing a road navigation route according to the present invention.
图5为本发明提供道路导航路径的装置的电子地图中采用的双线模型的示意图。FIG. 5 is a schematic diagram of a two-line model used in the electronic map of the device for providing road navigation routes according to the present invention.
图6为本发明提供道路导航路径的装置的电子地图中一个交叉道口的数据关系的示意图。FIG. 6 is a schematic diagram of the data relationship of an intersection in the electronic map of the device for providing road navigation routes according to the present invention.
图7为本发明提供道路导航路径的装置的电子地图中表达图2中交通网络的抽象图。FIG. 7 is an abstract diagram expressing the traffic network in FIG. 2 in the electronic map of the device for providing road navigation routes according to the present invention.
图8为图4实施例的搜索器计算最短路径的准备工作流程图。FIG. 8 is a flow chart of preparation work for the searcher in the embodiment of FIG. 4 to calculate the shortest path.
图9为图4实施例的搜索器计算最短路径的工作流程图。FIG. 9 is a flowchart of the calculation of the shortest path by the searcher in the embodiment of FIG. 4 .
图10为一个起点顶点1到终点顶点5的路径示意图。FIG. 10 is a schematic diagram of a path from a
图11为图4实施例的搜索器计算图10最短路径的顶点状态表1。FIG. 11 is the vertex state table 1 for calculating the shortest path in FIG. 10 by the searcher in the embodiment of FIG. 4 .
图12为图4实施例的搜索器计算图10最短路径的顶点状态表2。FIG. 12 is the vertex state table 2 for calculating the shortest path in FIG. 10 by the searcher in the embodiment of FIG. 4 .
图13为图4实施例的搜索器计算图10最短路径的顶点状态表3。FIG. 13 is the vertex state table 3 for calculating the shortest path in FIG. 10 by the searcher in the embodiment of FIG. 4 .
图14为图4实施例的搜索器计算图10最短路径的顶点状态表4。FIG. 14 is the vertex state table 4 for calculating the shortest path in FIG. 10 by the searcher in the embodiment of FIG. 4 .
图15为图4实施例的搜索器计算图10最短路径的顶点状态表5。FIG. 15 is the vertex state table 5 for calculating the shortest path in FIG. 10 by the searcher in the embodiment of FIG. 4 .
图16为图4实施例的搜索器计算图10最短路径的顶点状态表6。FIG. 16 is the vertex state table 6 for calculating the shortest path in FIG. 10 by the searcher in the embodiment of FIG. 4 .
图17为图4实施例的搜索器计算图10最短路径的顶点状态表7。FIG. 17 is the vertex state table 7 for the searcher in the embodiment of FIG. 4 to calculate the shortest path in FIG. 10 .
图18为图4实施例的搜索器计算图10最短路径的顶点状态表8。FIG. 18 is the vertex state table 8 for the searcher in the embodiment of FIG. 4 to calculate the shortest path in FIG. 10 .
具体实施方式Detailed ways
一、实施例一1.
本发明提供道路导航路径的装置一个实施例的结构,如图3所示,它由主控制器10、收发器20、存有电子地图的数据存储器30、搜索器40、地图修编器50和输入模块60组成。主控制器10控制收发器20、存有电子地图的数据存储器30、搜索器40、地图修编器50并接受输入模块提供的修改电子地图的数据。The present invention provides the structure of an embodiment of the device of road navigation path, as shown in Figure 3, it is made up of
收发器20采用公用的GPRS网络或CDMA网络移动收发器,接收车载终端提供的车辆当前位置及目的地信息转交主控制器10,或将主控制器10取得的导航路径数据向车载终端发送。Transceiver 20 adopts public GPRS network or CDMA network mobile transceiver, receives the vehicle current location and destination information provided by the vehicle terminal and forwards it to the
数据存储器30存储的电子地图中采用双线道路模型的抽象方式如图5所示,使用道路的两条驶向侧线来更真实地反应道路交通关系。由图5可见,一条双线道路在每一个交叉道口处各道路端口将生成两个顶点,按照进入和离开交叉道口的方向,这些路口顶点又可分为进入该交叉道口(以下简称道口)的入顶点(图5中的实心黑点,以下简称顶点)和离开该道口的虚拟出顶点(图5中的空心点)。从交叉道口处一个道路端口的入顶点,分别向其它道路端口的虚拟出顶点各引一条虚拟的转向道路弧连接该道路端口虚拟出顶点为起始点的道路弧,最终形成以入顶点为其起始点而以虚拟出顶点所在道路弧的终止点为其终止点的带转向关系的道路弧。来描述路口处各条道路交叉道口处的转向关系。例如图6所示,道路W和道路V交叉,形成交叉道口WV。从交叉道口WV处一个道路W端口的入顶点D1,向右侧的道路V端口的虚拟出顶点D2引一条虚拟的转向道路弧D1-D2连接该道路V端口虚拟出顶点D2为起始点的道路弧D2-D3,形成一条带转向关系的道路弧D1-D3;向前方的道路W端口的虚拟出顶点D4引一条虚拟的转向道路弧D1-D4连接该道路W端口虚拟出顶点D4为起始点的道路弧D4-D5,形成一条带转向关系的道路弧D1-D5;向左侧的道路V端口的虚拟出顶点D6引一条虚拟的转向道路弧D1-D6连接该道路V端口虚拟出顶点D6为起始点的道路弧D6-D7,形成一条带转向关系的道路弧D1-D7;带转向关系的道路弧D1-D3、带转向关系的道路弧D1-D5和带转向关系的道路弧D1-D7表达了交叉道口WV处一个道路W端口的入顶点D1的转向关系。同样的道理,可以将交叉道口WV处另外三个道路端口的入顶点的转向关系各用三条带转向关系的道路弧表达。由于带转向关系的道路弧隐藏了虚拟出顶点和虚拟的转向道路弧,以下的说明中将入顶点简称顶点。电子地图中交通网络的抽象图如图7所示。The abstract way of adopting the two-line road model in the electronic map stored in the data memory 30 is shown in FIG. 5 , and the two side lines of the road are used to more truly reflect the road traffic relationship. As can be seen from Figure 5, a two-lane road will generate two vertices at each road port at each crossing, and according to the direction of entering and leaving the crossing, these crossing vertices can be divided into again entering the crossing (hereinafter referred to as the crossing). Enter the vertex (solid black dot in Fig. 5, hereinafter referred to as vertex) and leave the virtual exit vertex (hollow point in Fig. 5) of this crossing. From the entry vertex of a road port at the crossing, a virtual turning road arc is drawn to the virtual exit vertices of other road ports respectively to connect the road arc with the virtual exit vertex of the road port as the starting point, and finally form the road arc starting from the entry vertex The road arc with turning relationship whose end point is the end point of the road arc where the virtual vertex is located. To describe the steering relationship at the intersection of each road at the intersection. For example, as shown in FIG. 6 , a road W and a road V intersect to form an intersection WV. From the entry vertex D1 of a road W port at the intersection WV, lead a virtual turning road arc D1-D2 to the virtual exit vertex D2 of the road V port on the right to connect the road with the virtual exit vertex D2 of the road V port as the starting point Arc D2-D3 forms a road arc D1-D3 with steering relationship; lead a virtual turning road arc D1-D4 to the virtual vertex D4 of the road W port ahead to connect the virtual vertex D4 of the road W port as the starting point The road arc D4-D5 of the road forms a road arc D1-D5 with turning relationship; leads a virtual turning road arc D1-D6 to the virtual vertex D6 of the left road V port to connect the virtual vertex D6 of the road V port The road arc D6-D7 as the starting point forms a road arc D1-D7 with steering relationship; road arc D1-D3 with steering relationship, road arc D1-D5 with steering relationship, and road arc D1-D1 with steering relationship D7 expresses the turning relationship of the entry vertex D1 of a road W port at the intersection WV. In the same way, the turning relationships of the entry vertices of the other three road ports at the intersection WV can be expressed by three road arcs with turning relationships. Since the road arc with turning relationship hides the virtual exit vertex and the virtual turning road arc, the entry vertex will be referred to as the vertex in the following description. The abstract diagram of the transportation network in the electronic map is shown in Figure 7.
数据存储器30存储的电子地图中对于道路、交叉道口(以下简称道口)、顶点、道路弧等各类地图元素的记录形式有适用于编辑作业的地图编辑格式,和适用于搜索作业的路径搜索计算格式。电子地图中对各类地图元素分别进行唯一性编号,并在不同的地图元素中建立编号的拓扑关系。In the electronic map stored in the data memory 30, there are map editing formats applicable to editing operations for the recording forms of various map elements such as roads, intersections (hereinafter referred to as crossings), vertices, and road arcs, and path search calculations applicable to search operations. Format. In the electronic map, each type of map element is uniquely numbered, and a numbered topological relationship is established among different map elements.
采用地图编辑格式的地图元素数据有各条道路的道路记录和各个道口的道口记录。每条道路的道路记录包含的数据项有:道路名称、道路编号、道路中道口的个数、起始道口编号、终点道口编号、中间各道口编号;每个道口的道口记录包含的数据项有:道口名称、道口编号、道口中顶点的个数、起始顶点编号、终点顶点编号、中间各顶点的编号。地图编辑格式数据中道路元素与道口元素间的拓扑关系体现在各条道路的道路记录中各个道口的编号。两条道路如果相交,必然有同一个道口的编号出现在这两条道路的道路记录中。The map element data in the map editing format includes road records of each road and crossing records of each crossing. The data items contained in the road record of each road are: road name, road number, the number of crossings in the road, the starting crossing number, the ending crossing number, and the crossing numbers in the middle; the data items contained in the crossing record of each road crossing are: : Crossing name, crossing number, number of vertices in the crossing, start vertex number, end point vertex number, and the number of each middle vertex. The topological relationship between road elements and crossing elements in the map editing format data is reflected in the number of each crossing in the road record of each road. If two roads intersect, the number of the same crossing must appear in the road records of these two roads.
采用路径搜索计算格式的地图元素数据有各顶点的记录和各道路弧的记录。每个顶点的记录包含的数据项有:顶点编号、经度、纬度、所连接的道路弧个数、所连接的各道路弧的编号。每个道路弧的记录包含的数据项有:道路弧编号、起始顶点编号、终止顶点编号、可通行标识、道路弧长度、道路弧其他细节数据、道路弧的道路等级。其中,可通行标识用于表示与该道路弧相连的虚拟转向弧是否可通行,即转向是否受到禁止;道路弧的道路等级可以用于计算时调整对道路弧长度的加权系数。The map element data in the route search calculation format has records of vertices and road arcs. The data items contained in the record of each vertex are: vertex number, longitude, latitude, number of connected road arcs, and numbers of connected road arcs. The data items contained in each road arc record are: road arc number, start vertex number, end vertex number, passable sign, road arc length, other detailed data of the road arc, and road grade of the road arc. Among them, the passable sign is used to indicate whether the virtual turning arc connected to the road arc is passable, that is, whether turning is prohibited; the road grade of the road arc can be used to adjust the weighting coefficient of the length of the road arc during calculation.
地图编辑格式数据中的道口元素与路径搜索计算格式数据中的顶点元素和道路弧元素间的拓扑关系是由地图编辑格式数据中各个道口的道口记录中各个顶点编号体现的,由一个道口记录可以准确地找出该道口的各个顶点编号;在路径搜索计算格式数据中按这些顶点编号可以准确地找出各个顶点所连接的道路弧。而各个顶点元素间的拓扑关系则是由道路弧记录中的起始顶点编号和终止顶点编号这两个字段记录的。The topological relationship between the crossing elements in the map editing format data and the vertex elements and road arc elements in the route search calculation format data is reflected by the number of each vertex in the crossing record of each crossing in the map editing format data, and a crossing record can Accurately find out the numbers of each vertex of the crossing; in the path search calculation format data, according to these vertex numbers, the road arcs connected by each vertex can be accurately found. The topological relationship between each vertex element is recorded by the two fields of start vertex number and end vertex number in the road arc record.
在得到交通管理部门对某道口进行交通管制或解除交通管制的通知后。操作员使用输入模块60向主控制器10输入命令,主控制器10启动地图修编器50进入工作状态。地图修编器50经主控制器10从输入模块60获得与欲修改车辆行驶转向限制有关的道口名称或者该道口所在的两条道路的名称,地图修编器50从数据存储器30中的电子地图取出地图编辑格式数据中的该道口记录中各个顶点编号,并经主控制器10控制输入模块60的显示器显示该道口的图形并提示各个顶点的编号。操作员使用输入模块60经主控制器10向地图修编器50提供需要编辑的顶点的编号及上述通知中禁止或解除禁止的车辆行驶转向;地图修编器50从数据存储器30中的电子地图地图编辑格式数据该道口的那个顶点编号推导出路径搜索计算格式数据的那个顶点后,取出路径搜索计算格式数据中该道口的那个顶点为起始顶点的各道路弧记录,按禁止或解除禁止的车辆行驶转向选择对应的道路弧记录并将相应的可通行标识状态写入数据存储器30的电子地图该道路弧记录中。After being notified by the traffic management department to control or lift traffic control at a crossing. The operator uses the input module 60 to input commands to the
主控制器10从收发器20收到车载终端提供的车辆当前位置及目的地信息后,利用数据存储器30中的电子地图将车辆当前位置及目的地信息转换为起始顶点和目的地顶点,主控制器10控制搜索器40使用DijkStra算法求出最短路径的过程里,搜索器40先记录出发顶点的编号和目的地顶点的编号,然后提取数据存储器30的电子地图路径搜索计算格式数据中的所有顶点记录和道路弧记录,之后搜索器40如图8所示,开始搜索最短路径的准备工作。After the
步骤101:建立一个顶点状态表。电子地图中的每一个顶点作为该表中的一栏,每栏中的数据项有:本顶点的编号;最短路径中本顶点的前点编号;出发顶点到本顶点的当前路径长度;是否确定为最短路径的状态。Step 101: Create a vertex state table. Each vertex in the electronic map is used as a column in the table, and the data items in each column include: the number of this vertex; the number of the previous point of this vertex in the shortest path; the current path length from the starting vertex to this vertex; whether it is confirmed is the state of the shortest path.
并建立一个道路弧状态表。电子地图中的每一个道路弧作为该表中的一栏,每栏中的数据项有:本道路弧的起始顶点编号;本道路弧的终止顶点编号;本道路弧的长度;本道路弧在计算中被访问过的状态。And build a road arc state table. Each road arc in the electronic map is regarded as a column in the table, and the data items in each column include: the starting vertex number of this road arc; the ending vertex number of this road arc; the length of this road arc; the length of this road arc The state that was visited during the computation.
步骤102:初始化顶点状态表中所有顶点的前点为无效值且当前路径长度为正无穷,状态为未计算出最短路径;正无穷表示尚未计算出从出发顶点到达各个顶点的任何路径。初始化道路弧状态表中的所有道路弧的状态为未访问。Step 102: Initialize the previous point of all vertices in the vertex state table as an invalid value and the current path length is positive infinity, and the state is that the shortest path has not been calculated; positive infinity means that no path from the starting vertex to each vertex has been calculated yet. Initialize the state of all road arcs in the road arc state table as unvisited.
其次需要对顶点状态表中的出发顶点做专门的初始化工作:Secondly, it is necessary to do special initialization work on the starting vertex in the vertex state table:
步骤103:初始化顶点状态表中出发顶点的前点为出发顶点自身,当前路径长度为0;Step 103: Initialize the previous point of the starting vertex in the vertex state table as the starting vertex itself, and the current path length is 0;
然后开始搜索计算的循环过程:Then start the cyclic process of search calculation:
步骤104:检查顶点状态表中所有状态为未计算出最短路径、但当前路径长度非正无穷的顶点,取出其中路径长度最小的顶点。根据DijkStra算法该顶点的当前路径即该顶点的最短路径,该最短路径由顶点的前点决定。若查找失败,转步骤105;若查找成功,转步骤106。Step 104: Check all vertices in the vertex state table whose status is that the shortest path has not been calculated but whose current path length is not positive and infinite, and take out the vertex with the smallest path length. According to the DijkStra algorithm, the current path of the vertex is the shortest path of the vertex, and the shortest path is determined by the previous point of the vertex. If the search fails, go to step 105; if the search is successful, go to step 106.
步骤105:表示无法求出从出发顶点到目的地顶点的最短路径,则搜索失败退出计算。Step 105: Indicates that the shortest path from the departure vertex to the destination vertex cannot be obtained, then the search fails and the calculation is exited.
步骤106:判断步骤4查找得到的顶点是否为目的地顶点,是则表示从出发顶点到目的地顶点的最短路径已求出,搜索成功退出计算;否则继续搜索。Step 106: Judging whether the vertex found in
步骤107:在顶点状态表中标记步骤4查找得到的顶点(假设编号为r)的状态为已求出最短路径。Step 107: In the vertex state table, mark the state of the vertex (assumed to be numbered r) found in
步骤108:在道路弧状态表中查找一条以编号为r的顶点为起始顶点且状态为未被访问的道路弧。Step 108: Find a road arc starting from the vertex numbered r in the road arc state table and whose state is unvisited.
步骤109:若步骤108查找不成功,说明与编号为r的顶点相连的各个道路弧都已搜索处理完毕,则转步骤4重新进入循环搜索处理其它的顶点。Step 109: If the search in
步骤110:若步骤108查找成功,得到一个道路弧(假设编号为arc),在道路弧状态表标记编号为arc道路弧的状态为已访问。Step 110: If the search is successful in
步骤111:检查编号为arc道路弧的可通行标识数据项是否为可通行,若不可通行,则放弃对编号为arc道路弧的进一步搜索处理,直接转步骤109对其它道路弧进行搜索处理。本步骤是DijkStra原型算法中不存在的,是解决转向禁止条件下获取真实的最短路径的关键。Step 111: Check whether the passable identification data item numbered as arc road arc is passable, if not passable, then give up further search processing on the road arc numbered as arc, and directly go to step 109 to search for other road arcs. This step does not exist in the DijkStra prototype algorithm, and is the key to obtain the real shortest path under the condition of turning prohibition.
步骤112:检查顶点状态表中编号为arc道路弧指向的终止顶点的状态,若其状态为已求出最短路径,直接转步骤109对其它道路弧进行处理。Step 112: Check the status of the terminal vertex whose number is pointed to by the arc road arc in the vertex status table, if the status is that the shortest path has been obtained, directly go to step 109 to process other road arcs.
步骤113:编号为arc道路弧指向的终止顶点的状态为未求出最短路径,检查顶点状态表中编号为arc道路弧的起始顶点是否可作为它指向的终止顶点的前点:编号为arc道路弧的起始顶点不可作为它指向的终止顶点的前点,应满足下列条件(1)编号为arc道路弧指向的终止顶点已有一条当前最短路径,即前点有效,当前路径长度有效;(2)编号为arc道路弧指向的终止顶点的当前路径长度小于以编号为r的顶点为前点时的路径长度;即编号为arc道路弧不在其指向的终止顶点的最短路径上。满足上述条件时,直接转入步骤109对其它道路弧进行处理。Step 113: The state of the terminal vertex pointed to by the road arc numbered arc is that the shortest path has not been found, check whether the starting vertex numbered arc road arc in the vertex state table can be used as the previous point of the terminated vertex it points to: the number is arc The starting vertex of a road arc cannot be used as the previous point of the ending vertex it points to, and the following conditions should be met: (1) There is a current shortest path at the ending vertex pointed to by the road arc numbered arc, that is, the previous point is valid, and the current path length is valid; (2) The current path length of the terminating vertex pointed to by the road arc numbered arc is less than the path length when the vertex numbered r is taken as the previous point; that is, the road arc numbered arc is not on the shortest path of the terminating vertex it points to. When the above conditions are met, go directly to step 109 to process other road arcs.
步骤114:编号为arc道路弧在其指向的终止顶点的最短路径上,编号为arc道路弧的起始顶点即编号为r的顶点应作为它指向的终止顶点的前点。更改顶点状态表中编号为arc道路弧指向的终止顶点的前点为编号为r的顶点,更改编号为arc道路弧指向的终止顶点的当前路径长度为以当前编号为r的顶点为前点时的路径长度,这个路径长度指编号为r顶点的路径长度与编号为arc道路弧长度之和;注意当进行诸如大路优先一类计算时,应依据编号为arc道路弧的道路等级对编号为arc道路弧长度进行加权,即用编号为arc道路弧的道路等级调整加权系数计算编号为arc道路弧的加权长度,按编号为arc道路弧的加权长度替代编号为arc道路弧的长度改写顶点状态表中编号为arc道路弧指向的终止顶点的当前路径长度。低等级道路加权系数均大于1,用加权系数与道路弧长度相乘得到该道路弧的加权长度,变相地将低等级道路的路径长度加长,从而在概率意义上降低将此类道路选择为最短路径的可能。最后转入步骤109重新循环对其它道路弧进行处理。Step 114: The road arc numbered arc is on the shortest path of the terminating vertex it points to, and the starting vertex of the road arc numbered arc, ie, the vertex numbered r, should be used as the previous point of the terminating vertex it points to. Change the previous point of the terminal vertex pointed to by the road arc numbered arc in the vertex state table to the vertex numbered r, and change the current path length of the terminal vertex pointed to by the road arc numbered arc to take the current vertex numbered r as the previous point This path length refers to the sum of the length of the path numbered as the r vertex and the length of the road arc numbered as arc; note that when performing calculations such as the priority of large roads, the road class numbered as arc should be based on the road level numbered as arc The length of the road arc is weighted, that is, the road grade numbered arc is used to adjust the weighting coefficient to calculate the weighted length of the road arc numbered arc, and the vertex state table is rewritten according to the weighted length of the road arc numbered arc instead of the length of the road arc numbered arc The number in the arc is the current path length of the terminal vertex pointed to by the arc road arc. The weighting coefficients of low-level roads are all greater than 1, and the weighted length of the road arc is obtained by multiplying the weighting coefficients with the length of the road arc, and the path length of the low-level roads is lengthened in a disguised form, thereby reducing the selection of such roads as the shortest in the sense of probability possible path. Finally, turn to step 109 and recycle to process other road arcs.
搜索器40搜索成功退出计算后,顶点状态表中保存了到达目的地顶点的最短路径上各个顶点的前点。搜索器40需要按顶点状态表从目的地顶点向出发顶点回溯前点,再做反序排列得到最短路径上各个顶点的具体组成。After the searcher 40 successfully exits the calculation, the previous point of each vertex on the shortest path to the destination vertex is saved in the vertex state table. The searcher 40 needs to trace back the previous point from the destination vertex to the starting vertex according to the vertex state table, and then arrange in reverse order to obtain the specific composition of each vertex on the shortest path.
搜索器40完成上述工作后,将得到的最短路径上各个顶点的具体组成数据构成道路顶点序列形式的最短导航路径数据提交给主控制器10。最后主控制器10根据搜索器40提交的最短路径顶点编号,容易从电子地图中获取到各顶点对应的位置经纬度值,及发生转向的虚拟转向弧上转向信息,按照车载设备中道路路径提示模块的要求将数据封装成一定的格式采取序列化的方式转存到收发器20中,由收发器20以无线通信的方式传递给要求导航信息的车载设备。After the searcher 40 completes the above work, it submits the obtained specific composition data of each vertex on the shortest path to form the shortest navigation path data in the form of road vertex sequence to the
为了进一步说明搜索器40在搜索处理过程中如何利用各道路顶点的转向限制特征信息进行搜索操作,请看图10所示的搜索从出发顶点1到目的地顶点5最短路径的实例。In order to further illustrate how the searcher 40 uses the steering restriction feature information of each road vertex to perform a search operation during the search process, please refer to the example of searching for the shortest path from
图10中,每个小圆圈表示一个顶点,小圆圈中的数字表示该顶点的编号;每个带箭头的线段表示一个道路弧,若一个线段用虚线画出表示该道路弧不可通行,每个线段上数值表示该道路弧长度。In Figure 10, each small circle represents a vertex, and the number in the small circle represents the number of the vertex; each line segment with an arrow represents a road arc, if a line segment is drawn with a dotted line, it means that the road arc is impassable, each The value on the line segment represents the arc length of the road.
搜索器40在完成步骤103以后,顶点状态表的具体内容如图11所示。为节省篇幅,不单独给出道路弧状态表的具体内容,请在阅读以下说明的过程中每当一个道路弧被访问之后,自行从图10中将该道路弧作个标记,以替代道路弧状态表。执行步骤104,找出存在路径(有前点、路径长度有效),但状态为未求出最短路径的顶点中路径长度最小的顶点,此时显然为顶点1,此时顶点1的最短路径可认为已计算出,执行步骤6在顶点状态表中标明顶点1的状态为已求出最短路径。两次执行步骤109到步骤114的循环,分析顶点1连接的道路弧,找到从顶点1可到达的顶点2和顶点6。由于当前顶点2和顶点6尚无路径存在,因此都能以顶点1为前点生成路径,然后顶点状态表的内容转变为图12所示。After the searcher 40 completes
返回步骤104,此次可以找到顶点6,标记其状态为已求出最短路径。两次执行步骤109到步骤114的循环,分析顶点6连接的道路弧,找到从顶点6可到达的顶点3和顶点7,顶点3和顶点7目前均无路径,因此都能以顶点6为前点分别生成路径,然后顶点状态表的内容转变为图13所示。Returning to step 104, the
继续返回步骤104,此次可以找到顶点2,标记其状态为已求出最短路径。执行步骤109,分析顶点2连接的道路弧,找到从顶点2可到达的顶点9,由于顶点2至顶点9的道路弧不可通行,因此不能以顶点2为前点生成顶点9的一条路径,于步骤111返回步骤109。分析顶点2至顶点3的道路弧,以顶点2为前点可生成顶点3的一条路径(该路径长度为顶点2的当前路径长度加上顶点2->顶点3的道路弧长度,为10),该路径长度小于以顶点6为前点的路径长度,因此必须更新顶点3目前的路径,将顶点状态表中顶点3的前点编号改为2、当前路径长度改为10。然后顶点状态表的内容转变为图14所示。Continue to return to step 104, this
继续返回步骤104,此次可以找到顶点7,标记其状态为已求出最短路径。两次执行步骤109到步骤114的循环,分析顶点7连接的道路弧,找到从顶点7可到达的顶点4和顶点8,顶点4和顶点8目前均无路径,因此能以7为前点分别生成路径。然后顶点状态表的内容转变为图15所示。Continue to return to step 104, this
返回步骤104,此次可以找到顶点3,标记其状态为已求出最短路径。执行步骤109,分析顶点3连接的道路弧,找到从顶点3可到达的顶点4,顶点4当前存在以顶点7为前点的路径(长度为20),而以顶点3为前点的路径长度为10+6=16,更短,故步骤114需要将顶点状态表中顶点4的前点编号改为3、当前路径长度改为16。然后顶点状态表的内容转变为图16所示。Returning to step 104,
执行步骤104,此次可以找到顶点8,标记其状态为已求出最短路径。执行步骤109,分析顶点8连接的道路弧,找到从顶点8可到达的顶点5,顶点5目前均无路径,可以以顶点8为起点生成一条路径,步骤114后顶点状态表的内容转变为图17所示。Execute
继续返回步骤104,此次可以找到顶点4,标记其状态为已求出最短路径。执行步骤109,分析顶点4连接的道路弧,找到从顶点4可到达的顶点5,顶点5当前存在以顶点8为前点的路径(长度为24),而以顶点4为前点的路径长度为16+2=18,更短,故步骤114需要将顶点5的前点编号更新为4,当前路径长度更新为18,然后顶点状态表的内容转变为图18所示。Continue to return to step 104, this
返回步骤104,此次可以找到顶点5,由于顶点5即为目的地顶点,因此步骤6判定从顶点1到顶点5的最短路径搜索计算完成,转到步骤107退出搜索计算。Returning to step 104,
搜索器40利用图18所示顶点状态表的内容从顶点5开始回溯前点,可得顶点5->顶点4->顶点3->顶点2->顶点1,反序即可得到所求最短路径顶点1->顶点2->顶点3->顶点4->顶点5提交给主控制器1。The searcher 40 utilizes the content of the vertex state table shown in Figure 18 to start backtracking from the
回顾图10,我们可以直观地看出,若顶点2->顶点9可以通行的话,最短路径应该为顶点1->顶点2->顶点9->顶点4->顶点5,路径长度为17。本例中顶点2->顶点9不可以通行,搜索器40得到的最短路径完全符合图10的情况。Looking back at Figure 10, we can intuitively see that if vertex 2->
以上所述,仅为本发明较佳实施例,不以此限定本发明实施的范围,依本发明的技术方案及说明书内容所作的等效变化与修饰,皆应属于本发明涵盖的范围。The above are only preferred embodiments of the present invention, and do not limit the implementation scope of the present invention. Equivalent changes and modifications made according to the technical solutions of the present invention and the contents of the description shall fall within the scope of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100444713A CN100535600C (en) | 2005-08-25 | 2005-08-25 | Device for displaying road navigation track |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100444713A CN100535600C (en) | 2005-08-25 | 2005-08-25 | Device for displaying road navigation track |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1920483A true CN1920483A (en) | 2007-02-28 |
| CN100535600C CN100535600C (en) | 2009-09-02 |
Family
ID=37778257
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100444713A Expired - Fee Related CN100535600C (en) | 2005-08-25 | 2005-08-25 | Device for displaying road navigation track |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100535600C (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101840333A (en) * | 2010-03-16 | 2010-09-22 | 中国科学院计算技术研究所 | Text description method and device for route result |
| CN101339039B (en) * | 2007-07-02 | 2012-03-07 | 佛山市顺德区顺达电脑厂有限公司 | Navigation apparatus |
| CN102506886A (en) * | 2011-11-15 | 2012-06-20 | 深圳市路畅科技有限公司 | Method for realizing path planning in navigation equipment |
| CN102506882A (en) * | 2011-10-27 | 2012-06-20 | 深圳市路畅科技有限公司 | Sequencing method for roads forming fork road in navigation system |
| CN101620803B (en) * | 2009-08-11 | 2012-08-22 | 北京四维图新科技股份有限公司 | Method and device for recording traffic restricted information on electronic map |
| CN102116639B (en) * | 2009-12-31 | 2012-11-28 | 北京四维图新科技股份有限公司 | Method and device for automatically checking traffic limit information of electronic map |
| CN101294820B (en) * | 2007-04-27 | 2013-01-02 | 爱信艾达株式会社 | Route guide system and method with intersection counting unit |
| CN104390651A (en) * | 2014-11-27 | 2015-03-04 | 武汉大学 | Shortest path mixed side node labeling method considering intersection steering limitation |
| CN106323307A (en) * | 2015-07-08 | 2017-01-11 | 高德软件有限公司 | Path searching method and device |
| CN109059949A (en) * | 2018-07-13 | 2018-12-21 | 武汉云图互联信息技术有限公司 | The calculation method and device of shortest path |
| CN111044058A (en) * | 2018-10-11 | 2020-04-21 | 北京嘀嘀无限科技发展有限公司 | Route planning method, route planning device, computer device, and storage medium |
| CN111397618A (en) * | 2020-03-10 | 2020-07-10 | 南京翱翔信息物理融合创新研究院有限公司 | A Pedestrian Navigation Method Based on Directed Labels |
| CN111462500A (en) * | 2020-04-14 | 2020-07-28 | 新石器慧通(北京)科技有限公司 | Mobile traffic command unmanned vehicle and temporary traffic command method |
| CN113503886A (en) * | 2021-06-09 | 2021-10-15 | 中国国家铁路集团有限公司 | Rapid path search optimization method under condition of large-scale complex road network |
| US20220333930A1 (en) * | 2010-02-25 | 2022-10-20 | Microsoft Technology Licensing, Llc | Map-matching for low-sampling-rate gps trajectories |
-
2005
- 2005-08-25 CN CNB2005100444713A patent/CN100535600C/en not_active Expired - Fee Related
Cited By (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101294820B (en) * | 2007-04-27 | 2013-01-02 | 爱信艾达株式会社 | Route guide system and method with intersection counting unit |
| CN101339039B (en) * | 2007-07-02 | 2012-03-07 | 佛山市顺德区顺达电脑厂有限公司 | Navigation apparatus |
| CN101620803B (en) * | 2009-08-11 | 2012-08-22 | 北京四维图新科技股份有限公司 | Method and device for recording traffic restricted information on electronic map |
| CN102116639B (en) * | 2009-12-31 | 2012-11-28 | 北京四维图新科技股份有限公司 | Method and device for automatically checking traffic limit information of electronic map |
| US12320650B2 (en) * | 2010-02-25 | 2025-06-03 | Microsoft Technology Licensing, Llc | Map-matching for low-sampling-rate GPS trajectories |
| US20220333930A1 (en) * | 2010-02-25 | 2022-10-20 | Microsoft Technology Licensing, Llc | Map-matching for low-sampling-rate gps trajectories |
| CN101840333B (en) * | 2010-03-16 | 2014-05-21 | 中国科学院计算技术研究所 | Method and device for character description of path result |
| CN101840333A (en) * | 2010-03-16 | 2010-09-22 | 中国科学院计算技术研究所 | Text description method and device for route result |
| CN102506882B (en) * | 2011-10-27 | 2015-08-26 | 深圳市路畅科技股份有限公司 | To the sort method of each road of formation fork in the road in navigational system |
| CN102506882A (en) * | 2011-10-27 | 2012-06-20 | 深圳市路畅科技有限公司 | Sequencing method for roads forming fork road in navigation system |
| CN102506886B (en) * | 2011-11-15 | 2014-03-05 | 深圳市路畅科技股份有限公司 | Method for realizing path planning in navigation equipment |
| CN102506886A (en) * | 2011-11-15 | 2012-06-20 | 深圳市路畅科技有限公司 | Method for realizing path planning in navigation equipment |
| CN104390651A (en) * | 2014-11-27 | 2015-03-04 | 武汉大学 | Shortest path mixed side node labeling method considering intersection steering limitation |
| CN106323307A (en) * | 2015-07-08 | 2017-01-11 | 高德软件有限公司 | Path searching method and device |
| CN106323307B (en) * | 2015-07-08 | 2019-05-07 | 高德软件有限公司 | A kind of path searching method and device |
| CN109059949A (en) * | 2018-07-13 | 2018-12-21 | 武汉云图互联信息技术有限公司 | The calculation method and device of shortest path |
| CN111044058A (en) * | 2018-10-11 | 2020-04-21 | 北京嘀嘀无限科技发展有限公司 | Route planning method, route planning device, computer device, and storage medium |
| CN111397618A (en) * | 2020-03-10 | 2020-07-10 | 南京翱翔信息物理融合创新研究院有限公司 | A Pedestrian Navigation Method Based on Directed Labels |
| CN111462500A (en) * | 2020-04-14 | 2020-07-28 | 新石器慧通(北京)科技有限公司 | Mobile traffic command unmanned vehicle and temporary traffic command method |
| CN111462500B (en) * | 2020-04-14 | 2022-03-01 | 新石器慧通(北京)科技有限公司 | Mobile traffic command unmanned vehicle and temporary traffic command method |
| CN113503886A (en) * | 2021-06-09 | 2021-10-15 | 中国国家铁路集团有限公司 | Rapid path search optimization method under condition of large-scale complex road network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100535600C (en) | 2009-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1920483A (en) | Device for displaying road navigation track | |
| CN113405558B (en) | Method for constructing autonomous driving map and related device | |
| CN111272180B (en) | Method and apparatus for estimating a location on a map | |
| CN103292816B (en) | Electronic map generating method, device and paths planning method, device | |
| US20190265063A1 (en) | Navigation based on vehicle dimensions | |
| EP2907051B1 (en) | Map update scripts with tree edit operations | |
| US10733484B2 (en) | Method, apparatus, and system for dynamic adaptation of an in-vehicle feature detector | |
| US20120016582A1 (en) | System and method for efficient routing on a network in the presence of multiple-edge restrictions and other constraints | |
| CN1431467A (en) | Pilot device and map information storage medium and crosspoint information providing method | |
| JPH11311523A (en) | Navigation apparatus for vehicle | |
| EP3400421A1 (en) | Componentized junction models | |
| CN1892181A (en) | Data structure, information generating device, information generating method and navigation equipment | |
| Goodchild | GIScience for a driverless age | |
| JP2016133328A (en) | Route search system and computer program | |
| CN1641710A (en) | Navigation apparatus | |
| CN114234986A (en) | Map data processing method and device | |
| CN1737876A (en) | Navigation device, method and programme for guiding way | |
| CN117191064A (en) | Vehicle control method and device, vehicle and storage medium | |
| CN1247960C (en) | Navigation device | |
| JP2019197453A (en) | Information processing device | |
| CN109059946A (en) | Vehicle route acquisition methods, storage medium and electronic equipment | |
| CN1977296A (en) | Display control device, display method, program for display control, information recording medium, and recording medium | |
| CN1530634A (en) | Simple navigation method and system | |
| CN116373848A (en) | Method, device, vehicle and storage medium for optimizing parking route | |
| CN100339682C (en) | Simple car navigation method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090902 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |