[go: up one dir, main page]

CN108985506A - Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device - Google Patents

Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device Download PDF

Info

Publication number
CN108985506A
CN108985506A CN201810719455.7A CN201810719455A CN108985506A CN 108985506 A CN108985506 A CN 108985506A CN 201810719455 A CN201810719455 A CN 201810719455A CN 108985506 A CN108985506 A CN 108985506A
Authority
CN
China
Prior art keywords
time
sub
path
paths
driving
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.)
Pending
Application number
CN201810719455.7A
Other languages
Chinese (zh)
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.)
NIO Holding Co Ltd
Original Assignee
NIO Nextev 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 NIO Nextev Ltd filed Critical NIO Nextev Ltd
Priority to CN201810719455.7A priority Critical patent/CN108985506A/en
Publication of CN108985506A publication Critical patent/CN108985506A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Navigation (AREA)

Abstract

The invention provides a driving path recommendation method, a prediction method, an acquisition method and a device thereof, wherein the recommendation method comprises the following steps: the client generates request information according to an input instruction and sends the request information to the server, wherein the request information comprises information of a starting point, information of an end point and specified time; the server receives the request information, and calculates a recommendation result according to the request information and by using the alternative paths comprising the plurality of sub-paths and the standard time of each sub-path, wherein the recommendation result comprises the shortest driving time and a target path in the specified time, and the target path is the alternative path corresponding to the shortest driving time; the server sends the recommendation result to the client; and the client receives the recommendation result and selectively displays the recommendation result. The invention can improve the accuracy of predicting the driving time, is convenient for a user to reach the terminal point in the shortest time, avoids the problem of traffic jam as much as possible, and is beneficial to better travel arrangement of people.

Description

行车路径推荐方法、预测方法、获取方法及其装置Driving route recommendation method, prediction method, acquisition method and device thereof

技术领域technical field

本发明属于行车路线预测技术领域,具体提供一种行车路径推荐方法、预测方法、获取方法及其装置。The invention belongs to the technical field of driving route prediction, and specifically provides a driving route recommendation method, a prediction method, an acquisition method and a device thereof.

背景技术Background technique

出行是人们的日常活动之一,在出行之前,人们可以通过查询出行服务系统进行查询,以便于对出行时间及活动做出规划。预计到达时间(Estimated Time of Arrival,ETA)对于一些出行服务系统来说至关重要的,这是因为,精准的ETA预测能够有效的支持任务、资源、人员的调度,使得系统能够更优化的执行。目前,关于ETA的服务基本上分为两类:第一、实时ETA服务,基于当前的交通状况,天气等信息,给出指定行驶路径需要花费的时间;第二、预测ETA服务,该服务基于历史行车路线,在相同周几、相同的时段以及相同的开始位置和结束位置条件下,利用历史行车轨迹中的ETA当作预测结果。Traveling is one of people's daily activities. Before traveling, people can query the travel service system in order to plan travel time and activities. The estimated time of arrival (Estimated Time of Arrival, ETA) is crucial for some travel service systems, because accurate ETA prediction can effectively support the scheduling of tasks, resources, and personnel, enabling the system to perform more optimally . At present, the services about ETA are basically divided into two categories: first, real-time ETA service, based on current traffic conditions, weather and other information, giving the time it takes to specify a driving route; second, predictive ETA service, which is based on For the historical driving route, under the same day of the week, the same time period, and the same starting position and ending position, the ETA in the historical driving trajectory is used as the prediction result.

对于实时ETA服务来说,由于未来某一时段的调度服务都是基于对该时段的预测来执行的,因此,实时ETA服务难以执行上述调度服务;而对于预测ETA服务来说,在相同起点、相同终点及相同时段的条件下,历史轨迹的数据往往是非常稀疏的,因此,并不能很好地给出一个准确的结果。For the real-time ETA service, because the scheduling service for a certain period in the future is performed based on the forecast of this period, it is difficult for the real-time ETA service to perform the above-mentioned scheduling service; and for the forecast ETA service, at the same starting point, Under the conditions of the same end point and the same period of time, the data of the historical trajectory is often very sparse, so it cannot give an accurate result very well.

相应地,本领域需要一种能够准确预测规定条件下的ETA的方法来解决上述问题。Correspondingly, there is a need in the art for a method capable of accurately predicting ETA under specified conditions to solve the above problems.

发明内容Contents of the invention

为了解决现有技术中的上述问题,即为了解决现有技术中预测未来行车时间精度较低的问题,本发明提供了一种行车路径推荐方法,包括:客户端根据输入的指令生成请求信息,并将所述请求信息发送至服务器,其中,所述请求信息包括起点信息、终点信息和指定时间;所述服务器接收所述请求信息,并根据所述请求信息,利用包括至少两个子路径的备选路径和每个所述子路径的标准时间,计算推荐结果,所述推荐结果包括所述指定时间下的最短行车时间及目标路径,所述目标路径为所述最短行车时间所对应的备选路径;所述服务器将所述推荐结果发送至所述客户端;所述客户端接收所述推荐结果,并选择性地对所述推荐结果进行展示。In order to solve the above problems in the prior art, that is, in order to solve the problem of low accuracy in predicting future driving time in the prior art, the present invention provides a driving route recommendation method, which includes: the client generates request information according to the input instructions, and sending the request information to a server, wherein the request information includes starting point information, end point information, and specified time; the server receives the request information, and according to the request information, utilizes a backup path that includes at least two sub-paths Select the route and the standard time of each sub-route, calculate the recommendation result, the recommendation result includes the shortest travel time and the target route under the specified time, and the target route is the alternative corresponding to the shortest travel time path; the server sends the recommendation result to the client; the client receives the recommendation result and selectively displays the recommendation result.

在上述推荐方法的优选技术方案中,“利用包括多个子路径的备选路径和每个所述子路径的标准时间计算推荐结果”的步骤包括:从预建立的路网数据库中调取路网图像,所述路网图像包括多个节点以及连接相邻节点的所述子路径;选择距离所述起点最近的节点作为第一节点,选择距离所述终点最近的节点作为第二节点,并生成至少一个备选路径,所述备选路径以所述第一节点和所述第二节点为端点且由至少两个所述子路径顺次连接构成;从预建立的历史数据库中调取目标数据,所述目标数据包括与所述指定时间具有同一时间属性的每个所述子路径的标准时间,所述时间属性是指该时间在一周中所处的某一天中的某一时段;将每个所述备选路径中的每个所述子路径的所述标准时间进行求和,以计算出每条所述备选路径的行车时间,并对每个所述行车时间进行比较以获得所述最短行车时间,将所述最短行车时间所对应的备选路径作为所述目标路径;生成所述推荐结果,所述推荐结果包括所述最短行车时间和所述目标路径。In the preferred technical solution of the above-mentioned recommendation method, the step of "calculating the recommendation result by using the alternative routes including multiple sub-paths and the standard time of each of the sub-paths" includes: fetching the road network from the pre-established road network database Image, the road network image includes a plurality of nodes and the sub-paths connecting adjacent nodes; select the node closest to the starting point as the first node, select the node closest to the end point as the second node, and generate At least one alternative path, the alternative path takes the first node and the second node as endpoints and is composed of at least two sub-paths sequentially connected; the target data is retrieved from a pre-established historical database , the target data includes the standard time of each of the sub-paths having the same time attribute as the specified time, and the time attribute refers to a certain period of time in a certain day in a week; sum the standard times of each of the sub-paths in each of the alternative routes to calculate the travel time of each of the alternative routes, and compare each of the travel times to obtain the The shortest driving time, using the alternative route corresponding to the shortest driving time as the target route; generating the recommendation result, the recommendation result including the shortest driving time and the target route.

在上述推荐方法的优选技术方案中,采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法生成所述备选路径。In the preferred technical solution of the above recommendation method, the candidate path is generated by using Dijkstra algorithm, bi-directional Dijkstra algorithm or Astar algorithm.

在上述推荐方法的优选技术方案中,所述推荐结果还包括非目标路径,所述非目标路径的行车时间按照升序进行排列。In the preferred technical solution of the above recommendation method, the recommendation result further includes non-target routes, and the travel time of the non-target routes is arranged in ascending order.

在上述推荐方法的优选技术方案中,建立所述路网数据库的操作具体为:获取原始图像,所述原始图像包括多条历史行车路径;利用所述节点将所述原始图像中的每一条历史行车路径划分为至少两个所述子路径;提取所述节点和所述子路径以形成所述路网图像,并对所述路网图像进行存储以建立所述路网数据库。In the preferred technical solution of the above recommendation method, the operation of establishing the road network database is as follows: acquiring an original image, the original image including a plurality of historical driving paths; The driving route is divided into at least two sub-paths; the nodes and the sub-paths are extracted to form the road network image, and the road network image is stored to establish the road network database.

在上述推荐方法的优选技术方案中,建立所述历史数据库的操作具体为:获取历史行车数据,所述历史行车数据包括历史行车时间,所述历史行车时间为通过所述子路径的实际时间;对同一时间属性下的同一子路径的所述历史行车时间进行加权平均计算,以获得子时间,并利用所述子时间求得所述标准时间;将所述标准时间按照所述时间属性进行分类并储存,以建立所述历史数据库。In the preferred technical solution of the above recommendation method, the operation of establishing the historical database is specifically: acquiring historical driving data, the historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-path; Carry out weighted average calculation of the historical driving time of the same sub-path under the same time attribute to obtain the sub-time, and use the sub-time to obtain the standard time; classify the standard time according to the time attribute And store it to build the historical database.

在上述推荐方法的优选技术方案中,所述行车路径推荐方法还包括:所述服务器获取天气预报信息,所述天气预报信息包括所述指定时间的天气属性;所述目标数据与所述指定时间具有相同的天气属性。In the preferred technical solution of the above recommendation method, the driving route recommendation method further includes: the server obtains weather forecast information, and the weather forecast information includes the weather attributes at the specified time; the target data and the specified time have the same weather properties.

在上述推荐方法的优选技术方案中,“建立所述历史数据库”的操作还包括:在获得所述标准时间后及对所述标准时间进行储存之前,将所述标准时间按照所述天气属性进行分类。In the preferred technical solution of the above recommended method, the operation of "establishing the historical database" further includes: after obtaining the standard time and before storing the standard time, setting the standard time according to the weather attribute Classification.

在上述推荐方法的优选技术方案中,所述历史数据库为基于分布式文件存储的数据库。In the preferred technical solution of the above recommended method, the historical database is a database based on distributed file storage.

在上述推荐方法的优选技术方案中,所述子路径包括第一子路径,所述第一子路径为在一个所述时间属性下仅被包括在一条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:以所述第一子路径的子时间作为所述第一子路径的标准时间。In the preferred technical solution of the above recommendation method, the sub-path includes a first sub-path, and the first sub-path is a sub-path that is only included in one of the candidate paths under one of the time attributes, " The step of using the sub-time to obtain the "standard time" includes: using the sub-time of the first sub-path as the standard time of the first sub-path.

在上述推荐方法的优选技术方案中,所述子路径包括第二子路径,所述第二子路径为在一个所述时间属性下被包括在至少两条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:对所述第二子路径在每条所述备选路径中的子时间进行加权平均,以计算所述第二子路径的标准时间。In the preferred technical solution of the above recommendation method, the sub-path includes a second sub-path, and the second sub-path is a sub-path included in at least two of the candidate paths under one of the time attributes, The step of "obtaining the standard time by using the sub-time" includes: performing a weighted average of the sub-times of the second sub-path in each of the candidate paths to calculate the standard time of the second sub-path time.

在上述推荐方法的优选技术方案中,所述至少两个子路径包括至少一个第三子路径,所述第三子路径在至少一个所述时间属性下没有所述历史行车时间,“利用所述子时间求得所述标准时间”的步骤包括:以无穷大作为所述第三子路径在所述至少一个所述时间属性下的所述标准时间;或者计算出其他各所述时间属性下的所述第三子路径的所述标准时的平均值,并将所述平均值作为所述第三子路径的所述标准时间。In the preferred technical solution of the above recommended method, the at least two sub-paths include at least one third sub-route, and the third sub-route does not have the historical driving time under at least one of the time attributes, "using the sub-path The step of obtaining the standard time" includes: taking infinity as the standard time of the third sub-path under the at least one time attribute; or calculating the time under the other time attributes The average value of the standard time of the third sub-path, and use the average value as the standard time of the third sub-path.

在上述推荐方法的优选技术方案中,“客户端根据输入的指令生成请求信息”的步骤包括:获取输入的指令,所述指令包括起点位置、终点位置及所述指定时间;所述客户端利用全球定位系统获取所述起点位置的GPS信息作为所述起点信息,获取所述终点的GPS信息作为所述终点信息;所述客户端利用所述起点信息、所述终点信息和所述指定时间生成所述请求信息。In the preferred technical solution of the above recommendation method, the step of "the client generates request information according to the input instruction" includes: obtaining the input instruction, the instruction includes the start position, the end position and the specified time; the client uses The global positioning system obtains the GPS information of the starting point position as the starting point information, and obtains the GPS information of the ending point as the ending point information; the client uses the starting point information, the ending point information and the specified time to generate The requested information.

在上述推荐方法的优选技术方案中,所述客户端为移动终端或者车载终端。In the preferred technical solution of the above recommendation method, the client is a mobile terminal or a vehicle-mounted terminal.

在另一个方面,本发明提供一种行车路径预测方法,包括:接收请求信息,所述请求信息包括起点信息、终点信息和指定时间;根据所述请求信息,利用包括至少两个子路径的备选路径和每个所述子路径的标准时间,计算推荐结果,其中,所述推荐结果包括所述指定时间下的最短行车时间和目标路径,所述目标路径为所述最短行车时间所对应的备选路径;将所述推荐结果发送至客户端。In another aspect, the present invention provides a method for predicting a driving route, including: receiving request information, the request information including starting point information, end point information, and specified time; route and the standard time of each sub-route, and calculate the recommendation result, wherein the recommendation result includes the shortest travel time and the target route under the specified time, and the target route is the backup corresponding to the shortest travel time Selecting a path; sending the recommendation result to the client.

在上述预测方法的优选技术方案中,“利用包括至少两个子路径的备选路径和每个所述子路径的标准时间计算推荐结果”的步骤包括:从预建立的路网数据库中调取路网图像,所述路网图像包括多个节点以及连接所述节点的子路径;选择距离所述起点最近的节点作为第一节点,选择距离所述终点最近的节点作为第二节点,并生成多个备选路径,所述备选路径以所述第一节点和所述第二节点为端点且由至少两个所述子路径顺次连接构成;从预建立的历史数据库中调取目标数据,所述目标数据包括与所述指定时间具有同一时间属性的每个所述子路径的标准时间,所述时间属性是指该时间在一周中所处的某一天中的某一时段;将每个所述备选路径中的每个所述子路径的标准时间进行求和,以计算出每条所述备选路径的行车时间,并对每个所述行车时间进行比较以获得所述最短行车时间,将所述最短行车时间所对应的备选路径作为所述目标路径;生成所述推荐结果,所述推荐结果包括所述最短行车时间和所述目标路径。In the preferred technical solution of the above-mentioned prediction method, the step of "computing the recommended result by using the alternative route comprising at least two sub-paths and the standard time of each of the sub-paths" includes: fetching the route from the pre-established road network database Network image, the road network image includes a plurality of nodes and sub-paths connecting the nodes; select the node closest to the starting point as the first node, select the node closest to the end point as the second node, and generate multiple an alternative path, the alternative path takes the first node and the second node as endpoints and is composed of at least two sub-paths sequentially connected; the target data is retrieved from a pre-established historical database, The target data includes the standard time of each of the sub-paths having the same time attribute as the specified time, and the time attribute refers to a certain period of time in a certain day in a week; summing the standard times of each of the sub-paths in the candidate routes to calculate the travel time of each of the candidate routes, and comparing each of the travel times to obtain the shortest travel time Time, using the alternative route corresponding to the shortest driving time as the target route; generating the recommendation result, the recommendation result including the shortest driving time and the target route.

在上述预测方法的优选技术方案中,采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法生成所述备选路径。In the preferred technical solution of the above prediction method, the candidate path is generated by using Dijkstra algorithm, bi-directional Dijkstra algorithm or Astar algorithm.

在上述预测方法的优选技术方案中,所述推荐结果还包括非目标路径,所述非目标路径的行车时间按照升序进行排列。In the preferred technical solution of the above prediction method, the recommendation result further includes non-target routes, and the travel time of the non-target routes is arranged in ascending order.

在上述预测方法的优选技术方案中,建立所述路网数据库的操作具体为:获取原始图像,所述原始图像包括多条历史行车路径;利用所述节点将所述原始图像中的每一条历史行车路径划分为至少两个所述子路径;提取所述节点和所述子路径以形成所述路网图像,并对所述路网图像进行存储以建立所述路网数据库。In the preferred technical solution of the above prediction method, the operation of establishing the road network database is specifically: acquiring an original image, the original image including multiple historical driving paths; The driving route is divided into at least two sub-paths; the nodes and the sub-paths are extracted to form the road network image, and the road network image is stored to establish the road network database.

在上述预测方法的优选技术方案中,建立所述历史数据库的操作具体为:获取历史行车数据,所述历史行车数据包括历史行车时间,所述历史行车时间为通过所述子路径的实际时间;对同一所述时间属性下的同一所述子路径的所述历史行车时间进行加权平均计算,以获得子时间,并利用所述子时间求得所述标准时间;将所述标准时间按照所述时间属性进行分类并储存,以建立所述历史数据库。In the preferred technical solution of the above prediction method, the operation of establishing the historical database is specifically: acquiring historical driving data, the historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-path; Carry out weighted average calculation to the described historical driving time of the same described sub-path under the same described time attribute, obtain sub-time, and use described sub-time to obtain described standard time; Described standard time according to described Time attributes are categorized and stored to create the historical database.

在上述预测方法的优选技术方案中,所述行车路径预测方法还包括:获取天气预报信息,所述天气预报信息包括所述指定时间的天气属性,其中,所述目标数据与所述指定时间具有相同的天气属性。In the preferred technical solution of the above prediction method, the driving route prediction method further includes: obtaining weather forecast information, the weather forecast information includes the weather attributes at the specified time, wherein the target data has the same relationship with the specified time Same weather properties.

在上述预测方法的优选技术方案中,“建立所述历史数据库”的操作还包括:在获得所述标准时间后及对所述标准时间进行储存之前,将所述标准时间按照天气属性进行分类。In the preferred technical solution of the above prediction method, the operation of "establishing the historical database" further includes: after obtaining the standard time and before storing the standard time, classifying the standard time according to weather attributes.

在上述预测方法的优选技术方案中,所述历史数据库为分布式文件存储数据库。In a preferred technical solution of the above prediction method, the historical database is a distributed file storage database.

在上述预测方法的优选技术方案中,所述子路径包括第一子路径,所述第一子路径为在一个所述时间属性下仅被包括在一条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:以所述第一子路径的子时间作为所述第一子路径的标准时间。In the preferred technical solution of the above prediction method, the sub-path includes a first sub-path, and the first sub-path is a sub-path that is only included in one of the candidate paths under one of the time attributes, " The step of using the sub-time to obtain the "standard time" includes: using the sub-time of the first sub-path as the standard time of the first sub-path.

在上述预测方法的优选技术方案中,所述子路径包括第二子路径,所述第二子路径为在一个所述时间属性下被包括在至少两条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:对所述第二子路径在每条所述备选路径中的子时间进行加权平均,以计算所述第二子路径的标准时间。In the preferred technical solution of the above prediction method, the sub-path includes a second sub-path, and the second sub-path is a sub-path included in at least two of the candidate paths under one of the time attributes, The step of "obtaining the standard time by using the sub-time" includes: performing a weighted average of the sub-times of the second sub-path in each of the candidate paths to calculate the standard time of the second sub-path time.

在上述预测方法的优选技术方案中,所述至少两个子路径包括至少一个第三子路径,所述第三子路径在至少一个所述时间属性下没有所述历史行车时间,“利用所述子时间求得所述标准时间”具体为:以无穷大作为所述第三子路径在所述至少一个所述时间属性下的所述标准时间;或者,计算出其他各所述时间属性下的所述第三子路径的所述标准时的平均值,并将所述平均值作为所述第三子路径的所述标准时间。In the preferred technical solution of the above prediction method, the at least two sub-paths include at least one third sub-path, and the third sub-path does not have the historical driving time under at least one of the time attributes, "using the sub-path The time to obtain the standard time" is specifically: taking infinity as the standard time of the third sub-path under the at least one time attribute; or, calculating the time under the other time attributes The average value of the standard time of the third sub-path, and use the average value as the standard time of the third sub-path.

在又一个方面,本发明提供了一种行车路径获取方法,包括:根据输入的指令生成请求信息,其中,所述请求信息包括起点信息、终点信息和指定时间;将所述请求信息发送至服务器;接收推荐结果,并选择性地对所述推荐结果进行展示。In yet another aspect, the present invention provides a method for obtaining a driving route, comprising: generating request information according to an input instruction, wherein the request information includes starting point information, end point information, and specified time; sending the request information to a server ; Receive recommendation results, and selectively display the recommendation results.

在上述获取方法的优选技术方案中,“根据输入的指令生成请求信息”的步骤包括:获取输入的指令,所述指令包括起点位置、终点位置及所述指定时间;利用全球定位系统获取所述起点位置的GPS信息作为所述起点的信息,获取所述终点的GPS信息作为所述终点信息;利用所述起点信息、所述终点信息和所述指定时间生成所述请求信息。In the preferred technical solution of the above obtaining method, the step of "generating request information according to the input instruction" includes: obtaining the input instruction, the instruction includes the start position, the end position and the specified time; using the global positioning system to obtain the The GPS information of the starting point is used as the starting point information, and the GPS information of the ending point is obtained as the ending point information; the request information is generated by using the starting point information, the ending point information and the designated time.

在再一个方面,本发明提供了一种服务器,所述服务器包括处理器和存储器,所述存储器中存储有多条指令,所述处理器适于加载所述指令以执行上述任一所述的行车路径预测方法。In yet another aspect, the present invention provides a server, the server includes a processor and a memory, a plurality of instructions are stored in the memory, and the processor is adapted to load the instructions to perform any of the above-mentioned Driving path prediction method.

在另又一个方面,本发明提供了一种客户端,所述客户端包括处理器和存储器,所述存储器中存储有多条指令,所述处理器适于加载所述指令以执行上述任一所述的行车路径获取方法。In yet another aspect, the present invention provides a client, the client includes a processor and a memory, a plurality of instructions are stored in the memory, and the processor is adapted to load the instructions to perform any of the above-mentioned The method for obtaining the driving route.

在上述客户端的优选技术方案中,所述客户端为移动终端或者车载终端。In the preferred technical solution of the above client, the client is a mobile terminal or a vehicle-mounted terminal.

本领域技术人员能够理解的是,在本发明的技术方案中,利用包括多个子路径的备选路径和每个子路径的标准时间,计算出各备选路径的行车时间,能够有效提高预测行车时间的精确度,使用户能够根据推荐的路径出行,以最短的时间到达终点,能够尽可能地避免堵车问题,有利于人们更好地进行出行安排;同时,本发明的技术方案也可以用于为提供查新服务的机构提供预测信息,以便于提供查新服务的机构能够更好地对行车需求进行调度。Those skilled in the art can understand that, in the technical solution of the present invention, use the alternative routes including multiple sub-paths and the standard time of each sub-path to calculate the travel time of each alternative route, which can effectively improve the predicted travel time. The accuracy enables the user to travel according to the recommended route, arrive at the destination in the shortest time, avoid traffic jams as much as possible, and help people make better travel arrangements; at the same time, the technical solution of the present invention can also be used for Organizations that provide novelty check services provide forecast information so that agencies that provide novelty check services can better schedule traffic demands.

方案1、一种行车路径推荐方法,其特征在于包括:Option 1, a driving route recommendation method, is characterized in that comprising:

客户端根据输入的指令生成请求信息,并将所述请求信息发送至服务器,其中,所述请求信息包括起点信息、终点信息和指定时间;The client generates request information according to the input instruction, and sends the request information to the server, wherein the request information includes start point information, end point information and designated time;

所述服务器接收所述请求信息,并根据所述请求信息,利用包括至少两个子路径的备选路径和每个所述子路径的标准时间计算推荐结果,所述推荐结果包括所述指定时间下的最短行车时间及目标路径,所述目标路径为所述最短行车时间所对应的备选路径;The server receives the request information, and according to the request information, calculates a recommendation result using an alternative path including at least two sub-paths and a standard time of each of the sub-paths, and the recommendation result includes The shortest travel time and the target route, the target route is the alternative route corresponding to the shortest travel time;

所述服务器将所述推荐结果发送至所述客户端;The server sends the recommendation result to the client;

所述客户端接收所述推荐结果,并选择性地对所述推荐结果进行展示。The client receives the recommendation result, and selectively displays the recommendation result.

方案2、根据方案1所述的行车路径推荐方法,其特征在于,“利用包括多个子路径的备选路径和每个所述子路径的标准时间计算推荐结果”的步骤包括:Scheme 2, according to the driving route recommendation method described in scheme 1, it is characterized in that the step of "calculating the recommendation result using the alternative route comprising a plurality of sub-paths and the standard time of each said sub-path" includes:

从预建立的路网数据库中调取路网图像,所述路网图像包括多个节点以及连接相邻节点的所述子路径;Retrieving a road network image from a pre-established road network database, the road network image including a plurality of nodes and the sub-paths connecting adjacent nodes;

选择距离所述起点最近的节点作为第一节点,选择距离所述终点最近的节点作为第二节点,并生成至少一个备选路径,所述备选路径以所述第一节点和所述第二节点为端点且由至少两个所述子路径顺次连接构成;Selecting the node closest to the starting point as the first node, selecting the node closest to the end point as the second node, and generating at least one alternative path, the alternative path is based on the first node and the second node The node is an endpoint and is composed of at least two sub-paths connected in sequence;

从预建立的历史数据库中调取目标数据,所述目标数据为与所述指定时间具有同一时间属性的每个所述子路径的标准时间,所述时间属性是指该时间在一周中所处的某一天中的某一时段;Call the target data from the pre-established historical database, the target data is the standard time of each sub-path with the same time attribute as the specified time, the time attribute refers to the time in a week a certain period of time in a certain day;

将每个所述备选路径中的每个所述子路径的标准时间进行求和,以计算出每条所述备选路径的行车时间,并对每个所述行车时间进行比较以获得所述最短行车时间,将所述最短行车时间所对应的备选路径作为所述目标路径;Summing the standard times of each of the sub-paths in each of the candidate routes to calculate the travel time of each of the candidate routes, and comparing each of the travel times to obtain the The shortest travel time, the alternative route corresponding to the shortest travel time as the target route;

生成所述推荐结果,所述推荐结果包括所述最短行车时间和所述目标路径。The recommendation result is generated, and the recommendation result includes the shortest driving time and the target route.

方案3、根据方案2所述的行车路径推荐方法,其特征在于,采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法生成所述备选路径。Scheme 3. The driving route recommendation method according to scheme 2, characterized in that the alternative route is generated using Dijkstra algorithm, bi-directional Dijkstra algorithm or Astar algorithm.

方案4、根据方案3所述的行车路径推荐方法,其特征在于,所述推荐结果还包括非目标路径,所述非目标路径的行车时间按照升序进行排列。Solution 4. The driving route recommendation method according to solution 3, wherein the recommendation result further includes non-target routes, and the driving time of the non-target routes is arranged in ascending order.

方案5、根据方案2所述的行车路径推荐方法,其特征在于,建立所述路网数据库的操作具体为:Scheme 5, according to the driving route recommendation method described in Scheme 2, it is characterized in that, the operation of establishing the road network database is specifically:

获取原始图像,所述原始图像包括多条历史行车路径;Acquiring an original image, the original image includes a plurality of historical driving paths;

利用所述节点将所述原始图像中的每一条历史行车路径划分为至少两个所述子路径;dividing each historical driving path in the original image into at least two sub-paths by using the nodes;

提取所述节点和所述子路径以形成所述路网图像,并对所述路网图像进行存储以建立所述路网数据库。Extracting the nodes and the sub-paths to form the road network image, and storing the road network image to establish the road network database.

方案6、根据方案5所述的行车路径推荐方法,其特征在于,建立所述历史数据库的操作具体为:Scheme 6, according to the driving route recommendation method described in Scheme 5, it is characterized in that the operation of establishing the historical database is specifically:

获取历史行车数据,所述历史行车数据包括历史行车时间,所述历史行车时间为通过所述子路径的实际时间;Acquiring historical driving data, the historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-path;

对同一时间属性下的同一所述子路径的历史行车时间进行加权平均计算,以获得子时间,并利用所述子时间求得所述标准时间;Performing weighted average calculation on the historical travel time of the same sub-path under the same time attribute to obtain the sub-time, and using the sub-time to obtain the standard time;

将所述标准时间按照所述时间属性进行分类并储存,以建立所述历史数据库。The standard time is classified and stored according to the time attribute, so as to establish the historical database.

方案7、根据方案6所述的行车路径推荐方法,其特征在于,所述行车路径推荐方法还包括:所述服务器获取天气预报信息,所述天气预报信息包括所述指定时间的天气属性,其中,所述目标数据与所述指定时间具有相同的天气属性。Solution 7. The driving route recommendation method according to solution 6, wherein the driving route recommendation method further includes: the server obtains weather forecast information, and the weather forecast information includes the weather attributes at the specified time, wherein , the target data has the same weather attribute as the specified time.

方案8、根据方案7所述的行车路径推荐方法,其特征在于,“建立所述历史数据库”的操作还包括:在获得所述标准时间后及对所述标准时间进行储存之前,将所述标准时间按照所述天气属性进行分类。Solution 8. The driving route recommendation method according to solution 7, characterized in that the operation of "establishing the historical database" also includes: after obtaining the standard time and before storing the standard time, storing the Standard times are categorized by the weather attributes described.

方案9、根据方案6-8中任一项所述的行车路径推荐方法,其特征在于,所述历史数据库为基于分布式文件存储的数据库。Solution 9. The driving route recommendation method according to any one of solutions 6-8, wherein the historical database is a database based on distributed file storage.

方案10、根据方案6-8中任一项所述的行车路径推荐方法,其特征在于,至少两个所述子路径包括第一子路径,所述第一子路径为在一个所述时间属性下仅被包括在一条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:以所述第一子路径的子时间作为所述第一子路径的标准时间。Solution 10. The driving route recommendation method according to any one of solutions 6-8, characterized in that at least two of the sub-paths include a first sub-path, and the first sub-path is the time attribute For sub-paths that are only included in one of the alternative paths, the step of "using the sub-time to obtain the standard time" includes: using the sub-time of the first sub-path as the first sub-path standard time.

方案11、根据方案6-8中任一项所述的行车路径推荐方法,其特征在于,至少两个所述子路径包括第二子路径,所述第二子路径为在一个所述时间属性下被包括在至少两条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:对所述第二子路径在每条所述备选路径中的子时间进行加权平均,以计算所述第二子路径的标准时间。Solution 11. The driving route recommendation method according to any one of solutions 6-8, characterized in that at least two of the sub-paths include a second sub-path, and the second sub-path is at one of the time attributes Under the sub-paths included in at least two of the candidate paths, the step of "using the sub-time to obtain the standard time" includes: for the second sub-path in each of the candidate paths The weighted average of the sub-times is performed to calculate the standard time of the second sub-path.

方案12、根据方案6-8中任一项所述的行车路径推荐方法,其特征在于,所述两个子路径包括第三子路径,所述第三子路径在至少一个所述时间属性下没有所述历史行车时间,“利用所述子时间求得所述标准时间”的步骤包括:以无穷大作为所述第三子路径在所述至少一个所述时间属性下的所述标准时间;或者,计算出其他各所述时间属性下的所述第三子路径的所述标准时的平均值,并将所述平均值作为所述第三子路径的所述标准时间。Solution 12. The driving route recommendation method according to any one of solutions 6-8, characterized in that, the two sub-paths include a third sub-path, and the third sub-path has no The step of "using the sub-time to obtain the standard time" for the historical driving time includes: taking infinity as the standard time of the third sub-path under the at least one time attribute; or, Calculate the average value of the standard time of the third sub-path under each of the other time attributes, and use the average value as the standard time of the third sub-path.

方案13、根据方案1所述的行车路径推荐方法,其特征在于,“客户端根据输入的指令生成请求信息”的步骤包括:Scheme 13. According to the driving route recommendation method described in Scheme 1, the step of "the client generates request information according to the input instruction" includes:

获取输入的指令,所述指令包括起点位置、终点位置及所述指定时间;Obtaining an input instruction, the instruction including the start position, the end position and the specified time;

所述客户端利用全球定位系统获取所述起点位置的GPS信息作为所述起点信息,获取所述终点的GPS信息作为所述终点信息;The client uses the Global Positioning System to obtain the GPS information of the starting point as the starting point information, and obtains the GPS information of the ending point as the ending point information;

所述客户端利用所述起点信息、所述终点信息和所述指定时间生成所述请求信息。The client generates the request information by using the starting point information, the ending point information and the specified time.

方案14、根据方案1所述的行车路径推荐方法,其特征在于,所述客户端为移动终端或者车载终端。Solution 14. The driving route recommendation method according to solution 1, wherein the client is a mobile terminal or a vehicle-mounted terminal.

方案15、一种行车路径预测方法,其特征在于包括:Scheme 15, a driving route prediction method, is characterized in that comprising:

接收请求信息,所述请求信息包括起点信息、终点信息和指定时间;receiving request information, the request information including starting point information, end point information and designated time;

根据所述请求信息,利用包括至少两个子路径的备选路径和每个所述子路径的标准时间计算推荐结果,其中,所述推荐结果包括所述指定时间下的最短行车时间和目标路径,所述目标路径为所述最短行车时间所对应的备选路径;According to the request information, a recommendation result is calculated by using an alternative route including at least two sub-routes and a standard time for each of the sub-routes, wherein the recommendation result includes the shortest travel time and a target route under the specified time, The target route is an alternative route corresponding to the shortest driving time;

将所述推荐结果发送至客户端。Send the recommendation result to the client.

方案16、根据方案15所述的行车路径预测方法,其特征在于,“利用包括至少两个子路径的备选路径和每个所述子路径的标准时间计算推荐结果”的步骤包括:Solution 16, the driving route prediction method according to solution 15, characterized in that the step of "calculating the recommendation result using the alternative route comprising at least two sub-paths and the standard time of each of the sub-paths" includes:

从预建立的路网数据库中调取路网图像,所述路网图像包括多个节点以及连接相邻节点的子路径;Retrieving a road network image from a pre-established road network database, the road network image including a plurality of nodes and sub-paths connecting adjacent nodes;

选择距离所述起点最近的节点作为第一节点,选择距离所述终点最近的节点作为第二节点,并生成多个备选路径,所述备选路径以所述第一节点和所述第二节点为端点且由至少两个所述子路径顺次连接构成;Selecting the node closest to the starting point as the first node, selecting the node closest to the end point as the second node, and generating a plurality of alternative paths, the alternative paths are based on the first node and the second node The node is an endpoint and is composed of at least two sub-paths connected in sequence;

从预建立的历史数据库中调取目标数据,所述目标数据是指与所述指定时间具有同一时间属性的每个所述子路径的标准时间,所述时间属性是指该时间在一周中所处的某一天中的某一时段;Retrieve the target data from the pre-established historical database, the target data refers to the standard time of each sub-path with the same time attribute as the specified time, and the time attribute refers to the time in a week. a certain period of time on a certain day;

将每个所述备选路径中的每个所述子路径的标准时间进行求和,以计算出每条所述备选路径的行车时间,并对每个所述行车时间进行比较以获得所述最短行车时间,将所述最短行车时间所对应的备选路径作为所述目标路径;Summing the standard times of each of the sub-paths in each of the candidate routes to calculate the travel time of each of the candidate routes, and comparing each of the travel times to obtain the The shortest travel time, the alternative route corresponding to the shortest travel time as the target route;

生成所述推荐结果,所述推荐结果包括所述最短行车时间和所述目标路径。The recommendation result is generated, and the recommendation result includes the shortest driving time and the target route.

方案17、根据方案16所述的行车路径预测方法,其特征在于,采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法生成所述备选路径。Solution 17. The driving route prediction method according to solution 16, characterized in that the candidate route is generated by using Dijkstra algorithm, bi-directional Dijkstra algorithm or Astar algorithm.

方案18、根据方案16所述的行车路径预测方法,其特征在于,所述推荐结果还包括非目标路径,所述非目标路径的行车时间按照升序进行排列。Solution 18. The driving route prediction method according to solution 16, wherein the recommendation result further includes non-target routes, and the driving times of the non-target routes are arranged in ascending order.

方案19、根据方案16所述的行车路径预测方法,其特征在于,建立所述路网数据库的操作具体为:Scheme 19. The driving route prediction method according to scheme 16, wherein the operation of establishing the road network database is specifically:

获取原始图像,所述原始图像包括多条历史行车路径;Acquiring an original image, the original image includes a plurality of historical driving paths;

利用所述节点将所述原始图像中的每一条历史行车路径划分为至少两个所述子路径;dividing each historical driving path in the original image into at least two sub-paths by using the nodes;

提取所述节点和所述子路径以形成所述路网图像,并对所述路网图像进行存储以建立所述路网数据库。Extracting the nodes and the sub-paths to form the road network image, and storing the road network image to establish the road network database.

方案20、根据方案19所述的行车路径预测方法,其特征在于,建立所述历史数据库的操作具体为:Scheme 20. The driving route prediction method according to scheme 19, wherein the operation of establishing the historical database is specifically:

获取历史行车数据,所述历史行车数据包括历史行车时间,所述历史行车时间为通过所述子路径的实际时间;Acquiring historical driving data, the historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-path;

对同一时间属性下的同一所述子路径的历史行车时间进行加权平均计算,以获得子时间,并利用所述子时间求得所述标准时间;Performing weighted average calculation on the historical travel time of the same sub-path under the same time attribute to obtain the sub-time, and using the sub-time to obtain the standard time;

将所述标准时间按照所述时间属性进行分类并储存,以建立所述历史数据库。The standard time is classified and stored according to the time attribute, so as to establish the historical database.

方案21、根据方案20所述的行车路径预测方法,其特征在于,所述行车路径预测方法还包括:获取天气预报信息,所述天气预报信息包括所述指定时间的天气属性,其中,所述目标数据与所述指定时间具有相同的天气属性。Solution 21. The driving route prediction method according to solution 20, characterized in that the driving route prediction method further includes: acquiring weather forecast information, the weather forecast information including the weather attributes at the specified time, wherein the The target data has the same weather attribute as the specified time.

方案22、根据方案21所述的行车路径预测方法,其特征在于,“建立所述历史数据库”的操作还包括:在获得所述标准时间后及对所述标准时间进行储存之前,将所述标准时间按照天气属性进行分类。Solution 22. The driving route prediction method according to solution 21, characterized in that the operation of "establishing the historical database" further includes: after obtaining the standard time and before storing the standard time, storing the Standard times are categorized by weather attributes.

方案23、根据权利要求20-22中任一项所述的行车路径预测方法,其特征在于,所述历史数据库为分布式文件存储数据库。Solution 23. The driving route prediction method according to any one of claims 20-22, wherein the historical database is a distributed file storage database.

方案24、根据方案20-22中任一项所述的行车路径预测方法,其特征在于,所述子路径包括第一子路径,所述第一子路径为在一个所述时间属性下仅被包括在一条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:以所述第一子路径的子时间作为所述第一子路径的标准时间。Solution 24. The driving route prediction method according to any one of solutions 20-22, characterized in that the sub-paths include a first sub-path, and the first sub-path is only determined under one time attribute For a sub-path included in one of the alternative paths, the step of "using the sub-time to obtain the standard time" includes: using the sub-time of the first sub-path as the standard time of the first sub-path .

方案25、根据方案20-22中任一项所述的行车路径预测方法,其特征在于,所述子路径包括第二子路径,所述第二子路径为在一个所述时间属性下被包括在至少两条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:对所述第二子路径在每条所述备选路径中的子时间进行加权平均,以计算所述第二子路径的标准时间。Solution 25. The driving path prediction method according to any one of solutions 20-22, wherein the sub-path includes a second sub-path, and the second sub-path is included under one of the time attributes For the sub-paths in at least two of the alternative paths, the step of "using the sub-time to obtain the standard time" includes: calculating the sub-time of the second sub-path in each of the alternative paths A weighted average is performed to calculate the standard time of the second sub-path.

方案26、根据方案20-22中任一项所述的行车路径预测方法,其特征在于,所述至少两个子路径包括至少第三子路径,所述第三子路径在至少一个所述时间属性下没有所述历史行车时间,“利用所述子时间求得所述标准时间”具体为:以无穷大作为所述第三子路径在所述至少一个所述时间属性下的所述标准时间;或者,计算出其他各所述时间属性下的所述第三子路径的所述标准时的平均值,并将所述平均值作为所述第三子路径的所述标准时间。Solution 26. The driving route prediction method according to any one of solutions 20-22, wherein the at least two sub-paths include at least a third sub-path, and the third sub-path is at least one of the time attributes If there is no said historical driving time, "use said sub-time to obtain said standard time" specifically: take infinity as said standard time of said third sub-path under said at least one said time attribute; or , calculating an average value of the standard time of the third sub-path under each of the other time attributes, and using the average value as the standard time of the third sub-path.

方案27、一种行车路径获取方法,其特征在于包括:Scheme 27. A method for obtaining a driving route, characterized in that it comprises:

根据输入的指令生成请求信息,其中,所述请求信息包括起点信息、终点信息和指定时间;Generate request information according to the input instruction, wherein the request information includes start point information, end point information and designated time;

将所述请求信息发送至服务器;Send the request information to the server;

接收推荐结果,并选择性地对所述推荐结果进行展示。Receive recommendation results, and selectively display the recommendation results.

方案28、根据方案27所述的行车路径获取方法,其特征在于,“根据输入的指令生成请求信息”的步骤包括:Scheme 28. The method for obtaining the driving route according to scheme 27, wherein the step of "generating request information according to the input instruction" includes:

获取输入的指令,所述指令包括起点位置、终点位置及所述指定时间;Obtaining an input instruction, the instruction including the start position, the end position and the specified time;

利用全球定位系统获取所述起点位置的GPS信息作为所述起点信息,获取所述终点的GPS信息作为所述终点信息;Obtaining the GPS information of the starting point position by using a global positioning system as the starting point information, and obtaining the GPS information of the ending point as the ending point information;

利用所述起点信息、所述终点信息和所述指定时间生成所述请求信息。The request information is generated by using the start point information, the end point information and the designated time.

方案29、一种服务器,包括处理器和存储器,所述存储器中存储有多条指令,其特征在于,所述处理器适于加载所述指令以执行如方案15-26中任一项所述的行车路径预测方法。Solution 29. A server, including a processor and a memory, wherein a plurality of instructions are stored in the memory, wherein the processor is adapted to load the instructions to execute the instructions described in any one of solutions 15-26. The driving path prediction method.

方案30、一种客户端,包括处理器和存储器,所述存储器中存储有多条指令,其特征在于,所述处理器适于加载所述指令以执行如方案27-29中任一项所述的行车路径获取方法。Solution 30, a client, including a processor and a memory, wherein a plurality of instructions are stored in the memory, wherein the processor is adapted to load the instructions to execute the instructions described in any one of solutions 27-29. The method for obtaining the driving route described above.

方案31、根据方案30所述的客户端,其特征在于,所述客户端为移动终端或者车载终端。Solution 31. The client according to solution 30, wherein the client is a mobile terminal or a vehicle-mounted terminal.

附图说明Description of drawings

图1为本发明实施例中的一种行车路径推荐方法的流程示意图。FIG. 1 is a schematic flowchart of a driving route recommendation method in an embodiment of the present invention.

图2为本发明实施例中的客户端根据输入的指令生成请求信息的流程图。Fig. 2 is a flow chart of the client generating request information according to the input instruction in the embodiment of the present invention.

图3为本发明实施例中的利用备选路径和每个子路径的标准时间计算推荐结果的流程示意图。FIG. 3 is a schematic flow chart of calculating recommendation results using alternative paths and standard time of each sub-path in an embodiment of the present invention.

图4为本发明实施例中建立路网数据库的流程图。Fig. 4 is a flowchart of establishing a road network database in an embodiment of the present invention.

图5为上海市黄浦江区域的部分地图。Figure 5 is a partial map of the Huangpu River area in Shanghai.

图6为图5中部分区域所对应的路网图像。Fig. 6 is a road network image corresponding to some areas in Fig. 5 .

图7为本发明实施例中建立历史数据库的流程图。Fig. 7 is a flow chart of establishing a historical database in the embodiment of the present invention.

图8为本发明实施例中的一种行车路径预测方法的流程示意图。FIG. 8 is a schematic flowchart of a method for predicting a driving route in an embodiment of the present invention.

图9为本发明实施例中的一种行车路径获取方法的流程图。FIG. 9 is a flowchart of a method for obtaining a driving route in an embodiment of the present invention.

图10为本发明实施例中的一种行车路径预测装置与行车路径获取装置的连接结构示意图。Fig. 10 is a schematic diagram of a connection structure between a driving route prediction device and a driving route acquisition device in an embodiment of the present invention.

图11为本发明实施例中的另一种行车路径预测装置与行车路径获取装置的连接结构示意图。FIG. 11 is a schematic diagram of the connection structure between another driving route prediction device and the driving route acquisition device in an embodiment of the present invention.

具体实施方式Detailed ways

下面参照附图来描述本发明的优选实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。本领域技术人员可以根据需要对其作出调整,以便适应具体的应用场合。Preferred embodiments of the present invention are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention, and are not intended to limit the protection scope of the present invention. Those skilled in the art can make adjustments as needed so as to adapt to specific applications.

人们在出行前通常会做好出行规划,目前的出行服务系统对未来出行时间的ETA的预测精度不高。对于预测ETA服务来说,在相同起点、相同终点及相同时段的条件下,历史轨迹的数据往往是非常稀疏的,因此,并不能很好地给出一个准确的结果,影响人们出行安排。People usually make travel plans before traveling, and the current travel service system does not have high prediction accuracy for the ETA of future travel time. For predicting ETA services, under the conditions of the same starting point, the same end point, and the same time period, the data of historical trajectories is often very sparse. Therefore, an accurate result cannot be given well, which affects people's travel arrangements.

为了解决上述技术问题,本发明实施例提供了一种行车路径推荐方法。下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to solve the above technical problems, an embodiment of the present invention provides a driving route recommendation method. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

图1为本发明实施例中的一种行车路径推荐方法的流程示意图。请参见图1,该行车路径的推荐方法包括如下步骤:FIG. 1 is a schematic flowchart of a driving route recommendation method in an embodiment of the present invention. Please refer to Figure 1, the recommended method for the driving route includes the following steps:

步骤S11:客户端根据输入的指令生成请求信息,并将请求信息发送至服务器,其中,请求信息包括起点信息、终点信息和指定时间。在本实施例中,第一指令是用户输入的信息,例如,用户指定以上海市图书馆为起点,以华都大厦为终点,于当前时刻出发,那么起点信息为上海市图书馆的位置信息,终点信息为华都大厦的位置信息,指定时间可以为当前的时刻信息,指定时间也可以为用户输入的未来某一时刻。Step S11: the client generates request information according to the input instruction, and sends the request information to the server, wherein the request information includes start point information, end point information and specified time. In this embodiment, the first instruction is the information input by the user. For example, the user designates the Shanghai Municipal Library as the starting point and the Huadu Building as the end point, and departs at the current moment. Then the starting point information is the location information of the Shanghai Municipal Library , the end point information is the location information of Huadu Building, the designated time may be the current time information, or the designated time may be a future time input by the user.

步骤S12:服务器接收请求信息,并根据请求信息,利用包括至少两个子路径的备选路径和每个子路径的标准时间,计算推荐结果,推荐结果包括指定时间下的最短行车时间及目标路径,目标路径为最短行车时间所对应的备选路径。Step S12: The server receives the request information, and according to the request information, uses the alternative routes including at least two sub-routes and the standard time of each sub-route to calculate the recommendation result, the recommendation result includes the shortest driving time under the specified time and the target route, target The route is the alternative route corresponding to the shortest travel time.

步骤S13:服务器将推荐结果发送至客户端。Step S13: the server sends the recommendation result to the client.

步骤S14:客户端接收推荐结果,并选择性地对推荐结果进行展示。本发明中所说的“选择性地”是指客户端可以对推荐结果进行展示,也可以不对推荐结果进行展示而将推荐结果直接用于导航。Step S14: the client receives the recommendation result, and selectively displays the recommendation result. "Selectively" in the present invention means that the client can display the recommendation results, or directly use the recommendation results for navigation without displaying the recommendation results.

在本实施例中,利用包括至少两个子路径的备选路径和每个子路径的标准时间,计算出各备选路径的行车时间,能够有效提高预测行车时间的精确度,使用户能够根据推荐的路径出行,以最短的时间到达终点,能够尽可能地避免堵车问题,有利于人们更好地进行出行安排;同时,本实施例也可以用于为提供查新服务的机构提供预测信息,以便于提供查新服务的机构能够更好地对行车需求进行调度。In this embodiment, using the alternative routes including at least two sub-routes and the standard time of each sub-route, the driving time of each alternative route is calculated, which can effectively improve the accuracy of the predicted driving time, so that the user can Route travel, to reach the destination in the shortest time, can avoid traffic jams as much as possible, and help people to make better travel arrangements; at the same time, this embodiment can also be used to provide forecast information for institutions that provide novelty checking services, so as to facilitate Organizations that provide novelty checking services can better schedule driving needs.

需要说明的是,本发明提供的行车路径推荐方法中的步骤可以进行拆分、组合及顺序调整,例如:步骤S12可以拆分为“服务器接收请求信息”和“服务器根据请求信息,利用包括至少两个子路径的备选路径和每个子路径的标准时间,计算出推荐结果”这两个步骤,步骤S14页可以拆分为“客户端接收推荐结果”和“客户端选择性地对推荐结果进行展示”这两个步骤;当然,步骤S12和步骤S13也可以合并为一个步骤。It should be noted that the steps in the driving route recommendation method provided by the present invention can be split, combined and adjusted in order. For example, step S12 can be split into "the server receives the request information" and "the server utilizes the information including at least Alternative paths of the two sub-paths and the standard time of each sub-path, and calculate the recommended results", step S14 can be split into two steps: "the client receives the recommended results" and "the client selectively performs the recommendation on the recommended results". Show" these two steps; of course, step S12 and step S13 can also be combined into one step.

图2为本发明实施例中的客户端根据输入的指令生成请求信息的流程图。请参见图2,“客户端根据输入的指令生成请求信息”的步骤包括:Fig. 2 is a flow chart of the client generating request information according to the input instruction in the embodiment of the present invention. Please refer to Figure 2, the steps of "the client generates request information according to the input instructions" include:

步骤S111:获取输入的指令,该指令包括起点位置、终点位置及指定时间。Step S111: Acquiring an input command, the command includes a start position, an end position and a specified time.

步骤S112:客户端利用全球定位系统获取起点位置的GPS信息作为起点信息,获取终点的GPS信息作为终点信息。Step S112: the client uses the global positioning system to acquire GPS information of the starting point as starting point information, and obtains GPS information of the ending point as end point information.

步骤S113:客户端利用起点信息、终点信息和指定时间生成请求信息。Step S113: the client generates request information using the start point information, end point information and specified time.

在本实施例中,利用客户端安装的全球定位系统生成的GPS信息作为起点信息和和终点信息,生成请求信息的方法简单,而且定位准确。In this embodiment, the GPS information generated by the global positioning system installed on the client is used as the starting point information and the ending point information, the method of generating the request information is simple, and the positioning is accurate.

图3为本发明实施例中的利用备选路径和每个子路径的标准时间计算推荐结果的流程示意图。请参见图3,“利用包括多个子路径的备选路径和每个子路径的标准时间计算推荐结果”的步骤包括:FIG. 3 is a schematic flow chart of calculating recommendation results using alternative paths and standard time of each sub-path in an embodiment of the present invention. Referring to Fig. 3, the steps of "computing the recommendation result by using the alternative paths including multiple sub-paths and the standard time of each sub-path" include:

步骤S121:从预建立的路网数据库中调取路网图像。路网图像包括多个节点以及连接相邻节点的子路径。Step S121: Retrieving road network images from a pre-established road network database. A road network image includes multiple nodes and sub-paths connecting adjacent nodes.

步骤S122:选择距离起点最近的节点作为第一节点,选择距离终点最近的节点作为第二节点,并生成多个备选路径,备选路径以第一节点和第二节点为端点,且由至少两个子路径顺次连接构成。例如,将节点A作为第一节点,将节点B作为第二节点,从节点A到达节点B,具有多种行进方式,每个行进方式都可以作为一个备选路径,每个备选路径中都是至少两个子路径顺次连接构成的。Step S122: Select the node closest to the starting point as the first node, select the node closest to the end point as the second node, and generate multiple candidate paths, the candidate paths take the first node and the second node as endpoints, and consist of at least The two sub-paths are sequentially connected to form. For example, using node A as the first node and node B as the second node, there are multiple travel modes from node A to node B, and each travel mode can be used as an alternative path, and each alternative path has It is composed of at least two sub-paths connected in sequence.

步骤S123:从预建立的历史数据库中调取目标数据,目标数据与指定时间具有同一时间属性的每个子路径的标准时间,时间属性是指该时间在一周中所处的某一天中的某一时段。即每周的天数为7天,假如指定时间为周二,那么目标数据的时间属性也为周二;而每天又具有不同的时段,例如,早高峰时段、晚高峰时间段和夜间少出行时段等。可选地,可以按照小时将一天分为24个时段,此时,共有7*24(每周7天,每天24小时)个时间属性。Step S123: Retrieve the target data from the pre-established historical database. The target data has the standard time of each sub-path with the same time attribute as the specified time. The time attribute refers to a certain day of the week where the time is located time period. That is, the number of days in a week is 7 days. If the specified time is Tuesday, then the time attribute of the target data is also Tuesday; and each day has different time periods, for example, morning peak time, evening peak time, and less travel time at night. Optionally, a day can be divided into 24 time periods according to hours. At this time, there are 7*24 (7 days a week, 24 hours a day) time attributes.

步骤S124:将每个备选路径中的每个子路径的标准时间进行求和,以计算出每条备选路径的行车时间,并对每个行车时间进行比较以获得最短行车时间,将最短行车时间所对应的备选路径作为目标路径。Step S124: Sum the standard time of each sub-path in each candidate route to calculate the travel time of each candidate route, and compare each travel time to obtain the shortest travel time, and the shortest travel time The alternative path corresponding to the time is used as the target path.

步骤S125:生成推荐结果,推荐结果包括最短行车时间和目标路径。Step S125: Generate recommendation results, the recommendation results include the shortest travel time and the target route.

本实施例中计算推荐结果的方法,通过从预建立的路网数据库中调取路网图像并生成备选路径,从预建立的历史数据库中调取目标数据,通过对备选路径中每个子路径的标准时间进行求和以计算出各备选路径的行车时间,计算结果更为准确;将网络图像与历史数据分开保存,在计算推荐结果时调取相应的网络图像和数据,能够降低系统的负载,同时有利于提高计算推荐结果的速度。In the method for calculating the recommendation result in this embodiment, the road network image is retrieved from the pre-established road network database to generate an alternative path, the target data is retrieved from the pre-established historical database, and each child in the alternative path The standard time of the route is summed to calculate the driving time of each alternative route, and the calculation result is more accurate; the network image and historical data are stored separately, and the corresponding network image and data are called when calculating the recommendation result, which can reduce the system cost. load, and at the same time help to improve the speed of computing recommendation results.

图4为本发明实施例中建立路网数据库的流程图。请参见图4,建立路网数据库的具体操作为:Fig. 4 is a flowchart of establishing a road network database in an embodiment of the present invention. Please refer to Figure 4, the specific operation of establishing the road network database is as follows:

步骤S1211:获取原始图像,原始图像包括多条历史行车路径。原始图像可以为某一城市、地区、省的地图。例如,图5为上海市黄浦江区域的部分地图,在黄浦江两岸,具有上海环球金融中心等著名商圈,也有豫园等著名景点,是交通较为容易发生拥堵的区域。Step S1211: Acquire the original image, which includes multiple historical driving paths. The original image can be a map of a certain city, region, or province. For example, Figure 5 is a partial map of the Huangpu River area in Shanghai. On both sides of the Huangpu River, there are famous business districts such as Shanghai World Financial Center and famous scenic spots such as Yu Garden, which are areas prone to traffic congestion.

步骤S1212:利用节点将原始图像中的每一条历史行车路径划分为至少两个子路径,提取节点和子路径以形成路网图像。进一步地,可以选择在物理路径的交汇处、地标性建筑处、高速路的匝道处、道路的整公里处等位置,子路径为两个节点之间一段道路。例如,图6为图5中部分区域所对应的路网图像,请参见图6,图6中的圆点为节点,图6中的线段为子路径,由图6可以看出,节点在商圈、景点等处较为密集。Step S1212: using nodes to divide each historical driving route in the original image into at least two sub-paths, and extracting nodes and sub-paths to form a road network image. Further, it may be selected at the intersection of the physical path, the landmark building, the ramp of the expressway, the entire kilometer of the road, etc., and the sub-path is a section of road between two nodes. For example, Figure 6 is the road network image corresponding to some areas in Figure 5. Please refer to Figure 6. The dots in Figure 6 are nodes, and the line segments in Figure 6 are sub-paths. Circles, scenic spots, etc. are relatively dense.

步骤S1213:对路网图像进行存储以建立路网数据库。Step S1213: Store the road network image to establish a road network database.

在本实施例中,通过将物理路径分为至少两个子路径,由于子路径的距离较短,因此每个子路径上获得的历史数据较为充分;同时,将物理路径分为至少两个子路径能够便于对每一个子路径的标准时间进行统计;而上述优点都有利于提高预测ETA的准确度。In this embodiment, by dividing the physical path into at least two sub-paths, since the distance of the sub-paths is relatively short, the historical data obtained on each sub-path is relatively sufficient; at the same time, dividing the physical path into at least two sub-paths can facilitate The standard time of each sub-path is counted; and the above-mentioned advantages are all conducive to improving the accuracy of predicting the ETA.

图7为本发明实施例中建立历史数据库的流程图。请参见图7,建立历史数据库的具体操作为:Fig. 7 is a flow chart of establishing a historical database in the embodiment of the present invention. Please refer to Figure 7, the specific operation of establishing the historical database is as follows:

步骤S1231:获取历史行车数据,历史行车数据包括历史行车时间,历史行车时间为通过子路径的实际时间。历史行车时间可以通过统计获得。Step S1231: Obtain historical driving data. The historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-route. Historical driving time can be obtained through statistics.

步骤S1232:对同一时间属性下的同一子路径的历史行车时间进行加权平均计算,以获得子时间,并利用子时间求得标准时间。例如,某一子路径,在周一早高峰时段,共统计到了100条历史行车时间,那么求得这100条历史行车时间的平均值作为子时间,再利用子时间求得该子路径的标准时间。Step S1232: Perform weighted average calculation on the historical driving time of the same sub-route under the same time attribute to obtain the sub-time, and use the sub-time to obtain the standard time. For example, for a sub-route, a total of 100 historical driving times have been counted during the Monday morning rush hour, then the average value of the 100 historical driving times is obtained as the sub-time, and then the sub-time is used to obtain the standard time of the sub-route .

步骤S1233:将标准时间按照时间属性进行分类并储存,以建立历史数据库。Step S1233: classify and store the standard time according to the time attribute, so as to establish a historical database.

本实施例中,通过对历史行车时间进行统计,并计算出每个子路径的标准时间,并将标准时间按照时间属性进行储存,以便于按照时间属性对标准时间进行提取。In this embodiment, the standard time of each sub-route is calculated by making statistics on the historical driving time, and the standard time is stored according to the time attribute, so that the standard time can be extracted according to the time attribute.

可选地,采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法,生成备选路径。申请人以上海市的网路图像(节点和子路径的数量为百万级别)进行测试,上述方法均可以在30秒以内完成最短行车时间和目标路径的计算。Optionally, a candidate path is generated by using the Dijkstra algorithm, the bidirectional Dijkstra algorithm or the Astar algorithm. The applicant tested the network image of Shanghai (the number of nodes and sub-paths is at the level of one million), and the above-mentioned methods can complete the calculation of the shortest driving time and the target route within 30 seconds.

可选地,推荐结果还包括非目标路径,非目标路径的行车时间按照升序进行排列。这样,用户可以获知多条推荐路径,根据自己的出行安排进行选择,例如:如果希望以最快速度到达则可以选择推荐路径,如果想要沿途经过商场则可以选择路径中的某个节点与某个商场的距离较近的推荐路径。Optionally, the recommendation result also includes non-target routes, and the travel time of the non-target routes is arranged in ascending order. In this way, users can learn multiple recommended routes and choose according to their own travel arrangements. For example, if they want to arrive at the fastest speed, they can choose the recommended route; The recommended route with a short distance to a shopping mall.

可选地,在本发明中,历史数据库可以为基于分布式文件存储的数据库。采用基于分布式文件存储的数据库,能够便于对数据的存储和查询。Optionally, in the present invention, the historical database may be a database based on distributed file storage. Using a database based on distributed file storage can facilitate data storage and query.

在本发明中,由于子路径的情况不同,“利用子时间计算求得标准时间”具有不同的计算方法,以下进行详细说明。In the present invention, due to the different conditions of the sub-paths, "obtaining the standard time by calculating the sub-time" has different calculation methods, which will be described in detail below.

在一些可选的实施方式中,至少两个子路径包括第一子路径,第一子路径为在一个时间属性下仅被包括在一条备选路径中的子路径,“利用子时间求得标准时间”的步骤包括:以第一子路径的子时间作为第一子路径的标准时间。In some optional implementations, at least two sub-paths include a first sub-path, and the first sub-path is a sub-path that is only included in one alternative path under a time attribute, "Using sub-times to obtain standard time " includes: using the sub-time of the first sub-path as the standard time of the first sub-path.

在一些可选的实施方式中,至少两个子路径包括第二子路径,第二子路径为在一个时间属性下被包括在至少两条备选路径中的子路径,“利用子时间求得标准时间”的步骤包括:对第二子路径在每条备选路径中的子时间进行加权平均,以计算第二子路径的标准时间。也就是第二子路径被包括在至少两条备选路径中,此时在计算标准时间时,需要将包括该第二子路径的所有备选路径的所对应的子时间进行加权平均,以求得标准时间。例如,第一条备选路径中该第二子路径的子时间为a,第二条备选路径中的该第二子路径的子时间为b,其中,第一条备选路径在历史中的使用率为60%,第二条备选路径在历史中的使用率为40%,那么,标准时间为60%a+40%b。In some optional implementation manners, at least two sub-paths include a second sub-path, and the second sub-path is a sub-path included in at least two alternative paths under a time attribute, "Using sub-time to find the criterion The step of "time" includes: performing a weighted average of the sub-times of the second sub-path in each candidate path to calculate the standard time of the second sub-path. That is, the second sub-path is included in at least two candidate paths. At this time, when calculating the standard time, it is necessary to carry out a weighted average of the corresponding sub-times of all the candidate paths including the second sub-path, so as to obtain get standard time. For example, the sub-time of the second sub-path in the first candidate path is a, and the sub-time of the second sub-path in the second candidate path is b, wherein the first candidate path is in the history The utilization rate of the second alternative path is 60%, and the historical utilization rate of the second alternative path is 40%, then the standard time is 60%a+40%b.

在一些可选的实施方式中,至少两个子路径包括第三子路径,第三子路径在至少一个时间属性下没有历史行车时间,“利用子时间求得标准时间”的步骤包括:以无穷大作为第三子路径在至少一个时间属性下的标准时间;或者,计算出其他各时间属性下的第三子路径的标准时间的平均值,并将平均值作为第三子路径的标准时间。对于某些时间属性下的子路径没有历史行车时间的情况,可以采用以无穷大作为标准时间,也就是不推荐经过这个子路径的备选路径;也可以选择将其他各时间属性下的第三子路径的标准时间的平均值作为第三子路径在该时间属性下的标准时间。In some optional embodiments, at least two sub-paths include a third sub-path, and the third sub-path has no historical driving time under at least one time attribute, and the step of "obtaining the standard time by using sub-times" includes: using infinity as The standard time of the third sub-path under at least one time attribute; or, calculate the average value of the standard time of the third sub-path under other time attributes, and use the average value as the standard time of the third sub-path. For the case that the sub-path under some time attributes has no historical driving time, infinity can be used as the standard time, that is, the alternative path passing through this sub-path is not recommended; the third sub-path under other time attributes can also be selected The average of the standard time of the path is used as the standard time of the third sub-path under this time attribute.

由于不同的天气条件可能导致某些子路径的标准时间不同,因此,为了调高预测的准确度,可选地,服务器还接收天气预报信息,天气预报信息包括指定时间的天气属性;目标数据与指定时间具有相同的天气属性。天气属性包括晴、阴、多云、雨、雪、风和雾霾等。Because different weather conditions may cause the standard time of some sub-paths to be different, therefore, in order to increase the accuracy of the forecast, optionally, the server also receives weather forecast information, which includes weather attributes at a specified time; the target data and The specified time has the same weather attribute. Weather attributes include sunny, cloudy, cloudy, rain, snow, wind, and haze.

基于天气因素对出行的影响,为了便于目标数据的提取,可选地,建立历史数据库,在获得标准时间后及对标准时间进行储存之间,还包括:将标准时间按照天气属性进行分类。具体地,可以建立以时间属性命名的文件夹,并在以时间属性命名的文件夹内设置以天气属性命名的子文件夹,各以天气属性命名的子文件夹内存储着的标准时间,该标准时间的天气属性与其位于的子文件夹的名称相同,该标准时间的时间属性与其位于的文件夹的名称相同。具体地,也可以建立以天气属性命名的文件夹,并在以天气属性命名的文件夹内设置以时间属性命名的子文件夹,各以时间属性命名的子文件夹内存储着的标准时间,该标准时间的时间属性与其位于的子文件夹的名称相同,该标准时间的天气属性与其位于的文件夹的名称相同。Based on the impact of weather factors on travel, in order to facilitate the extraction of target data, optionally, establishing a historical database, after obtaining the standard time and storing the standard time, also includes: classifying the standard time according to weather attributes. Specifically, a folder named with the time attribute can be established, and subfolders named with the weather attribute can be set in the folder named with the time attribute, and the standard time stored in each subfolder named with the weather attribute, the The Weather property for Standard Time has the same name as the subfolder it is in, and the Time property for Standard Time has the same name as the folder it is in. Specifically, it is also possible to establish a folder named after the weather attribute, and set subfolders named after the time attribute in the folder named after the weather attribute, and each subfolder named after the time attribute stores the standard time, The time attribute of the standard time has the same name as the subfolder it is located in, and the weather attribute of the standard time has the same name as the folder it is located in.

可选地,本发明中所说的客户端可以为移动终端或者车载终端,其中,移动终端可以为智能手机、平板电脑等,车载终端主要是指智能汽车的车机。Optionally, the client mentioned in the present invention may be a mobile terminal or a vehicle-mounted terminal, wherein the mobile terminal may be a smart phone, a tablet computer, etc., and the vehicle-mounted terminal mainly refers to a vehicle machine of a smart car.

为了解决上述技术问题,本发明实施例还提供了一种行车路径预测方法。下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to solve the above technical problem, an embodiment of the present invention also provides a driving route prediction method. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

图8为本发明实施例中的一种行车路径预测方法的流程示意图。请参见图8,该行车路径的预测方法由服务器执行并且包括如下步骤:FIG. 8 is a schematic flowchart of a method for predicting a driving route in an embodiment of the present invention. Referring to Figure 8, the method for predicting the driving route is executed by the server and includes the following steps:

步骤S21:接收请求信息,请求信息包括起点信息、终点信息和指定时间。在本实施例中,第一指令是用户输入的信息,例如,起点信息可以是上海市图书馆,终点信息可以是华都大厦,指定时间可以是当前时刻,指定时间也可以为用户输入的未来某一时刻。Step S21: Receive request information, the request information includes start point information, end point information and designated time. In this embodiment, the first instruction is the information input by the user. For example, the starting point information can be the Shanghai Municipal Library, the end point information can be Huadu Building, the specified time can be the current moment, and the specified time can also be the future input by the user. at some point.

步骤S22:根据请求信息,利用包括至少两个子路径的备选路径和每个子路径的标准时间计算推荐结果,其中,推荐结果包括指定时间下的最短行车时间和目标路径,目标路径为最短行车时间所对应的备选路径。Step S22: According to the request information, calculate the recommendation result by using the alternative route including at least two sub-route and the standard time of each sub-route, wherein the recommendation result includes the shortest driving time and the target route under the specified time, and the target route is the shortest driving time The corresponding alternative path.

步骤S23:将推荐结果发送至客户端。Step S23: Send the recommendation result to the client.

在本实施例中,利用包括至少两个子路径的备选路径和每个子路径的标准时间,计算出各备选路径的行车时间,能够有效提高预测行车时间的精确度,使用户能够根据推荐的路径出行,以最短的时间到达终点,能够尽可能地避免堵车问题,有利于人们更好地进行出行安排。In this embodiment, using the alternative routes including at least two sub-routes and the standard time of each sub-route, the driving time of each alternative route is calculated, which can effectively improve the accuracy of the predicted driving time, so that the user can Route travel, to reach the destination in the shortest time, can avoid traffic jams as much as possible, and help people make better travel arrangements.

图3为本发明实施例中的利用备选路径和每个子路径的标准时间计算推荐结果的流程示意图。请参见图3,该计算推荐结果的方法由服务器执行,包括如下步骤:FIG. 3 is a schematic flow chart of calculating recommendation results using alternative paths and standard time of each sub-path in an embodiment of the present invention. Please refer to Figure 3, the method for calculating the recommendation result is executed by the server, including the following steps:

步骤S121:从预建立的路网数据库中调取路网图像。路网图像包括多个节点以及连接相邻节点的子路径。Step S121: Retrieving road network images from a pre-established road network database. A road network image includes multiple nodes and sub-paths connecting adjacent nodes.

步骤S122:选择距离起点最近的节点作为第一节点,选择距离终点最近的节点作为第二节点,并生成多个备选路径,备选路径以第一节点和第二节点为端点,且由至少两个子路径顺次连接构成。例如,将节点A作为第一节点,将节点B作为第二节点,从节点A到达节点B,具有多种行进方式,每个行进方式都可以作为一个备选路径,每个备选路径中都是多个子路径顺次连接构成的。Step S122: Select the node closest to the starting point as the first node, select the node closest to the end point as the second node, and generate multiple candidate paths, the candidate paths take the first node and the second node as endpoints, and consist of at least The two sub-paths are sequentially connected to form. For example, using node A as the first node and node B as the second node, there are multiple travel modes from node A to node B, and each travel mode can be used as an alternative path, and each alternative path has It is composed of multiple sub-paths connected in sequence.

步骤S123:从预建立的历史数据库中调取目标数据,目标数据与指定时间具有同一时间属性的每个子路径的标准时间,时间属性是指该时间在一周中所处的某一天中的某一时段。即每周的天数为7天,假如指定时间为周二,那么目标数据的时间属性也为周二;而每天又具有不同的时段,例如,早高峰时段、晚高峰时间段和夜间少出行时段等。可选地,可以按照小时将一天分为24个时段,此时,共有7*24(每周7天,每天24小时)个时间属性。Step S123: Retrieve the target data from the pre-established historical database. The target data has the standard time of each sub-path with the same time attribute as the specified time. The time attribute refers to a certain day of the week where the time is located time period. That is, the number of days in a week is 7 days. If the specified time is Tuesday, then the time attribute of the target data is also Tuesday; and each day has different time periods, for example, morning peak time, evening peak time, and less travel time at night. Optionally, a day can be divided into 24 time periods according to hours. At this time, there are 7*24 (7 days a week, 24 hours a day) time attributes.

步骤S124:将每个备选路径中的每个子路径的标准时间进行求和,以计算出每条备选路径的行车时间,并对每个行车时间进行比较以获得最短行车时间,将最短行车时间所对应的备选路径作为目标路径。Step S124: Sum the standard time of each sub-path in each candidate route to calculate the travel time of each candidate route, and compare each travel time to obtain the shortest travel time, and the shortest travel time The alternative path corresponding to the time is used as the target path.

步骤S125:生成推荐结果,推荐结果包括最短行车时间和目标路径。Step S125: Generate recommendation results, the recommendation results include the shortest travel time and the target route.

本实施例中计算推荐结果的方法,通过从预建立的路网数据库中调取路网图像并生成备选路径,从预建立的历史数据库中调取目标数据,通过对备选路径中每个子路径的标准时间进行求和以计算出各备选路径的行车时间,计算结果更为准确;将网络图像与历史数据分开保存,在计算推荐结果时调取相应的网络图像和数据,能够降低系统的负载,同时有利于提高计算推荐结果的速度。In the method for calculating the recommendation result in this embodiment, the road network image is retrieved from the pre-established road network database to generate an alternative path, the target data is retrieved from the pre-established historical database, and each child in the alternative path The standard time of the route is summed to calculate the driving time of each alternative route, and the calculation result is more accurate; the network image and historical data are stored separately, and the corresponding network image and data are called when calculating the recommendation result, which can reduce the system cost. load, and at the same time help to improve the speed of computing recommendation results.

图4为本发明实施例中建立路网数据库的流程图。请参见图4,建立路网数据库的操作具体为:Fig. 4 is a flowchart of establishing a road network database in an embodiment of the present invention. Please refer to Figure 4, the operation of establishing the road network database is as follows:

步骤S1211:获取原始图像,原始图像包括多条历史行车路径。原始图像可以为某一城市、地区、省的地图。例如,图5为上海市黄浦江附近的部分地图,在黄浦江两岸,具有上海环球金融中心等著名商圈,也有豫园等著名景点,是交通较为容易发生拥堵的区域。Step S1211: Acquire the original image, which includes multiple historical driving paths. The original image can be a map of a certain city, region, or province. For example, Figure 5 is a partial map of the vicinity of the Huangpu River in Shanghai. On both sides of the Huangpu River, there are famous business districts such as Shanghai World Financial Center and famous scenic spots such as Yu Garden, which are areas prone to traffic congestion.

步骤S1212:利用节点将原始图像中的每一条历史行车路径划分为至少两个子路径,提取节点和子路径以形成路网图像。进一步地,可以选择在物理路径的交汇处、地标性建筑处、高速路的匝道处、道路的整公里处等位置,子路径为两个节点之间一段道路。例如,图6为图5中部分区域所对应的路网图像,请参见图6,图6中的圆点为节点,图6中的线段为子路径,由图6可以看出,节点在商圈、景点等处较为密集。Step S1212: using nodes to divide each historical driving route in the original image into at least two sub-paths, and extracting nodes and sub-paths to form a road network image. Further, it may be selected at the intersection of the physical path, the landmark building, the ramp of the expressway, the entire kilometer of the road, etc., and the sub-path is a section of road between two nodes. For example, Figure 6 is the road network image corresponding to some areas in Figure 5. Please refer to Figure 6. The dots in Figure 6 are nodes, and the line segments in Figure 6 are sub-paths. Circles, scenic spots, etc. are relatively dense.

步骤S1213:对路网图像进行存储以建立路网数据库。Step S1213: Store the road network image to establish a road network database.

在本实施例中,通过将物理路径分为至少两个子路径,以便于对每一个子路径的标准时间进行统计,从而提高预测ETA的准确度。In this embodiment, the physical path is divided into at least two sub-paths, so as to make statistics on the standard time of each sub-path, thereby improving the accuracy of predicting the ETA.

图7为本发明实施例中建立历史数据库的流程图。请参见图7,建立历史数据库的操作具体为:Fig. 7 is a flow chart of establishing a historical database in the embodiment of the present invention. Please refer to Figure 7, the operation of establishing the historical database is as follows:

步骤S1231:获取历史行车数据,历史行车数据包括历史行车时间,历史行车时间为通过子路径的实际时间。历史行车时间可以通过统计获得。Step S1231: Obtain historical driving data. The historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-route. Historical driving time can be obtained through statistics.

步骤S1232:对同一时间属性下的同一子路径的历史行车时间进行加权平均计算,以获得子时间,并利用子时间求得标准时间。例如,某一子路径,在周一早高峰时段,共统计到了100条历史行车时间,那么求得这100条历史行车时间的平均值作为子时间,再利用子时间求得该子路径的标准时间。Step S1232: Perform weighted average calculation on the historical driving time of the same sub-route under the same time attribute to obtain the sub-time, and use the sub-time to obtain the standard time. For example, for a sub-route, a total of 100 historical driving times have been counted during the Monday morning rush hour, then the average value of the 100 historical driving times is obtained as the sub-time, and then the sub-time is used to obtain the standard time of the sub-route .

步骤S1233:将标准时间按照时间属性进行分类并储存,以建立历史数据库。Step S1233: classify and store the standard time according to the time attribute, so as to establish a historical database.

本实施例中,通过对历史行车时间进行统计,并计算出每个子路径的标准时间,并将标准时间按照时间属性进行储存,以便于按照时间属性对标准时间进行提取。In this embodiment, the standard time of each sub-route is calculated by making statistics on the historical driving time, and the standard time is stored according to the time attribute, so that the standard time can be extracted according to the time attribute.

可选地,采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法,生成备选路径。经申请人以上海市的网路图像(节点和子路径的数量为百万级别)进行测试,上述方法均可以在30秒以内完成最短行车时间和目标路径的计算。Optionally, a candidate path is generated by using the Dijkstra algorithm, the bidirectional Dijkstra algorithm or the Astar algorithm. Tested by the applicant on the network image of Shanghai (the number of nodes and sub-paths is at the level of one million), the above-mentioned methods can complete the calculation of the shortest driving time and the target route within 30 seconds.

可选地,推荐结果还包括非目标路径,非目标路径的行车时间按照升序进行排列。这样,用户可以获知多条推荐路径,根据自己的出行安排进行选择,例如,如果希望以最快速度到达则可以选择推荐路径,如果想要沿途经过商场则可以选择路径中的某个节点与某个商场的距离较近的推荐路径。Optionally, the recommendation result also includes non-target routes, and the travel time of the non-target routes is arranged in ascending order. In this way, users can learn multiple recommended routes and choose according to their own travel arrangements. For example, if they want to arrive at the fastest speed, they can choose the recommended route; The recommended route with a short distance to a shopping mall.

可选地,在本发明中,历史数据库可以为基于分布式文件存储的数据库。采用基于分布式文件存储的数据库,能够便于对数据的存储和查询。Optionally, in the present invention, the historical database may be a database based on distributed file storage. Using a database based on distributed file storage can facilitate data storage and query.

在本发明中,由于子路径的情况不同,“利用子时间计算求得标准时间”具有不同的计算方法,以下进行详细说明。In the present invention, due to the different conditions of the sub-paths, "obtaining the standard time by calculating the sub-time" has different calculation methods, which will be described in detail below.

在一些可选的实施方式中,至少两个子路径包括第一子路径,第一子路径为在一个时间属性下仅被包括在一条备选路径中的子路径,“利用子时间求得标准时间”的步骤包括:以第一子路径的子时间作为第一子路径的标准时间。In some optional implementations, at least two sub-paths include a first sub-path, and the first sub-path is a sub-path that is only included in one alternative path under a time attribute, "Using sub-times to obtain standard time " includes: using the sub-time of the first sub-path as the standard time of the first sub-path.

在一些可选的实施方式中,至少两个子路径包括第二子路径,第二子路径为在一个时间属性下被包括在至少两条备选路径中的子路径,“利用子时间求得标准时间”的步骤包括:对第二子路径在每条备选路径中的子时间进行加权平均,以计算第二子路径的标准时间。也就是第二子路径被包括在至少两条备选路径中,此时在计算标准时间时,需要将包括该第二子路径的所有备选路径的所对应的子时间进行加权平均,以求得标准时间。例如,第一条备选路径中该第二子路径的子时间为a,第二条备选路径中的该第二子路径的子时间为b,其中,第一条备选路径在历史中的使用率为60%,第二条备选路径在历史中的使用率为40%,那么,标准时间为60%a+40%b。In some optional implementation manners, at least two sub-paths include a second sub-path, and the second sub-path is a sub-path included in at least two alternative paths under a time attribute, "Using sub-time to find the criterion The step of "time" includes: performing a weighted average of the sub-times of the second sub-path in each candidate path to calculate the standard time of the second sub-path. That is, the second sub-path is included in at least two candidate paths. At this time, when calculating the standard time, it is necessary to carry out a weighted average of the corresponding sub-times of all the candidate paths including the second sub-path, so as to obtain get standard time. For example, the sub-time of the second sub-path in the first candidate path is a, and the sub-time of the second sub-path in the second candidate path is b, wherein the first candidate path is in the history The utilization rate of the second alternative path is 60%, and the historical utilization rate of the second alternative path is 40%, then the standard time is 60%a+40%b.

在一些可选的实施方式中,至少两个子路径包括第三子路径,第三子路径在至少一个时间属性下没有历史行车时间,“利用子时间求得标准时间”的步骤包括:以无穷大作为第三子路径在至少一个时间属性下的标准时间;或者,计算出其他各时间属性下的第三子路径的标准时间的平均值,并将平均值作为第三子路径的标准时间。对于某些时间属性下的子路径没有历史行车时间的情况,可以采用以无穷大作为标准时间,也就是不推荐经过这个子路径的备选路径;也可以选择将其他各时间属性下的第三子路径的标准时间的平均值作为第三子路径在该时间属性下的标准时间。In some optional embodiments, at least two sub-paths include a third sub-path, and the third sub-path has no historical driving time under at least one time attribute, and the step of "obtaining the standard time by using sub-times" includes: using infinity as The standard time of the third sub-path under at least one time attribute; or, calculate the average value of the standard time of the third sub-path under other time attributes, and use the average value as the standard time of the third sub-path. For the case that the sub-path under some time attributes has no historical driving time, infinity can be used as the standard time, that is, the alternative path passing through this sub-path is not recommended; the third sub-path under other time attributes can also be selected The average of the standard time of the path is used as the standard time of the third sub-path under this time attribute.

由于不同的天气条件可能导致某些子路径的标准时间不同,因此,为了调高预测的准确度,可选地,服务器还接收天气预报信息,天气预报信息包括指定时间的天气属性;目标数据与指定时间具有相同的天气属性。天气属性包括晴、阴、多云、雨、雪、风和雾霾等。Because different weather conditions may cause the standard time of some sub-paths to be different, therefore, in order to increase the accuracy of the forecast, optionally, the server also receives weather forecast information, which includes weather attributes at a specified time; the target data and The specified time has the same weather attribute. Weather attributes include sunny, cloudy, cloudy, rain, snow, wind, and haze.

基于天气因素对出行的影响,为了便于目标数据的提取,可选地,建立历史数据库,在获得标准时间后及对标准时间进行储存之间,还包括:将标准时间按照天气属性进行分类。具体地,可以建立以时间属性命名的文件夹,并在以时间属性命名的文件夹内设置以天气属性命名的子文件夹,各以天气属性命名的子文件夹内存储着的标准时间,该标准时间的天气属性与其位于的子文件夹的名称相同,该标准时间的时间属性与其位于的文件夹的名称相同。具体地,也可以建立以天气属性命名的文件夹,并在以天气属性命名的文件夹内设置以时间属性命名的子文件夹,各以时间属性命名的子文件夹内存储着的标准时间,该标准时间的时间属性与其位于的子文件夹的名称相同,该标准时间的天气属性与其位于的文件夹的名称相同。Based on the impact of weather factors on travel, in order to facilitate the extraction of target data, optionally, establishing a historical database, after obtaining the standard time and storing the standard time, also includes: classifying the standard time according to weather attributes. Specifically, a folder named with the time attribute can be established, and subfolders named with the weather attribute can be set in the folder named with the time attribute, and the standard time stored in each subfolder named with the weather attribute, the The Weather property for Standard Time has the same name as the subfolder it is in, and the Time property for Standard Time has the same name as the folder it is in. Specifically, it is also possible to establish a folder named after the weather attribute, and set subfolders named after the time attribute in the folder named after the weather attribute, and each subfolder named after the time attribute stores the standard time, The time attribute of the standard time has the same name as the subfolder it is located in, and the weather attribute of the standard time has the same name as the folder it is located in.

为了解决上述技术问题,本发明实施例提供了一种行车路径获取方法。下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to solve the above technical problem, an embodiment of the present invention provides a method for acquiring a driving route. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

图9为本发明实施例中的一种行车路径获取方法的流程图。请参见图9,本实施例提供的行车路径的获取方法由客户端执行并且包括如下步骤:FIG. 9 is a flowchart of a method for obtaining a driving route in an embodiment of the present invention. Referring to FIG. 9, the method for obtaining the driving route provided by this embodiment is executed by the client and includes the following steps:

步骤S31:根据输入的指令生成请求信息,其中,请求信息包括起点信息、终点信息和指定时间。Step S31: Generate request information according to the input instruction, wherein the request information includes start point information, end point information and specified time.

步骤S32:将请求信息发送至服务器。Step S32: Send the request information to the server.

步骤S33:接收推荐结果,并选择性地对推荐结果进行展示。本发明中所说的“选择性地”是指客户端可以对推荐结果进行展示,也可以不对推荐结果进行展示而是将推荐结果直接用于导航。Step S33: Receive recommendation results, and selectively display the recommendation results. "Selectively" in the present invention means that the client can display the recommendation results, or not display the recommendation results but directly use the recommendation results for navigation.

本实施例提供的行车路径获取方法,能够获取高准确度的行车时间预测信结果,并选择性地对预测结果进行显示,使用户能够根据推荐的路径出行,以最短的时间到达终点,能够尽可能地避免堵车问题,有利于人们更好地进行出行安排。The driving route acquisition method provided in this embodiment can obtain highly accurate driving time prediction results, and selectively display the prediction results, so that the user can travel according to the recommended route, reach the destination in the shortest time, and be able to Avoid traffic jams as much as possible, and help people make travel arrangements better.

图2为本发明实施例中的客户端根据输入的指令生成请求信息的流程图。请参见图2,“根据输入的指令生成请求信息”的步骤包括:Fig. 2 is a flow chart of the client generating request information according to the input instruction in the embodiment of the present invention. Please refer to Figure 2, the steps of "generating request information according to the input instruction" include:

步骤S111:获取输入的指令,该指令包括起点位置、终点位置及指定时间。Step S111: Acquiring an input command, the command includes a start position, an end position and a designated time.

步骤S112:客户端安装有全球定位系统,利用全球定位系统获取起点位置的GPS信息作为起点的信息,获取终点的GPS信息作为终点的信息。Step S112: The client is equipped with a global positioning system, and uses the global positioning system to obtain GPS information of the starting point as information of the starting point, and obtain GPS information of the ending point as information of the ending point.

步骤S113:客户端利用起点信息、终点信息和指定时间生成请求信息。Step S113: the client generates request information using the start point information, end point information and specified time.

在本实施例中,利用客户端安装的全球定位系统生成的GPS信息作为起点的心和和终点的信息,生成请求信息的方法简单,而且定位准确。In this embodiment, the GPS information generated by the global positioning system installed on the client is used as the starting point and destination information, the method of generating the request information is simple, and the positioning is accurate.

为了解决上述技术问题,本实施例提供了一种服务器,该服务器包括处理器和存储器,存储器中存储有多条指令,处理器适于加载所述指令以执行上述任意一种的行车路径预测方法,能够实现上述任意一种行车路径预测方法的有益效果,在此不再赘述。In order to solve the above-mentioned technical problems, this embodiment provides a server, the server includes a processor and a memory, a plurality of instructions are stored in the memory, and the processor is adapted to load the instructions to execute any one of the above-mentioned driving route prediction methods , can achieve the beneficial effect of any one of the above-mentioned driving route prediction methods, which will not be repeated here.

为了解决上述技术问题,本实施例提供了一种客户端,该客户端包括处理器和存储器,存储器中存储有多条指令,处理器适于加载指令以执行上述实施例中的任意一种的行车路径获取方法,能够实现上述任意一种行车路径获取方法的有益效果,在此不再赘述。In order to solve the above-mentioned technical problems, this embodiment provides a client, the client includes a processor and a memory, a plurality of instructions are stored in the memory, and the processor is adapted to load instructions to execute any one of the above-mentioned embodiments. The method for obtaining a driving route can realize the beneficial effect of any one of the above methods for obtaining a driving route, and will not be repeated here.

图10为本发明实施例中的一种服务器与客户端的连接结构示意图。请参见图10,服务器2和客户端1进行交互能够实现行车路径的推荐,其中,客户端1和服务器2均包括存储器和处理器。在本发明中,客户端可以为移动终端或者车载终端,其中,移动终端可以为智能手机、平板电脑等,车载终端主要是指智能汽车的车机。FIG. 10 is a schematic diagram of a connection structure between a server and a client in an embodiment of the present invention. Referring to FIG. 10 , the interaction between the server 2 and the client 1 can realize the recommendation of the driving route, wherein both the client 1 and the server 2 include a memory and a processor. In the present invention, the client may be a mobile terminal or a vehicle-mounted terminal, wherein the mobile terminal may be a smart phone, a tablet computer, etc., and the vehicle-mounted terminal mainly refers to a vehicle machine of a smart car.

请继续参见图10,在本发明中,客户端1执行以下步骤:根据输入的指令生成请求信息,并将请求信息发送至服务器2,其中,请求信息包括起点信息、终点信息和指定时间;接收推荐结果,并选择性地对推荐结果进行展示。Please continue to refer to Fig. 10, in the present invention, the client 1 performs the following steps: generate request information according to the input instruction, and send the request information to the server 2, wherein the request information includes starting point information, end point information and specified time; receiving Recommended results, and selectively display the recommended results.

请继续参见图10,在本发明中,服务器2执行以下步骤:服务器2接收请求信息,并根据请求信息,利用包括多个子路径的备选路径和每个子路径的标准时间,计算出推荐结果,推荐结果包括指定时间下的最短行车时间及目标路径,目标路径为最短行车时间所对应的备选路径;服务器2将推荐结果发送至客户端1。Please continue to refer to FIG. 10. In the present invention, the server 2 performs the following steps: the server 2 receives the request information, and according to the request information, calculates the recommendation result by using the alternative paths including multiple sub-paths and the standard time of each sub-path, The recommendation results include the shortest driving time and the target route under the specified time, and the target route is the alternative route corresponding to the shortest driving time; the server 2 sends the recommendation result to the client 1.

请继续参见图10,进一步地,服务器2的存储器包括预测模块201、路网数据库202和历史数据库203,其中,路网数据库202用于存储路网图像,历史数据库用于存储每个子路径的标准时间,以方便预测模块201在预测行车时间时分别从路网数据库202和历史数据库203中调取路网图像和标准时间。需要说明的是,路网数据库202和历史数据库203可以是基于分布式文件存储的数据库,此时,路网数据库202和历史数据库203可以不是服务器2的一部分,而只要保证路网数据库202和历史数据库203与服务器2连接即可。Please continue to refer to FIG. 10, further, the memory of the server 2 includes a prediction module 201, a road network database 202 and a historical database 203, wherein the road network database 202 is used to store road network images, and the historical database is used to store the standard of each sub-path Time, so that the prediction module 201 retrieves the road network image and the standard time from the road network database 202 and the history database 203 respectively when predicting the driving time. It should be noted that the road network database 202 and the history database 203 can be databases based on distributed file storage. The database 203 only needs to be connected to the server 2 .

图11为本发明实施例中的另一种服务器与客户端的连接结构示意图。请参见图11,进一步地,服务器2的存储器还包括离线数据处理模块204,离线数据处理模块204利用原始图像建立路网数据库,利用历史行车数据建立历史数据库,建立路网数据库和建立历史数据库的流程请参见上述实施例,此处不再赘述。需要说明的是,虽然本实施例中服务器2包括离线数据处理模块204,但实际上,离线数据处理模块204也可以不设置在服务器2内,而是与服务器2连接,这并不影响本实施例的实施。FIG. 11 is a schematic diagram of another connection structure between a server and a client in an embodiment of the present invention. Referring to Fig. 11, further, the memory of the server 2 also includes an offline data processing module 204, the offline data processing module 204 uses the original image to establish a road network database, utilizes historical driving data to establish a historical database, establishes a road network database and establishes a historical database. For the process, please refer to the above-mentioned embodiments, which will not be repeated here. It should be noted that although the server 2 in this embodiment includes an offline data processing module 204, in fact, the offline data processing module 204 may not be arranged in the server 2, but connected to the server 2, which does not affect this implementation Example implementation.

至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings, but those skilled in the art will easily understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to relevant technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present invention.

Claims (10)

1.一种行车路径推荐方法,其特征在于包括:1. A driving route recommendation method, characterized in that it comprises: 客户端根据输入的指令生成请求信息,并将所述请求信息发送至服务器,其中,所述请求信息包括起点信息、终点信息和指定时间;The client generates request information according to the input instruction, and sends the request information to the server, wherein the request information includes start point information, end point information and designated time; 所述服务器接收所述请求信息,并根据所述请求信息,利用包括至少两个子路径的备选路径和每个所述子路径的标准时间计算推荐结果,所述推荐结果包括所述指定时间下的最短行车时间及目标路径,所述目标路径为所述最短行车时间所对应的备选路径;The server receives the request information, and according to the request information, calculates a recommendation result using an alternative path including at least two sub-paths and a standard time of each of the sub-paths, and the recommendation result includes The shortest travel time and the target route, the target route is the alternative route corresponding to the shortest travel time; 所述服务器将所述推荐结果发送至所述客户端;The server sends the recommendation result to the client; 所述客户端接收所述推荐结果,并选择性地对所述推荐结果进行展示。The client receives the recommendation result, and selectively displays the recommendation result. 2.根据权利要求1所述的行车路径推荐方法,其特征在于,“利用包括多个子路径的备选路径和每个所述子路径的标准时间计算推荐结果”的步骤包括:2. The driving route recommendation method according to claim 1, characterized in that, the step of "utilizing the alternative route comprising a plurality of sub-paths and the standard time calculation recommendation result of each said sub-path" comprises: 从预建立的路网数据库中调取路网图像,所述路网图像包括多个节点以及连接相邻节点的所述子路径;Retrieving a road network image from a pre-established road network database, the road network image including a plurality of nodes and the sub-paths connecting adjacent nodes; 选择距离所述起点最近的节点作为第一节点,选择距离所述终点最近的节点作为第二节点,并生成至少一个备选路径,所述备选路径以所述第一节点和所述第二节点为端点且由至少两个所述子路径顺次连接构成;Selecting the node closest to the starting point as the first node, selecting the node closest to the end point as the second node, and generating at least one alternative path, the alternative path is based on the first node and the second node The node is an endpoint and is composed of at least two sub-paths connected in sequence; 从预建立的历史数据库中调取目标数据,所述目标数据为与所述指定时间具有同一时间属性的每个所述子路径的标准时间,所述时间属性是指该时间在一周中所处的某一天中的某一时段;Call the target data from the pre-established historical database, the target data is the standard time of each sub-path with the same time attribute as the specified time, the time attribute refers to the time in a week a certain period of time in a certain day; 将每个所述备选路径中的每个所述子路径的标准时间进行求和,以计算出每条所述备选路径的行车时间,并对每个所述行车时间进行比较以获得所述最短行车时间,将所述最短行车时间所对应的备选路径作为所述目标路径;Summing the standard times of each of the sub-paths in each of the candidate routes to calculate the travel time of each of the candidate routes, and comparing each of the travel times to obtain the The shortest travel time, the alternative route corresponding to the shortest travel time as the target route; 生成所述推荐结果,所述推荐结果包括所述最短行车时间和所述目标路径。The recommendation result is generated, and the recommendation result includes the shortest driving time and the target route. 3.根据权利要求2所述的行车路径推荐方法,其特征在于,3. The driving route recommendation method according to claim 2, characterized in that, 采用迪杰斯特拉算法、双向迪杰斯特拉算法或Astar算法生成所述备选路径。The candidate path is generated by using the Dijkstra algorithm, the bidirectional Dijkstra algorithm or the Astar algorithm. 4.根据权利要求3所述的行车路径推荐方法,其特征在于,4. The driving route recommendation method according to claim 3, characterized in that, 所述推荐结果还包括非目标路径,所述非目标路径的行车时间按照升序进行排列。The recommendation result also includes non-target routes, and the travel time of the non-target routes is arranged in ascending order. 5.根据权利要求2所述的行车路径推荐方法,其特征在于,建立所述路网数据库的操作具体为:5. The driving route recommendation method according to claim 2, wherein the operation of establishing the road network database is specifically: 获取原始图像,所述原始图像包括多条历史行车路径;Acquiring an original image, the original image includes a plurality of historical driving paths; 利用所述节点将所述原始图像中的每一条历史行车路径划分为至少两个所述子路径;dividing each historical driving path in the original image into at least two sub-paths by using the nodes; 提取所述节点和所述子路径以形成所述路网图像,并对所述路网图像进行存储以建立所述路网数据库。Extracting the nodes and the sub-paths to form the road network image, and storing the road network image to establish the road network database. 6.根据权利要求5所述的行车路径推荐方法,其特征在于,建立所述历史数据库的操作具体为:6. The driving route recommendation method according to claim 5, wherein the operation of establishing the historical database is specifically: 获取历史行车数据,所述历史行车数据包括历史行车时间,所述历史行车时间为通过所述子路径的实际时间;Acquiring historical driving data, the historical driving data includes historical driving time, and the historical driving time is the actual time of passing through the sub-path; 对同一时间属性下的同一所述子路径的历史行车时间进行加权平均计算,以获得子时间,并利用所述子时间求得所述标准时间;Performing weighted average calculation on the historical travel time of the same sub-path under the same time attribute to obtain the sub-time, and using the sub-time to obtain the standard time; 将所述标准时间按照所述时间属性进行分类并储存,以建立所述历史数据库。The standard time is classified and stored according to the time attribute, so as to establish the historical database. 7.根据权利要求6所述的行车路径推荐方法,其特征在于,所述行车路径推荐方法还包括:7. The driving route recommendation method according to claim 6, wherein the driving route recommendation method further comprises: 所述服务器获取天气预报信息,所述天气预报信息包括所述指定时间的天气属性,其中,所述目标数据与所述指定时间具有相同的天气属性。The server obtains weather forecast information, and the weather forecast information includes weather attributes at the specified time, wherein the target data has the same weather attributes as the specified time. 8.根据权利要求7所述的行车路径推荐方法,其特征在于,“建立所述历史数据库”的操作还包括:8. The driving route recommendation method according to claim 7, wherein the operation of "establishing the historical database" also includes: 在获得所述标准时间后及对所述标准时间进行储存之前,将所述标准时间按照所述天气属性进行分类。After the standard time is obtained and before the standard time is stored, the standard time is classified according to the weather attribute. 9.根据权利要求6-8中任一项所述的行车路径推荐方法,其特征在于,所述历史数据库为基于分布式文件存储的数据库。9. The driving route recommendation method according to any one of claims 6-8, wherein the historical database is a database based on distributed file storage. 10.根据权利要求6-8中任一项所述的行车路径推荐方法,其特征在于,至少两个所述子路径包括第一子路径,所述第一子路径为在一个所述时间属性下仅被包括在一条所述备选路径中的子路径,“利用所述子时间求得所述标准时间”的步骤包括:10. The driving route recommendation method according to any one of claims 6-8, wherein at least two of the sub-paths comprise a first sub-path, and the first sub-path is at one of the time attributes Under the sub-path that is only included in one of the alternative paths, the step of "using the sub-time to obtain the standard time" includes: 以所述第一子路径的子时间作为所述第一子路径的标准时间。The sub-time of the first sub-path is used as the standard time of the first sub-path.
CN201810719455.7A 2018-07-03 2018-07-03 Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device Pending CN108985506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810719455.7A CN108985506A (en) 2018-07-03 2018-07-03 Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810719455.7A CN108985506A (en) 2018-07-03 2018-07-03 Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device

Publications (1)

Publication Number Publication Date
CN108985506A true CN108985506A (en) 2018-12-11

Family

ID=64536838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810719455.7A Pending CN108985506A (en) 2018-07-03 2018-07-03 Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device

Country Status (1)

Country Link
CN (1) CN108985506A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670010A (en) * 2018-12-29 2019-04-23 北斗天地股份有限公司 Track data compensation process and device
CN109855637A (en) * 2018-12-24 2019-06-07 北京新能源汽车股份有限公司 Automatic driving path planning method, device and equipment for vehicle
CN110516888A (en) * 2019-09-02 2019-11-29 重庆紫光华山智安科技有限公司 Trajectory predictions method, apparatus, electronic equipment and computer readable storage medium
CN110750603A (en) * 2019-09-06 2020-02-04 日立楼宇技术(广州)有限公司 Building service prediction method, building service prediction device, building service prediction system, computer equipment and storage medium
CN111489549A (en) * 2020-03-11 2020-08-04 北京交通大学 Travel vehicle path selection method based on historical behavior portrait
CN111582527A (en) * 2019-02-15 2020-08-25 拉扎斯网络科技(上海)有限公司 Travel time estimation method and device, electronic equipment and storage medium
CN112396233A (en) * 2020-11-20 2021-02-23 杭州贝嘟科技有限公司 Intelligent flat cable recommendation method and device, computer equipment and storage medium
CN113537548A (en) * 2020-04-21 2021-10-22 杭州海康威视数字技术股份有限公司 Method, device and equipment for recommending driving route

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120283948A1 (en) * 2011-05-03 2012-11-08 University Of Southern California Hierarchical and Exact Fastest Path Computation in Time-dependent Spatial Networks
CN104215254A (en) * 2013-05-31 2014-12-17 国际商业机器公司 Path navigation method and apparatus thereof
CN104517155A (en) * 2013-09-26 2015-04-15 Sap欧洲公司 System used for dynamic path optimization and method thereof
CN105067001A (en) * 2015-07-27 2015-11-18 福建工程学院 Route setting method and system based on taxi experience data
US20160044571A1 (en) * 2013-04-11 2016-02-11 Lg Electronics Inc. Method for delivering optimum path including plurality of passage places and apparatus therefor
CN105716622A (en) * 2016-04-12 2016-06-29 玉环看知信息科技有限公司 Navigation method and navigation server
CN107643085A (en) * 2017-09-18 2018-01-30 苏州大学 Recommend method and apparatus in a kind of path

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120283948A1 (en) * 2011-05-03 2012-11-08 University Of Southern California Hierarchical and Exact Fastest Path Computation in Time-dependent Spatial Networks
US20160044571A1 (en) * 2013-04-11 2016-02-11 Lg Electronics Inc. Method for delivering optimum path including plurality of passage places and apparatus therefor
CN104215254A (en) * 2013-05-31 2014-12-17 国际商业机器公司 Path navigation method and apparatus thereof
CN104517155A (en) * 2013-09-26 2015-04-15 Sap欧洲公司 System used for dynamic path optimization and method thereof
CN105067001A (en) * 2015-07-27 2015-11-18 福建工程学院 Route setting method and system based on taxi experience data
CN105716622A (en) * 2016-04-12 2016-06-29 玉环看知信息科技有限公司 Navigation method and navigation server
CN107643085A (en) * 2017-09-18 2018-01-30 苏州大学 Recommend method and apparatus in a kind of path

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109855637A (en) * 2018-12-24 2019-06-07 北京新能源汽车股份有限公司 Automatic driving path planning method, device and equipment for vehicle
CN109670010A (en) * 2018-12-29 2019-04-23 北斗天地股份有限公司 Track data compensation process and device
CN111582527A (en) * 2019-02-15 2020-08-25 拉扎斯网络科技(上海)有限公司 Travel time estimation method and device, electronic equipment and storage medium
CN110516888A (en) * 2019-09-02 2019-11-29 重庆紫光华山智安科技有限公司 Trajectory predictions method, apparatus, electronic equipment and computer readable storage medium
CN110750603A (en) * 2019-09-06 2020-02-04 日立楼宇技术(广州)有限公司 Building service prediction method, building service prediction device, building service prediction system, computer equipment and storage medium
CN110750603B (en) * 2019-09-06 2022-08-12 日立楼宇技术(广州)有限公司 Building service forecasting method, apparatus, system, computer equipment and storage medium
CN111489549A (en) * 2020-03-11 2020-08-04 北京交通大学 Travel vehicle path selection method based on historical behavior portrait
CN111489549B (en) * 2020-03-11 2021-08-27 北京交通大学 Travel vehicle path selection method based on historical behavior portrait
CN113537548A (en) * 2020-04-21 2021-10-22 杭州海康威视数字技术股份有限公司 Method, device and equipment for recommending driving route
CN113537548B (en) * 2020-04-21 2024-04-23 杭州海康威视数字技术股份有限公司 Recommendation method, device and equipment for driving route
CN112396233A (en) * 2020-11-20 2021-02-23 杭州贝嘟科技有限公司 Intelligent flat cable recommendation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108985506A (en) Driving path recommendation method, driving path prediction method, driving path acquisition method and driving path acquisition device
US12013252B2 (en) System and method for performing multivariate optimizations based on location data
US11305780B2 (en) Road condition status prediction method, device, and server, and storage medium
CN103459982B (en) Produce block dependency sector data
US10290073B2 (en) Providing guidance for locating street parking
Andersen et al. Ecotour: Reducing the environmental footprint of vehicles using eco-routes
US9689693B2 (en) Systems and methods for learning and displaying customized geographical navigational options
EP3051259B1 (en) Navigation system with map update mechanism and method of operation thereof
US9200910B2 (en) Ranking of path segments based on incident probability
US9644981B1 (en) Collective vehicle traffic routing
CN110491158B (en) Bus arrival time prediction method and system based on multi-metadata fusion
CN110375760A (en) Route determination method, apparatus, equipment and medium
CN112384758A (en) Multi-mode method for traffic route selection
CN107167136B (en) An electronic map-oriented location recommendation method and system
CN107228677A (en) Driftage recognition methods and device
US20150176996A1 (en) Systems and Methods for Unified Directions
CN108108831A (en) A kind of destination Forecasting Methodology and device
CN113706857B (en) Method, device and equipment for determining road trafficability and storage medium
EP3505867A2 (en) Method, apparatus, and computer program product for traffic optimized routing
US20160153787A1 (en) Method and system for division of road network
CN118031997B (en) GIS-based space geographic information service method and device
US20230023255A1 (en) Controlled ingestion of map update data
CN108332754B (en) Path optimization method and device, electronic equipment and computer storage medium
Narkhede et al. Bus tracking system based on location aware services
US20210325192A1 (en) Fine-Tuned Navigation Directions

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
TA01 Transfer of patent application right

Effective date of registration: 20200915

Address after: Susong Road West and Shenzhen Road North, Hefei Economic and Technological Development Zone, Anhui Province

Applicant after: Weilai (Anhui) Holding Co.,Ltd.

Address before: 30 Floor of Yihe Building, No. 1 Kangle Plaza, Central, Hong Kong, China

Applicant before: NIO NEXTEV Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211

RJ01 Rejection of invention patent application after publication