[go: up one dir, main page]

CN110910202B - An order processing method and device - Google Patents

An order processing method and device Download PDF

Info

Publication number
CN110910202B
CN110910202B CN201911013759.2A CN201911013759A CN110910202B CN 110910202 B CN110910202 B CN 110910202B CN 201911013759 A CN201911013759 A CN 201911013759A CN 110910202 B CN110910202 B CN 110910202B
Authority
CN
China
Prior art keywords
path
car
carpooling
order
hailing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911013759.2A
Other languages
Chinese (zh)
Other versions
CN110910202A (en
Inventor
张之硕
郭玉林
王昕�
宋恩龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Leading Technology Co Ltd
Original Assignee
Nanjing Leading Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Leading Technology Co Ltd filed Critical Nanjing Leading Technology Co Ltd
Priority to CN201911013759.2A priority Critical patent/CN110910202B/en
Publication of CN110910202A publication Critical patent/CN110910202A/en
Application granted granted Critical
Publication of CN110910202B publication Critical patent/CN110910202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/02Reservations, e.g. for tickets, services or events

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the invention provides an order processing method and device. The method comprises the following steps: receiving taxi appointment orders of at least two clients, and determining a first path distance, wherein the first path distance is the shortest car sharing path distance combining the taxi appointment orders; acquiring target paths of the taxi appointment order, and determining a second path distance, wherein the second path distance is the sum of the path distances of each target path; determining a carpooling parameter according to the first path distance and the second path distance; the carpooling parameter is the ratio of the difference value between the first path distance and the second path distance to the longest path in the target paths; and if the car sharing parameters meet the preset numerical value requirements, combining each car booking order into a target order. The embodiment of the invention solves the problem that in the prior art, the network appointment platform only compares the starting point and the ending point in the car sharing process and has limitation.

Description

一种订单处理方法及装置An order processing method and device

技术领域technical field

本发明涉及互联网技术领域,尤其涉及一种订单处理方法及装置。The present invention relates to the field of Internet technologies, and in particular, to an order processing method and device.

背景技术Background technique

近年来,随着移动互联网行业的迅速发展,传统交通运输与互联网融合的行业新业态蓬勃发展,使得网络约车服务(简称网约车)俨然已经成为用户出行的一个重要方式,网约车可满足用户在不同出行场景中的使用需求,用户规模持续、稳定地增长,其在短时间内迅速占据了大量的用户市场,也为用户出行带来了极大的便利。In recent years, with the rapid development of the mobile Internet industry, new forms of industry integrating traditional transportation and the Internet have flourished, making online car-hailing services (referred to as online car-hailing) as an important way for users to travel. To meet the needs of users in different travel scenarios, the scale of users continues to grow steadily, and it quickly occupies a large number of user markets in a short period of time, and it also brings great convenience for users to travel.

在网约车领域,拼车作为一种组合出行方式,一方面能为用户出行带来便利,降低乘客的乘车费用,另一方面还能合理调配车辆资源,因此,拼车在一定程度上得到了用户的认可。然而,现有技术中,网约车平台在拼车流程中,通常只比对行程的相似度,即只比对两个拼车用户的行程的起点和终点是否接近;然后,只考虑起点和终点是否接近,并不能完全适用所有场景,比如存在起点和终点接近,但行程并不相关的情况。In the field of online car-hailing, carpooling, as a combined travel method, on the one hand, can bring convenience to users, reduce the cost of passengers, and on the other hand, can reasonably allocate vehicle resources. Therefore, carpooling has gained a certain extent. User's approval. However, in the prior art, in the car-sharing process, the car-hailing platform usually only compares the similarity of the trips, that is, only compares whether the start and end points of the trips of two car-sharing users are close; then, only consider whether the start and end points are close. Proximity is not fully applicable to all scenarios. For example, there is a situation where the starting point and the ending point are close, but the itinerary is not related.

因此,仅比对起点和终点,具有一定的局限性。Therefore, only comparing the start and end points has certain limitations.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种订单处理方法及装置,以解决现有技术中,网约车平台在拼车的过程中,仅比对起点和终点,具有局限性的问题。The embodiments of the present invention provide an order processing method and device to solve the problem of limitation in the prior art that the online car-hailing platform only compares the starting point and the ending point in the process of carpooling.

一方面,本发明实施例提供了一种订单处理方法,所述方法包括:On the one hand, an embodiment of the present invention provides an order processing method, the method includes:

接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离;Receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance obtained by combining each of the car-hailing orders;

获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和;Obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths;

根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;A carpooling parameter is determined according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance, and the target path The ratio between the longest paths in ;

若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单。If the carpooling parameters meet the preset value requirements, each of the car-hailing orders is merged into a target order.

另一方面,本发明实施例还提供一种打车申请处理装置,应用于服务器,所述装置包括:On the other hand, an embodiment of the present invention also provides a taxi application processing device, which is applied to a server, and the device includes:

订单接收模块,用于接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离;an order receiving module, configured to receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance obtained by merging each of the car-hailing orders;

距离确定模块,用于获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和;A distance determination module, configured to obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths;

参数确定模块,用于根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;A parameter determination module, configured to determine carpooling parameters according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance , and the ratio between the longest path in the target path;

订单合并模块,用于若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单。An order merging module, configured to merge each of the car-hailing orders into a target order if the car-pooling parameters meet preset numerical requirements.

又一方面,本发明实施例还提供一种电子设备,该电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的订单处理方法中的步骤。In another aspect, an embodiment of the present invention also provides an electronic device, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the computer program when the processor executes the computer program. The steps in the order processing method described above.

再一方面,本发明实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的订单处理方法中的步骤。In another aspect, an embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above-mentioned order processing method are implemented .

在本发明实施例中,通过接收至少两个客户端的约车订单,确定第一路径距离;获取所述约车订单的目标路径,确定第二路径距离;根据所述第一路径距离与所述第二路径距离,确定拼车参数;若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单,通过拼车参数表征订单的匹配程度,避免匹配程度较低的订单被合并,甚至造成总里程更长。In the embodiment of the present invention, a first path distance is determined by receiving car-hailing orders from at least two clients; a target path of the car-hailing orders is obtained, and a second path distance is determined; The second path distance is to determine carpooling parameters; if the carpooling parameters meet the preset value requirements, each of the car-hailing orders is merged into a target order, and the carpooling parameters are used to characterize the matching degree of the orders, so as to avoid orders with lower matching degrees from being Combined, even resulting in a longer total mileage.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1为本发明实施例提供的订单处理方法的步骤流程图;1 is a flowchart of steps of an order processing method provided by an embodiment of the present invention;

图2为本发明实施例的示例的场景图之一;FIG. 2 is one of scene diagrams of an example of an embodiment of the present invention;

图3为本发明实施例的示例的场景图之二;FIG. 3 is the second example scene diagram of the embodiment of the present invention;

图4为本发明实施例的示例的场景图之三;FIG. 4 is a third example scene diagram of an embodiment of the present invention;

图5为本发明实施例提供的打车申请处理装置的结构框图;5 is a structural block diagram of an apparatus for processing a taxi application provided by an embodiment of the present invention;

图6为本发明实施例提供的电子设备的结构框图。FIG. 6 is a structural block diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the following processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the implementation of the present invention The implementation of the examples constitutes no limitation.

参见图1,本发明实施例提供了一种订单处理方法,优选地,本发明应用于网约车服务器或网约车平台,服务器或网约车平台与客户端通信,接收客户端的约车订单,并为约车订单调配车辆。Referring to FIG. 1 , an embodiment of the present invention provides an order processing method. Preferably, the present invention is applied to a car-hailing server or a car-hailing platform. The server or car-hailing platform communicates with a client and receives a car-hailing order from the client. , and deploy vehicles for ride-hailing orders.

所述方法包括:The method includes:

步骤101,接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离。Step 101: Receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance obtained by combining each of the car-hailing orders.

其中,服务器可预设有派单周期,派单周期可以是分钟级或者秒级时间;在每个派单周期内,对接收到的约车订单进行汇总,筛选出可以拼车的订单。Among them, the server can preset an order dispatch cycle, and the order dispatch cycle can be in minutes or seconds; in each dispatch cycle, the received car-hailing orders are summarized, and the orders that can be carpooled are screened out.

可以理解的是,客户端可在用户下单时提供拼车选项,或询问用户是否接受拼车;若用户主动选择拼车选项或向客户端反馈接受拼车时,客户端向服务器发送携带有预设拼车指示的约车订单。It is understandable that the client can provide carpooling options when the user places an order, or ask the user whether to accept the carpooling; if the user actively selects the carpooling option or reports to the client to accept the carpooling, the client sends a carpooling instruction with a preset carpooling instruction to the server. ride-hailing orders.

服务器接收携带有预设拼车指示的约车订单后,判断符合拼车规则的可合并订单,然后确定将订单合并后的拼车路径,拼车路径中应包含每个约定订单中的行程的起点以及终点,最后确定拼车路径中的最短路径的最短拼车路径距离。After receiving the car-hailing order with the preset car-pooling instructions, the server determines the mergeable orders that meet the car-pooling rules, and then determines the car-pooling route after combining the orders. The car-pooling route should include the start and end points of the itinerary in each agreed order. Finally, the shortest carpool path distance of the shortest path in the carpool path is determined.

本发明实施例中,合并的约车订单可以是两个或两个以上。In the embodiment of the present invention, the combined car-hailing orders may be two or more.

步骤102,获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和。Step 102: Obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths.

其中,服务器获取每个约车订单的目标路径,然后将所有约车订单的目标路径的距离求和,得到第二路径距离。The server obtains the target path of each car-hailing order, and then sums the distances of the target paths of all the car-hailing orders to obtain the second path distance.

比如,若约车订单A的目标路径为D(A),约车订单B的目标路径为D(B),则第二路径距离为D(A)+D(B)。For example, if the target path of car-hailing order A is D(A) and the target path of car-hailing order B is D(B), the second path distance is D(A)+D(B).

可以理解的是,每个约车订单的行程中,可能具有多条可选路径,目标路径为可选路径中的一条。It is understandable that there may be multiple optional paths in the itinerary of each car-hailing order, and the target path is one of the optional paths.

步骤103,根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值。Step 103: Determine carpooling parameters according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance, which is the difference between the first path distance and the second path distance. The ratio between the longest paths among the stated target paths.

其中,拼车参数表示拼车路径所节省的路径距离(即里程,对于车辆而言)与最长路径之间的比值关系,通过拼车参数表征订单的匹配程度;拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;比如,以两个约车订单拼车为例,约车订单A的目标路径为D(A),约车订单B的目标路径为D(B),将拼车订单A与拼车订单B合并后的拼车路径为D(A+B),则拼车参数如下:Among them, the carpooling parameter represents the ratio between the path distance (ie mileage, for vehicles) saved by the carpooling path and the longest path, and the carpooling parameter represents the matching degree of the order; the carpooling parameter is the distance between the first path and the longest path. The difference between the distances of the second path and the ratio between the longest path in the target path; for example, taking two car-hailing orders as an example, the target path of the car-hailing order A is D(A ), the target path of car-hailing order B is D(B), and the car-pooling path after merging car-sharing order A and car-sharing order B is D(A+B), then the car-pooling parameters are as follows:

Figure BDA0002245016640000041
Figure BDA0002245016640000041

其中,P为拼车参数,MAX[D(A),D(B)]为所述目标路径中的(距离)最长路径;第一路径距离与所述第二路径距离之间的差值即通过拼车所节省的路径距离;通过比对拼车所节省的路径距离与最长路径之间的比值,判断本次拼车节省里程的效果是否明显。Among them, P is the carpooling parameter, MAX[D(A), D(B)] is the longest path (distance) in the target path; the difference between the first path distance and the second path distance is The path distance saved by carpooling; by comparing the ratio between the path distance saved by carpooling and the longest path, it is judged whether the effect of saving mileage by carpooling is obvious.

步骤104,若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单。Step 104, if the carpooling parameters meet the preset value requirements, combine each car-hailing order into a target order.

其中,若所述拼车参数满足预设数值要求,比如大于一预设阈值,预设阈值可以是10%或其他正数,拼车参数越大,表示拼车所节省的里程更具有意义;将每个所述约车订单合并为目标订单,即拼车订单;若所述约车订单均为乘客发出的,则将所述订单派发出去;若所述约车订单中存在司机发出的订单,即顺风车,则将所述订单派发给该司机的客户端。Wherein, if the carpooling parameter meets the preset numerical requirements, for example, it is greater than a preset threshold, the preset threshold may be 10% or other positive numbers, and the larger the carpooling parameter is, the more meaningful the mileage saved by carpooling is; The car-hailing orders are combined into a target order, that is, a carpooling order; if the car-hailing orders are all issued by passengers, the orders will be dispatched; if there is an order issued by the driver in the car-hailing order, that is, a ride , the order is dispatched to the driver's client.

可以理解的是,对于路径距离较短的用户,即目标路径非最长路径的用户,所节省的路径距离与该用户的路径比值,必然大于P值,则节省程度必然高于最长路径的节省程度,因此,本发明实施例中,以最长路径作为参考计算拼车参数。It can be understood that for users with short path distances, that is, users whose target path is not the longest path, the ratio of the saved path distance to the user's path must be greater than the P value, and the saving degree must be higher than that of the longest path. Therefore, in this embodiment of the present invention, the carpooling parameter is calculated with the longest path as a reference.

这样,服务器在拼车过程中,不仅考虑约车订单中行程的起点和终点,还考虑所节省的里程相对于最长路径的节省程度;若节省程度较大,则可将订单合并;若节省程度非常小,甚至拼车参数为负值,对用户而言,拼车路径反而更长了,耗时更长,则不必合并。In this way, in the process of carpooling, the server not only considers the starting point and end point of the journey in the car-hailing order, but also considers the saving degree of the saved mileage relative to the longest route; if the saving degree is greater, the orders can be combined; Very small, even if the carpooling parameter is a negative value, for the user, the carpooling path is longer and takes longer, so there is no need to merge.

现有技术中,拼车过程只考虑起点和终点,起点和终点之间通常具有两条以上路径,而有时两个订单之间起点和终点均比较接近,但路径并不相同,此时盲目合并订单对用户而言并不合适,甚至合并之后会造成总里程更长,因此,仅比对起点和终点,具有一定的缺陷。In the prior art, the carpooling process only considers the starting point and the ending point. There are usually more than two paths between the starting point and the ending point. Sometimes the starting point and the ending point between the two orders are relatively close, but the paths are not the same. At this time, the orders are blindly merged. It is not suitable for users, and even the total mileage will be longer after the combination. Therefore, only comparing the starting point and the ending point has certain defects.

作为示例,关于拼车参数表征匹配程度,参见图2至图4,图2中为示例1,图3中为示例2,图4中为示例3;As an example, with regard to the carpooling parameters representing the matching degree, please refer to FIG. 2 to FIG. 4 , FIG. 2 is Example 1, FIG. 3 is Example 2, and FIG. 4 is Example 3;

参见以下表1,表1中为各示例的路径距离,以单位为10千米为例;See Table 1 below. Table 1 is the path distance of each example, with the unit of 10 kilometers as an example;

表1:Table 1:

Figure BDA0002245016640000051
Figure BDA0002245016640000051

Figure BDA0002245016640000061
Figure BDA0002245016640000061

如图2中示例1所示,P<0,则两个约车订单不匹配,D(A+B)相对于D(A)、D(B)均延长了里程。As shown in Example 1 in Figure 2, if P<0, the two car-hailing orders do not match, and D(A+B) extends the mileage relative to both D(A) and D(B).

如图3中示例2所示,P=50%,两个约车订单匹配;如图4中示例3所示,P=30%,两个约车订单匹配。As shown in Example 2 in Figure 3, P=50%, two car-hailing orders match; as shown in Example 3 in Figure 4, P=30%, two car-hailing orders match.

本发明实施例中,通过接收至少两个客户端的约车订单,确定第一路径距离;获取所述约车订单的目标路径,确定第二路径距离;根据所述第一路径距离与所述第二路径距离,确定拼车参数;若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单,通过拼车参数表征订单的匹配程度,避免匹配程度较低的订单被合并,甚至造成总里程更长;本发明实施例解决了现有技术中,网约车平台在拼车的过程中,仅比对起点和终点,具有局限性的问题。In the embodiment of the present invention, the first path distance is determined by receiving car-hailing orders from at least two clients; the target path of the car-hailing orders is obtained, and the second path distance is determined; Second, the path distance is used to determine the carpooling parameters; if the carpooling parameters meet the preset value requirements, each car-hailing order is merged into a target order, and the matching degree of the orders is represented by the carpooling parameters, so as to avoid orders with a low matching degree from being merged , even resulting in a longer total mileage; the embodiment of the present invention solves the problem of limitation in the prior art that the online car-hailing platform only compares the starting point and the ending point in the process of carpooling.

可选地,本发明实施例中,所述获取所述约车订单的目标路径,确定第二路径距离的步骤,包括:Optionally, in the embodiment of the present invention, the step of obtaining the target path of the car-hailing order and determining the second path distance includes:

判断每个所述约车订单的可选路径中,是否存在使所述第二路径距离大于所述第一路径距离的目标路径:Determine whether there is a target path that makes the second path distance greater than the first path distance in the optional paths of each car-hailing order:

若是,根据所述目标路径,确定第二路径距离;If so, determine the second path distance according to the target path;

若否,确定所述约车订单不满足拼车要求。If not, it is determined that the car-hailing order does not meet the carpooling requirements.

其中,每个约车订单的行程中,可能具有多条可选路径,目标路径为可选路径中的一条;比如,对于约车订单A,其可选路径包括A1、A2、A3;对于约车订单B,其可选路径包括B1、B2;Among them, the itinerary of each car-hailing order may have multiple optional paths, and the target path is one of the optional paths; for example, for car-hailing order A, its optional paths include A1, A2, and A3; Vehicle order B, its optional paths include B1 and B2;

第二路径距离为D(A)+D(B),服务器判断约车订单A的可选路径中是否存在至少一条路径A0,约车订单B的可选路径中是否存在至少一条路径B0,满足D(A0)+D(B0)大于第一路径距离D(A+B)。The second path distance is D(A)+D(B), the server determines whether there is at least one path A0 in the optional paths of the car-hailing order A, and whether there is at least one path B0 in the optional paths of the car-hailing order B, satisfying D(A0)+D(B0) is greater than the first path distance D(A+B).

若存在,则确定约车订单可以合并,执行后续流程,确定第二路径距离;If it exists, it is determined that the car-hailing order can be merged, and the subsequent process is performed to determine the second path distance;

否则,确定所述约车订单不满足拼车要求,结束流程。Otherwise, it is determined that the car-hailing order does not meet the carpooling requirements, and the process ends.

可选地,本发明实施例中,所述确定第一路径距离的步骤,包括:Optionally, in this embodiment of the present invention, the step of determining the first path distance includes:

确定将每个所述约车订单合并的拼车路径,所述拼车路径依次包括起点部分以及终点部分,所述起点部分包括每个所述约车订单中的拼车行程的起点;所述终点部分包括每个所述约车订单中的拼车行程的终点;determining a carpooling route for merging each of the car-hailing orders, the carpooling route includes a starting point part and an ending part in sequence, the starting point part includes the starting point of the carpooling trip in each of the car-hailing orders; the ending point part includes the end point of the carpool trip in each said ride-hailing order;

确定所述拼车路径中的最短拼车路径距离。A shortest carpool path distance among the carpool paths is determined.

其中,首先将所有约车订单的拼车行程的起点划分在一个集合中,即起点部分;然后将所有终点划分在一个集合中,作为终点部分;比如,对于约车订单A以及约车订单B;根据约车订单A的起点和终点,以及约车订单B的起点和终点,从A的起点和B的起点中选择一个点作为起点,另外一个作为后继点;然后从A的终点和B的终点中选择一个点作为第三个点,另外一个作为终点,且根据电子地图GPS导航的最短路径搜索规划计算出规划,拼车路径可以有几下几种路径:Among them, the starting points of the carpooling trips of all car-hailing orders are firstly divided into a set, that is, the starting point part; then all the end points are divided into a set, which is the end-point part; for example, for car-hailing order A and car-hailing order B; According to the starting point and ending point of the car-hailing order A, and the starting point and ending point of the car-hailing order B, select one point from the starting point of A and the starting point of B as the starting point, and the other one as the successor point; then from the ending point of A and the ending point of B Select one point as the third point and the other as the end point, and calculate the plan according to the shortest path search plan of GPS navigation on the electronic map. There are several paths for carpooling:

路径一:A起点→B起点→A终点→B终点;Path 1: A starting point → B starting point → A ending point → B ending point;

路径二:A起点→B起点→B终点→A终点;Path 2: A starting point → B starting point → B ending point → A ending point;

路径三:B起点→A起点→A终点→B终点;Path 3: B starting point → A starting point → A ending point → B ending point;

路径四:B起点→A起点→B终点→A终点;Path 4: B start point → A start point → B end point → A end point;

然后从上述四个路径中筛选一个最短路径的距离作为最短拼车路径距离。Then filter the distance of a shortest path from the above four paths as the shortest carpooling path distance.

可选地,本发明实施例中,所述最短拼车路径距离中包括每个所述起点以及每个所述终点,且不重复经过所述起点和/或终点,即最短拼车路径中应包括每个起点以及每个终点,且整个行程按照顺序不重复每个起点或终点。Optionally, in this embodiment of the present invention, the distance of the shortest carpooling path includes each of the starting points and each of the end points, and does not pass through the starting point and/or the end point repeatedly, that is, the shortest carpooling path should include each of the starting points and/or the ending points. each start point and each end point, and the entire trip does not repeat each start point or end point in sequence.

其中,判断两个约车是否可以匹配时,时间和距离是一个行程的效率的具体体现,通过先假定两个行程可以合并,并计算其最短路径,然后再分别和两个行程的单独路径的进行比较。Among them, when judging whether the two rides can be matched, the time and distance are the concrete manifestations of the efficiency of one trip. By first assuming that the two trips can be combined, and calculating the shortest path, and then comparing the two trips with the separate paths of the two trips. Compare.

本发明实施例中,通过接收至少两个客户端的约车订单,确定第一路径距离;获取所述约车订单的目标路径,确定第二路径距离;根据所述第一路径距离与所述第二路径距离,确定拼车参数;若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单,通过拼车参数表征订单的匹配程度,避免匹配程度较低的订单被合并,甚至造成总里程更长。In the embodiment of the present invention, the first path distance is determined by receiving car-hailing orders from at least two clients; the target path of the car-hailing orders is obtained, and the second path distance is determined; Second, the path distance is used to determine the carpooling parameters; if the carpooling parameters meet the preset value requirements, each car-hailing order is merged into a target order, and the matching degree of the orders is represented by the carpooling parameters, so as to avoid orders with a low matching degree from being merged , even resulting in longer total mileage.

以上由服务器侧介绍了本发明实施例提供的订单处理方法,下面将结合附图介绍本发明实施例提供的订单处理装置。The order processing method provided by the embodiment of the present invention is described above on the server side, and the order processing apparatus provided by the embodiment of the present invention will be described below with reference to the accompanying drawings.

参见图5,本发明实施例提供了一种订单处理装置,所述装置包括:Referring to FIG. 5, an embodiment of the present invention provides an order processing apparatus, and the apparatus includes:

订单接收模块501,用于接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离。The order receiving module 501 is configured to receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance obtained by combining each of the car-hailing orders.

其中,服务器可预设有派单周期,派单周期可以是分钟级或者秒级时间;在每个派单周期内,对接收到的约车订单进行汇总,筛选出可以拼车的订单。Among them, the server can preset an order dispatch cycle, and the order dispatch cycle can be in minutes or seconds; in each dispatch cycle, the received car-hailing orders are summarized, and the orders that can be carpooled are screened out.

可以理解的是,客户端可在用户下单时提供拼车选项,或询问用户是否接受拼车;若用户主动选择拼车选项或向客户端反馈接受拼车时,客户端向服务器发送携带有预设拼车指示的约车订单。It is understandable that the client can provide carpooling options when the user places an order, or ask the user whether to accept the carpooling; if the user actively selects the carpooling option or reports to the client to accept the carpooling, the client sends a carpooling instruction with a preset carpooling instruction to the server. ride-hailing orders.

服务器接收携带有预设拼车指示的约车订单后,判断符合拼车规则的可合并订单,然后确定将订单合并后的拼车路径,拼车路径中应包含每个约定订单中的行程的起点以及终点,最后确定拼车路径中的最短路径的最短拼车路径距离。After receiving the car-hailing order with the preset car-pooling instructions, the server determines the mergeable orders that meet the car-pooling rules, and then determines the car-pooling route after combining the orders. The car-pooling route should include the start and end points of the itinerary in each agreed order. Finally, the shortest carpool path distance of the shortest path in the carpool path is determined.

本发明实施例中,合并的约车订单可以是两个或两个以上。In the embodiment of the present invention, the combined car-hailing orders may be two or more.

距离确定模块502,用于获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和。The distance determination module 502 is configured to acquire the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths.

其中,服务器获取每个约车订单的目标路径,然后将所有约车订单的目标路径的距离求和,得到第二路径距离。The server obtains the target path of each car-hailing order, and then sums the distances of the target paths of all the car-hailing orders to obtain the second path distance.

比如,若约车订单A的目标路径为D(A),约车订单B的目标路径为D(B),则第二路径距离为D(A)+D(B)。For example, if the target path of car-hailing order A is D(A) and the target path of car-hailing order B is D(B), the second path distance is D(A)+D(B).

可以理解的是,每个约车订单的行程中,可能具有多条可选路径,目标路径为可选路径中的一条。It is understandable that there may be multiple optional paths in the itinerary of each car-hailing order, and the target path is one of the optional paths.

参数确定模块503,用于根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值。A parameter determination module 503, configured to determine carpooling parameters according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance value, the ratio of the longest path among the target paths.

其中,拼车参数表示拼车路径所节省的路径距离(即里程,对于车辆而言)与最长路径之间的比值关系,通过拼车参数表征订单的匹配程度;拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;比如,以两个约车订单拼车为例,约车订单A的目标路径为D(A),约车订单B的目标路径为D(B),将拼车订单A与拼车订单B合并后的拼车路径为D(A+B),则拼车参数如下:Among them, the carpooling parameter represents the ratio between the path distance (ie mileage, for vehicles) saved by the carpooling path and the longest path, and the carpooling parameter represents the matching degree of the order; the carpooling parameter is the distance between the first path and the longest path. The difference between the distances of the second path and the ratio between the longest path in the target path; for example, taking two car-hailing orders as an example, the target path of the car-hailing order A is D(A ), the target path of car-hailing order B is D(B), and the car-pooling path after merging car-sharing order A and car-sharing order B is D(A+B), then the car-pooling parameters are as follows:

Figure BDA0002245016640000091
Figure BDA0002245016640000091

其中,P为拼车参数,MAX[D(A),D(B)]为所述目标路径中的(距离)最长路径;第一路径距离与所述第二路径距离之间的差值即通过拼车所节省的路径距离;通过比对拼车所节省的路径距离与最长路径之间的比值,判断本次拼车节省里程的效果是否明显。Among them, P is the carpooling parameter, MAX[D(A), D(B)] is the longest path (distance) in the target path; the difference between the first path distance and the second path distance is The path distance saved by carpooling; by comparing the ratio between the path distance saved by carpooling and the longest path, it is judged whether the effect of saving mileage by carpooling is obvious.

订单合并模块504,用于若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单。The order merging module 504 is configured to merge each car-hailing order into a target order if the car-pooling parameter meets a preset value requirement.

其中,若所述拼车参数满足预设数值要求,比如大于一预设阈值,预设阈值可以是10%或其他正数,拼车参数越大,表示拼车所节省的里程更具有意义;将每个所述约车订单合并为目标订单,即拼车订单;若所述约车订单均为乘客发出的,则将所述订单派发出去;若所述约车订单中存在司机发出的订单,即顺风车,则将所述订单派发给该司机的客户端。Wherein, if the carpooling parameter meets the preset numerical requirements, for example, it is greater than a preset threshold, the preset threshold may be 10% or other positive numbers, and the larger the carpooling parameter is, the more meaningful the mileage saved by carpooling is; The car-hailing orders are combined into a target order, that is, a carpooling order; if the car-hailing orders are all issued by passengers, the orders will be dispatched; if there is an order issued by the driver in the car-hailing order, that is, a ride , the order is dispatched to the driver's client.

可以理解的是,对于路径距离较短的用户,即目标路径非最长路径的用户,所节省的路径距离与该用户的路径比值,必然大于P值,则节省程度必然高于最长路径的节省程度,因此,本发明实施例中,以最长路径作为参考计算拼车参数。It can be understood that for users with short path distances, that is, users whose target path is not the longest path, the ratio of the saved path distance to the user's path must be greater than the P value, and the saving degree must be higher than that of the longest path. Therefore, in this embodiment of the present invention, the carpooling parameter is calculated with the longest path as a reference.

这样,服务器在拼车过程中,不仅考虑约车订单中行程的起点和终点,还考虑所节省的里程相对于最长路径的节省程度;若节省程度较大,则可将订单合并;若节省程度非常小,甚至拼车参数为负值,对用户而言,拼车路径反而更长了,耗时更长,则不必合并。In this way, in the process of carpooling, the server not only considers the starting point and end point of the journey in the car-hailing order, but also considers the saving degree of the saved mileage relative to the longest route; if the saving degree is greater, the orders can be combined; Very small, even if the carpooling parameter is a negative value, for the user, the carpooling path is longer and takes longer, so there is no need to merge.

现有技术中,拼车过程只考虑起点和终点,起点和终点之间通常具有两条以上路径,而有时两个订单之间起点和终点均比较接近,但路径并不相同,此时盲目合并订单对用户而言并不合适,甚至合并之后会造成总里程更长,因此,仅比对起点和终点,具有一定的缺陷。In the prior art, the carpooling process only considers the starting point and the ending point. There are usually more than two paths between the starting point and the ending point. Sometimes the starting point and the ending point between the two orders are relatively close, but the paths are not the same. At this time, the orders are blindly merged. It is not suitable for users, and even the total mileage will be longer after the combination. Therefore, only comparing the starting point and the ending point has certain defects.

可选地,本发明实施例中,所述距离确定模块502包括:Optionally, in this embodiment of the present invention, the distance determining module 502 includes:

判断子模块,用于判断每个所述约车订单的可选路径中,是否存在使所述第二路径距离大于所述第一路径距离的目标路径:A judging submodule for judging whether there is a target path that makes the distance of the second path greater than the distance of the first path in the optional paths of each car-hailing order:

若是,根据所述目标路径,确定第二路径距离;If so, determine the second path distance according to the target path;

若否,确定所述约车订单不满足拼车要求。If not, it is determined that the car-hailing order does not meet the carpooling requirements.

可选地,本发明实施例中,所述订单接收模块501包括:Optionally, in this embodiment of the present invention, the order receiving module 501 includes:

路径确定子模块,用于确定将每个所述约车订单合并的拼车路径,所述拼车路径依次包括起点部分以及终点部分,所述起点部分包括每个所述约车订单中的拼车行程的起点;所述终点部分包括每个所述约车订单中的拼车行程的终点;A route determination submodule, configured to determine a carpooling route that combines each of the car-hailing orders, the carpooling route sequentially includes a starting point part and an end-point part, and the starting point part includes the value of the carpooling trip in each of the car-hailing orders the starting point; the ending point portion includes the ending point of the carpool trip in each of the ride-hailing orders;

距离确定子模块,用于确定所述拼车路径中的最短拼车路径距离。The distance determination submodule is used for determining the shortest carpooling route distance in the carpooling route.

可选地,本发明实施例中,所述最短拼车路径距离中包括每个所述起点以及每个所述终点,且不重复经过所述起点和/或终点。Optionally, in this embodiment of the present invention, the distance of the shortest carpooling path includes each of the starting points and each of the ending points, and the starting points and/or ending points are not repeatedly passed.

可选地,本发明实施例中,所述约车订单携带有预设拼车指示。Optionally, in the embodiment of the present invention, the car-hailing order carries a preset car-pooling instruction.

本发明实施例提供的打车申请处理装置能够实现图1至图4的方法实施例中打车申请处理装置实现的各个过程,为避免重复,这里不再赘述。The apparatus for processing a taxi application provided in the embodiment of the present invention can implement each process implemented by the apparatus for processing a taxi application in the method embodiments of FIG. 1 to FIG. 4 . In order to avoid repetition, details are not repeated here.

本发明的实施例中,通过订单接收模块501接收至少两个客户端的约车订单,确定第一路径距离;距离确定模块502获取所述约车订单的目标路径,确定第二路径距离;参数确定模块503根据所述第一路径距离与所述第二路径距离,确定拼车参数;若所述拼车参数满足预设数值要求,订单合并模块504将每个所述约车订单合并为目标订单,通过拼车参数表征订单的匹配程度,避免匹配程度较低的订单被合并,甚至造成总里程更长;本发明实施例解决了现有技术中,网约车平台在拼车的过程中,仅比对起点和终点,具有局限性的问题。In the embodiment of the present invention, the order receiving module 501 receives car-hailing orders from at least two clients, and determines the first path distance; the distance determining module 502 obtains the target path of the car-hailing orders, and determines the second path distance; parameter determination The module 503 determines carpooling parameters according to the first path distance and the second path distance; if the carpooling parameters meet the preset value requirements, the order merging module 504 merges each of the car-hailing orders into a target order, through The carpooling parameters represent the matching degree of the orders, so that orders with a lower matching degree are prevented from being merged, and even the total mileage is longer; the embodiment of the present invention solves the problem in the prior art that the online car-hailing platform only compares the starting point in the process of carpooling and endpoints, with limitations.

另一方面,本发明实施例还提供了一种电子设备,包括存储器、处理器、总线以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述订单处理方法中的步骤。On the other hand, an embodiment of the present invention also provides an electronic device, including a memory, a processor, a bus, and a computer program stored in the memory and running on the processor, where the processor implements the above-mentioned program when the processor executes the program Steps in an order processing method.

举个例子如下,图6示出了一种电子设备的实体结构示意图。For example, FIG. 6 shows a schematic diagram of the physical structure of an electronic device.

如图6所示,该电子设备可以包括:处理器(processor)610、通信接口(Communications Interface)620、存储器(memory)630和通信总线640,其中,处理器610,通信接口620,存储器630通过通信总线640完成相互间的通信。处理器610可以调用存储器630中的逻辑指令,以执行如下方法:As shown in FIG. 6 , the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 pass through The communication bus 640 accomplishes the mutual communication. The processor 610 may invoke logic instructions in the memory 630 to perform the following methods:

接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离;Receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance that combines each of the car-hailing orders;

获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和;Obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths;

根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;A carpooling parameter is determined according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance, and the target path The ratio between the longest paths in ;

若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单。If the carpooling parameters meet the preset value requirements, each of the car-hailing orders is merged into a target order.

此外,上述的存储器630中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 630 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as an independent product. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

再一方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的订单处理方法,例如包括:In yet another aspect, an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, is implemented to execute the order processing methods provided by the foregoing embodiments, for example, including:

接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离;Receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance obtained by combining each of the car-hailing orders;

获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和;Obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths;

根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;A carpooling parameter is determined according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance, and the target path The ratio between the longest paths in ;

若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单。If the carpooling parameters meet the preset value requirements, each of the car-hailing orders is merged into a target order.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1.一种订单处理方法,其特征在于,所述方法包括:1. An order processing method, wherein the method comprises: 接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离;Receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance obtained by combining each of the car-hailing orders; 获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和;Obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths; 根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;A carpooling parameter is determined according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance, and the target path The ratio between the longest paths in ; 若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单;If the carpooling parameters meet the preset value requirements, combine each car-hailing order into a target order; 所述获取所述约车订单的目标路径,确定第二路径距离的步骤,包括:The step of obtaining the target path of the car-hailing order and determining the second path distance includes: 判断每个所述约车订单的可选路径中,是否存在使所述第二路径距离大于所述第一路径距离的目标路径:Determine whether there is a target path that makes the second path distance greater than the first path distance in the optional paths of each car-hailing order: 若是,根据所述目标路径,确定第二路径距离;If so, determine the second path distance according to the target path; 若否,确定所述约车订单不满足拼车要求。If not, it is determined that the car-hailing order does not meet the carpooling requirements. 2.根据权利要求1所述的订单处理方法,其特征在于,所述确定第一路径距离的步骤,包括:2. The order processing method according to claim 1, wherein the step of determining the first path distance comprises: 确定将每个所述约车订单合并的拼车路径,所述拼车路径依次包括起点部分以及终点部分,所述起点部分包括每个所述约车订单中的拼车行程的起点;所述终点部分包括每个所述约车订单中的拼车行程的终点;determining a carpooling route for merging each of the car-hailing orders, the carpooling route including a starting point part and an ending part in turn, the starting point part including the starting point of the carpooling trip in each of the car-hailing orders; the ending point part including the end point of the carpool trip in each said ride-hailing order; 确定所述拼车路径中的最短拼车路径距离。A shortest carpool path distance among the carpool paths is determined. 3.根据权利要求2所述的订单处理方法,其特征在于,所述最短拼车路径距离中包括每个所述起点以及每个所述终点,且不重复经过所述起点和/或终点。3 . The order processing method according to claim 2 , wherein the shortest carpooling path distance includes each of the starting points and each of the ending points, and does not pass through the starting points and/or ending points repeatedly. 4 . 4.根据权利要求1所述的订单处理方法,其特征在于,所述约车订单携带有预设拼车指示。4 . The order processing method according to claim 1 , wherein the car-hailing order carries a preset car-pooling instruction. 5 . 5.一种订单处理装置,其特征在于,所述装置包括:5. An order processing device, characterized in that the device comprises: 订单接收模块,用于接收至少两个客户端的约车订单,确定第一路径距离,所述第一路径距离为将每个所述约车订单合并的最短拼车路径距离;an order receiving module, configured to receive car-hailing orders from at least two clients, and determine a first path distance, where the first path distance is the shortest carpooling path distance that combines each of the car-hailing orders; 距离确定模块,用于获取所述约车订单的目标路径,确定第二路径距离,所述第二路径距离为每个所述目标路径的路径距离之和;A distance determination module, configured to obtain the target path of the car-hailing order, and determine a second path distance, where the second path distance is the sum of the path distances of each of the target paths; 参数确定模块,用于根据所述第一路径距离与所述第二路径距离,确定拼车参数;其中,所述拼车参数为所述第一路径距离与所述第二路径距离之间的差值,与所述目标路径中的最长路径之间的比值;A parameter determination module, configured to determine carpooling parameters according to the first path distance and the second path distance; wherein the carpooling parameter is the difference between the first path distance and the second path distance , and the ratio between the longest path in the target path; 订单合并模块,用于若所述拼车参数满足预设数值要求,将每个所述约车订单合并为目标订单;an order merging module, configured to merge each of the car-hailing orders into a target order if the car-sharing parameters meet the preset value requirements; 所述距离确定模块包括:The distance determination module includes: 判断子模块,用于判断每个所述约车订单的可选路径中,是否存在使所述第二路径距离大于所述第一路径距离的目标路径:A judging submodule for judging whether there is a target path that makes the distance of the second path greater than the distance of the first path in the optional paths of each car-hailing order: 若是,根据所述目标路径,确定第二路径距离;If so, determine the second path distance according to the target path; 若否,确定所述约车订单不满足拼车要求。If not, it is determined that the car-hailing order does not meet the carpooling requirements. 6.根据权利要求5所述的订单处理装置,其特征在于,所述订单接收模块包括:6. The order processing device according to claim 5, wherein the order receiving module comprises: 路径确定子模块,用于确定将每个所述约车订单合并的拼车路径,所述拼车路径依次包括起点部分以及终点部分,所述起点部分包括每个所述约车订单中的拼车行程的起点;所述终点部分包括每个所述约车订单中的拼车行程的终点;A route determination sub-module, configured to determine a carpooling route that combines each of the car-hailing orders, the carpooling route includes a starting point part and an ending part in turn, and the starting point part includes the carpooling itinerary in each of the car-hailing orders. the starting point; the ending point portion includes the ending point of the carpool trip in each of the ride-hailing orders; 距离确定子模块,用于确定所述拼车路径中的最短拼车路径距离。The distance determination submodule is used for determining the shortest carpooling route distance in the carpooling route. 7.一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的订单处理方法的步骤。7. An electronic device, comprising a processor, a memory, and a computer program stored on the memory and running on the processor, wherein the computer program is executed by the processor to achieve as claimed in the right Steps of the order processing method of any of claims 1 to 4. 8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的订单处理方法的步骤。8. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the order according to any one of claims 1 to 4 is realized The steps of the processing method.
CN201911013759.2A 2019-10-23 2019-10-23 An order processing method and device Active CN110910202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911013759.2A CN110910202B (en) 2019-10-23 2019-10-23 An order processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911013759.2A CN110910202B (en) 2019-10-23 2019-10-23 An order processing method and device

Publications (2)

Publication Number Publication Date
CN110910202A CN110910202A (en) 2020-03-24
CN110910202B true CN110910202B (en) 2022-05-31

Family

ID=69815767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911013759.2A Active CN110910202B (en) 2019-10-23 2019-10-23 An order processing method and device

Country Status (1)

Country Link
CN (1) CN110910202B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114693201A (en) * 2020-12-29 2022-07-01 南京福佑在线电子商务有限公司 Logistics information processing method, device, equipment and storage medium
CN113361990A (en) * 2021-05-25 2021-09-07 深圳依时货拉拉科技有限公司 Freight car sharing method, computer readable storage medium and computer equipment
CN113792921B (en) * 2021-09-06 2024-07-23 南京领行科技股份有限公司 Taxi sharing method and device, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734361A (en) * 2017-04-18 2018-11-02 北京嘀嘀无限科技发展有限公司 Share-car order processing method and apparatus
CN110348589A (en) * 2019-07-12 2019-10-18 北京平安快轿科技有限公司 A kind of share-car method, apparatus, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169815A (en) * 2016-03-08 2017-09-15 滴滴(中国)科技有限公司 The method and apparatus of share-car between a kind of acquaintance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734361A (en) * 2017-04-18 2018-11-02 北京嘀嘀无限科技发展有限公司 Share-car order processing method and apparatus
CN110348589A (en) * 2019-07-12 2019-10-18 北京平安快轿科技有限公司 A kind of share-car method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110910202A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110910202B (en) An order processing method and device
JP6535105B2 (en) System and method for carpooling
US10394836B2 (en) Operator tag search system
CN107230091B (en) Car pooling request order matching method and device
CN111881225B (en) A method and system for correcting the name of a boarding point
CN111835730B (en) Service account processing method and device, electronic equipment and readable storage medium
CN108399460A (en) Network about vehicle Order splitting processing method and server
US20140005934A1 (en) Incorporating Traveler Feedback in Future Trip Planning
CN110889738B (en) Method and device for dispatching orders
CN110657813B (en) Method and device for optimizing planned roads in map
CN106558159B (en) Carpooling method and device
CN111207763A (en) Path planning method, system, terminal and storage medium based on real-time routing
WO2021031636A1 (en) Real-time order travel vehicle-based real-time order assignment method and apparatus
CN113391850B (en) Task scheduling method, device and equipment based on edge cloud cooperation and storage medium
CN110910191A (en) Car pooling order generation method and equipment
CN111192110B (en) Method and device for determining getting-on central point
CN111191128A (en) A stroke matching method and device
CN111448575B (en) System and method for evaluating model performance
CN115048529B (en) Path processing method, device, storage medium and electronic device
CN111161013A (en) Credit assessment method and device
CN106895843A (en) A kind of method of vehicle routing plan, car-mounted terminal and intelligent automobile
CN106895842A (en) A kind of method of vehicle route amendment, car-mounted terminal and intelligent automobile
CN112036774B (en) Service policy evaluation method, device, equipment and storage medium
CN111882093B (en) Car pooling method and system
CN111859177B (en) Positioning method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant