Method for reporting driver position through channel serial order
By setting up serial order configuration in the online ride-hailing platform and using the MQ message delay mechanism, the timely reporting of the serial driver's location is achieved, solving the problem that the driver's location cannot be updated in time, reducing the order cancellation rate, and improving the passenger experience.
Patent Information
- Application Number
- CN202410785769.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
AI Technical Summary
In the online car-hailing platform, the driver's location of a serial order cannot be reported in time, resulting in the passengers who will not see the driver's location changes for the next order, which increases the order cancellation rate.
Through channels, the process of reporting the driver's position of the serial order to the capacity and the capacity is carried out. The open platform configuration information, MQ messages and LBS system can be used to realize the on-time reporting of the driver's position of the serial order to prevent repeated reporting and infinite cycles.
Reduce the cancellation rate of serial orders, ensure that driver location information is updated in a timely manner, and improve passenger experience.
Smart Images

Figure CN118798534A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of online car-hailing platforms, and specifically relates to a method for reporting a driver's location via a channel chain order. Background Art
[0002] As the number of traffic channels accessed by online ride-hailing services increases, the number of traffic orders also increases. In order to give full play to the efficiency of transportation capacity, the transportation capacity provider will look for orders closer to the driver when the current order served by the driver is a certain distance away from the destination, and lock the driver to achieve the optimization of driver dispatch. This is a chain order. Generally, the location of the transportation driver is reported to the channel for a certain order, and the driver only reports the current order. For chain orders, the driver will not report the driver's location for the next order until the driver's current order has ended service. This will cause the passenger of the next order to not see the driver's location and the changes in the driver's location, and thus lose patience and cancel the order, which will inevitably increase the cancellation rate of the order.
[0003] To this end, the present invention designs a method for reporting the driver's location through a channel chain order. Summary of the invention
[0004] The purpose of the present invention is to provide a method for reporting the driver's location in a channel chain order to solve the problems raised in the above background technology.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a method for reporting the driver's location through a channel chain order, the specific steps of which include: a process of placing a chain order from a channel to a transport capacity: A1: placing an order from a channel to a transport capacity;
[0006] A2: The order placement interface of the open transport platform can be used to query the link_order_mark flag of the chain order configuration information;
[0007] A3: If link_order_mark is not equal to 1, set the order parameter isLink to 0;
[0008] A4: If link_order_mark is equal to 1, query the linked single grayscale city configuration: link_order_city;
[0009] A5: If the grayscale city configuration link_order_city of the chain order does not include the cityId sent by the city, the city cannot be placed in a chain order, so set the order parameter isLink=0;
[0010] A6: If the grayscale city configuration link_order_city of the chain order includes the cityId sent by the city, then the city can place a chain order, and the order parameter isLink=1;
[0011] A7: Call the order placement interface, open the platform to obtain the order number orderNo, and record the relationship between the order number and the channel order number in the order relationship table partner_order_mapping;
[0012] A8: Dispatching orders is done based on the serial order ID, and drivers who meet the requirements are screened;
[0013] A9: Call the open platform driver order notification channel interface. The parameters include: driverId is the driver's ID, link_order is the mark of whether it is a chain order, if it is 1, it is a chain order, and other values are not chain orders;
[0014] A10: The single open platform determines whether link_order is 1;
[0015] A11: If link_order is equal to 1, the chain order is recorded and marked in the extended field of the order relationship table: "link":1, and the channel driver's hand-raising information is called back;
[0016] A12: If link_order is not equal to 1, the channel driver’s hand-raising information will be called back;
[0017] A13: End;
[0018] The process of reporting the location of the driver of a chain order:
[0019] B1: The channel calls the open transportation platform to confirm the use of the driver interface;
[0020] B2: The open platform of transportation capacity calls the dispatching system to confirm the use of the driver interface;
[0021] B3: The dispatch system calls the order to bind the order and the driver, and changes the order status to 15 driver order acceptance status;
[0022] B4: When the order status changes, an MQ message will be sent, and the Topic is order_status_topic;
[0023] B5: The open platform consumes the MQ message whose Topic is order_status_topic;
[0024] B6: Determine whether the order status is equal to 15, that is, whether the driver has accepted the order;
[0025] B7: If it is equal to 15 and it is a configured channel that requires the location report of the driver of the chain order, the order relationship table is queried, and the extended field has the chain order flag link as 1, then a 2-minute redis lock is set to prevent repeated MQ consumption, and then an MQ with a delay of 5 seconds is sent. The Topic of this MQ is recorded as link_order_driver_loc_topic;
[0026] B8: The consumer consumes MQ messages whose topic is link_order_driver_loc_topic;
[0027] B9: Query order details interface to obtain order status;
[0028] B10: When the order status is 15, call the LBS system to query the driver's location;
[0029] B11: Assemble the parameters for driver location reporting and call the channel driver location reporting interface to report the driver location;
[0030] B12: Increase the number of times the message is sent by 1;
[0031] B13: If the message sending count is greater than the configured sending count of 200 times, the MQ sending is terminated. If it is less than 200 times, the message with the topic link_order_driver_loc_topic is sent again.
[0032] B14: End.
[0033] Preferably, in step A9, if link_order is 1, it is a linked order, and other values are non-linked orders.
[0034] Preferably, in step B4, the message includes the order number orderNo, the order status status, whether the order is a link order isLink, and the channel channel to which the order belongs.
[0035] Preferably, in step B7, the Topic of this MQ is recorded as link_order_driver_loc_topic, and the message content includes the order number orderNo and the number of times the message is sent count.
[0036] Preferably, in step B13, the value of the configured number of transmission times can be manually set according to different city conditions.
[0037] Compared with the prior art, the beneficial effects of the present invention are: the present invention solves the problem of driver location reporting before the start of the next order of a serial order; and reduces the cancellation rate of the next order of a serial order. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the process of placing chain orders for channel-to-capacity transportation in the present invention.
[0039] Figure 2 The present invention is a flow chart of the process of reporting the position of the driver of a serial order for transport capacity. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] See also Figure 1-2 The present invention provides a technical solution: a method for reporting the driver's position through a channel chain order. When placing an order through a channel, the relevant configuration of the open platform is obtained to determine whether there is a chain order configuration and whether it is grayed out in a certain city, so as to set the order parameters to achieve the purpose of placing a chain order. The open platform records whether the order is a chain order parameter transmitted by the dispatch order and records the chain order identifier in the extended field, so as to facilitate the judgment of the chain order when the driver's position is reported. By using RocketMQ delayed MQ messages and redis lock and other related technologies, the order is judged by consuming the order status MQ message sent by the order system. If there is a chain order mark and the order is for the configured channel and the order status is the driver receiving the order (15), a MQ with a delay of 5 seconds is sent. In addition, by consuming this MQ, LBS is called to query the driver's location, and the channel driver location reporting interface is called to report the driver's location. At the same time, in order to prevent unlimited reporting, the order status and the number of reports that have been made are judged to determine whether they need to be reported again. If they need to continue reporting, an MQ with a delay of 5 seconds is sent. This cycle is repeated to realize the driver's location reporting for the next order of the chain order. The specific steps include: the process of the channel placing a chain order to the transportation capacity: A1: the channel places an order to the transportation capacity;
[0042] A2: The ordering interface of the open transportation platform queries the link_order_mark flag of the chain order configuration information. A3: If link_order_mark is not equal to 1, set the ordering parameter isLink=0;
[0043] A4: If link_order_mark is equal to 1, then query the grayscale city configuration of the chain order: link_order_city, the city id (cityId) is comma-separated, such as: 44,79 or all, then all cities can place chain orders.
[0044] A5: If the grayscale city link_order_city does not include the cityId sent by the city, then the city cannot be placed in a chain order, and the order parameter isLink=0.
[0045] A6: If the grayscale city link_order_city includes the cityId sent by the city, then the city can place a chain order, and the order parameter isLink=1.
[0046] A7: Call the order placement interface, open the platform to obtain the order number orderNo, and record the relationship between the order number and the channel order number in the order relationship table partner_order_mapping
[0047] A8: Orders are dispatched based on the serial order identification, and qualified drivers are screened.
[0048] A9: Call the open platform driver order notification channel interface, the parameters are as follows:
[0049] {"driverId":123,"link_order":1}, where driverId is the driver's ID, link_order is a flag indicating whether it is a serial order. If it is 1, it is a serial order, and other values are not serial orders.
[0050] A10: The single open platform determines whether link_order is 1;
[0051] A11: If link_order is equal to 1, the chain order is recorded and marked in the extended field of the order relationship table: "link":1, and the channel driver's hand-raising information is called back.
[0052] A12: If link_order is not equal to 1, the channel driver’s hand raising information will be called back.
[0053] A13: End.
[0054] The process of reporting the location of the driver of a chain order:
[0055] B1: The channel calls the open transportation platform to confirm the use of the driver interface;
[0056] B2: The open platform of transportation capacity calls the dispatching system to confirm the use of the driver interface;
[0057] B3: The dispatch system calls the order to bind the order and the driver, and changes the order status to 15 driver order acceptance status;
[0058] B4: When the order status changes, an MQ message will be sent. The Topic is order_status_topic. The message includes the order number orderNo, the order status status, whether the order is a link order isLink, and the channel channel to which the order belongs. The message content is {"orderNo":"B123","status":15,"isLink":1,"channel":"A"};
[0059] B5: The open platform consumes the MQ message whose Topic is order_status_topic;
[0060] B6: Determine whether the order status is equal to 15 (driver acceptance status);
[0061] B7: If it is equal to 15 and it is a configured channel that requires the location report of the driver of the chain order, the order relationship table is queried, and the extended field has the chain order flag link as 1, then a 2-minute redis lock is set to prevent repeated MQ consumption, and then an MQ with a delay of 5 seconds is sent. The Topic of this MQ is recorded as link_order_driver_loc_topic, and the message content includes the order number orderNo and the number of times the message is sent count, such as {"orderNo":"B123","count":1};
[0062] B8: The consumer consumes MQ messages whose topic is link_order_driver_loc_topic;
[0063] B9: Query order details interface to obtain order status;
[0064] B10: When the order status is 15, call the LBS system to query the driver's location;
[0065] B11: Assemble the parameters for driver location reporting and call the channel driver location reporting interface to report the driver location;
[0066] B12: Increase the number of times MQ is sent by 1;
[0067] B13: If the number of times count is greater than the configured number of times 200, the MQ sending is terminated. If it is less than 200, the message with the topic link_order_driver_loc_topic is sent again.
[0068] B14: End.
[0069] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for reporting the driver's location via a channel chain order, characterized by: The specific steps include: Process of placing chain orders from the channel to the transport capacity: A1: The channel places an order to the transport capacity; A2: The order placement interface of the open transport platform can be used to query the link_order_mark flag of the chain order configuration information; A3: If link_order_mark is not equal to 1, set the order parameter isLink to 0; A4: If link_order_mark is equal to 1, query the linked single grayscale city configuration: link_order_city; A5: If the grayscale city configuration link_order_city of the chain order does not include the cityId sent by the city, the city cannot be placed in a chain order, so set the order parameter isLink=0; A6: If the grayscale city configuration link_order_city of the chain order includes the cityId sent by the city, then the city can place a chain order, and the order parameter isLink=1; A7: Call the order placement interface, open the platform to obtain the order number orderNo, and record the relationship between the order number and the channel order number in the order relationship table partner_order_mapping; A8: Dispatching orders is done based on the serial order ID, and drivers who meet the requirements are screened; A9: Call the open platform driver order notification channel interface. The parameters include: driverId is the driver's ID, link_order is the mark of whether it is a chain order, if it is 1, it is a chain order, and other values are not chain orders; A10: The single open platform determines whether link_order is 1; A11: If link_order is equal to 1, the chain order is recorded and marked in the extended field of the order relationship table: "link":1, and the channel driver's hand-raising information is called back; A12: If link_order is not equal to 1, the channel driver’s hand-raising information will be called back; A13: End; The process of reporting the location of the driver of a chain order: B1: The channel calls the open transportation platform to confirm the use of the driver interface; B2: The open platform of transportation capacity calls the dispatching system to confirm the use of the driver interface; B3: The dispatch system calls the order to bind the order and the driver, and changes the order status to 15 driver order acceptance status; B4: When the order status changes, an MQ message will be sent, and the Topic is order_status_topic; B5: The open platform consumes the MQ message whose Topic is order_status_topic; B6: Determine whether the order status is equal to 15, that is, whether the driver has accepted the order; B7: If it is equal to 15 and it is a configured channel that requires the location report of the driver of the chain order, the order relationship table is queried, and the extended field has the chain order flag link as 1, then a 2-minute redis lock is set to prevent repeated MQ consumption, and then an MQ with a delay of 5 seconds is sent. The Topic of this MQ is recorded as link_order_driver_loc_topic; B8: The consumer consumes MQ messages whose topic is link_order_driver_loc_topic; B9: Query order details interface to obtain order status; B10: When the order status is 15, call the LBS system to query the driver's location; B11: Assemble the parameters for driver location reporting and call the channel driver location reporting interface to report the driver location; B12: Increase the number of times the message is sent by 1; B13: If the message sending count is greater than the configured sending count of 200 times, the MQ sending is terminated. If it is less than 200 times, the message with the topic link_order_driver_loc_topic is sent again. B14: End.
2. The method for reporting the driver's location through a channel chain order according to claim 1, characterized in that: In step A9, if link_order is 1, it is a linked order, and other values are non-linked orders.
3. The method for reporting the driver's location through a channel chain order according to claim 1, characterized in that: In step B4, the message includes the order number orderNo, the order status status, whether the order is a link order isLink, and the channel channel to which the order belongs.
4. The method for reporting the driver's location through a channel chain order according to claim 1, characterized in that: In step B7, the Topic of this MQ is recorded as link_order_driver_loc_topic, and the message content includes the order number orderNo and the number of times the message is sent count.
5. The method for reporting the driver's location through a channel chain order according to claim 1, characterized in that: In step B13, the value of the configured number of transmission times can be manually set according to different city conditions.
