Delivery guiding method and server

The delivery guidance map is generated through geographical hashing technology, which solves the problem of small parcel operators having difficulty in grasping the delivery area when switching between old and new outlets, and improves delivery efficiency and service quality.

CN118643089APending Publication Date: 2024-09-13SHANGHAI SHENXUE SUPPLY CHAIN MANAGEMENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410778571.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the logistics industry, when switching between old and new outlets, it is difficult for small parcel operators to quickly understand and grasp the delivery area, resulting in a decrease in delivery timeliness and service quality.

Method used

By obtaining the plotted delivery grouping information and historical order data of the outlet, GeoHash technology is used to generate the actual delivery area relationship, and perform visual rendering to provide an intuitive delivery guide map to help small parcel operators understand their own delivery. range of items.

Benefits of technology

It has improved the efficiency of small parcel clerks at new outlets in understanding the delivery area, reduced delivery delays and errors, optimized the delivery process, and improved service quality and timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643089A
    Figure CN118643089A
Patent Text Reader

Abstract

The invention discloses a delivery guiding method and a server, and relates to the technical field of map display. According to the method and the device, the initially set delivery area of each small delivery person drawn in the map by the website staff is acquired, the delivery grouping information and the delivery grouping area list under the website are drawn based on the historical order data and the GeoHash, and the historical order data are marked; and obtaining a corresponding relationship among the order number, the network point, the small delivery person, the order address, the delivery grouping area and the GeoHash. And then, grouping the order association information according to the three-segment codes in the widget and the order address, generating an actual delivery area relationship, and performing visual rendering on the actual delivery area relationship to obtain a delivery guidance map. According to the method, the delivery grouping areas under the different three-segment codes are displayed in the delivery instruction map in a distinguished mode, so that the actual delivery areas are visually and accurately displayed, the method is helpful for small delivery staff of new outlets to quickly understand and master own delivery ranges, and the delivery efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map display technology, and in particular to a delivery guidance method and server. Background Art

[0002] With the rapid development of the logistics industry, more and more logistics companies have begun to pay attention to service quality and the development of logistics outlets. Many logistics companies are developing in the form of outlet franchising and outlet direct operation. The advantages of outlet franchising are that it can integrate into the market at a low cost and seize market development opportunities, but it also brings disadvantages. Compared with the outlet direct operation model, franchise outlets are less stable. When old outlets withdraw and new outlets move in, the new outlets need to quickly adapt to the three-segment code delivery range so that small parcel workers can quickly know their delivery area range.

[0003] At present, the mainstream practice in the market when switching between old and new outlets is that the film manager provides an Excel spreadsheet to the new outlet for delivery instructions, which contains the text correspondence between the three-segment code and the address. After the courier gets the spreadsheet, he needs to refer to the map to determine the delivery area corresponding to each three-segment code.

[0004] However, since the courier is not familiar with the area, it is easy to send the package to the wrong area or fail to find the address, which seriously affects the delivery time. At the same time, the courier of the new outlet cannot quickly familiarize themselves with the area and understand the scope of delivery, which will affect the new outlet's rapid entry into the normal work rhythm. In serious cases, it will cause the outlet to pile up packages, reducing the overall service timeliness and quality of the outlet. Summary of the invention

[0005] The present application provides a delivery guidance method and server for generating an intuitive and accurate visual map of the delivery area, thereby improving the efficiency of the new branch's courier staff in understanding the three-segment code delivery range when switching between new and old branches, thereby improving delivery efficiency.

[0006] In the first aspect, the present application provides a delivery guidance method, which is applied to a server, and the method includes: obtaining the drawn delivery grouping information of the outlets, the drawn delivery grouping information includes the initial delivery area of ​​each courier drawn by the outlet staff on the map; after obtaining each historical order data, the order address in the historical order data is based on the geographic hash GeoHash, the drawn delivery grouping information and the delivery grouping area list under the outlet, and the order association information is marked; the order association information includes the correspondence between the order number, outlet, courier, order address, delivery grouping area, and GeoHash; the order association information is grouped according to the three-segment code in the courier and the order address to generate an actual delivery area relationship, and the actual delivery area relationship includes the correspondence between each three-segment code, the delivery grouping area and GeoHash; the actual delivery area relationship is visually rendered to obtain a delivery guidance map; in the delivery instruction map, the delivery grouping areas under different three-segment codes are displayed separately, and the delivery grouping area is different from the initial delivery area range.

[0007] By adopting the above technical solution, the initial delivery area of ​​each courier drawn by the branch staff on the map can be obtained, and based on the historical order data, geographic hash GeoHash, drawn delivery grouping information and the list of delivery grouping areas under the branch, the historical order data can be marked to obtain the corresponding relationship between the order number, branch, courier, order address, delivery grouping area, and GeoHash. Then, the order-related information is grouped according to the three-segment code in the courier and the order address, and the actual delivery area relationship is generated. The actual delivery area relationship is visualized and rendered to obtain a delivery guidance map. The delivery grouping areas under different three-segment codes are displayed differently in the delivery instruction map, so as to intuitively and accurately display the actual delivery area, which helps the new branch courier to quickly understand and master their own delivery range and improve the delivery efficiency.

[0008] In combination with some embodiments of the first aspect, in some embodiments, after obtaining each historical order data, the order address in the historical order data is marked based on the geographic hash GeoHash, the drawn delivery grouping information, and the delivery grouping area list under the outlet to obtain order association information, specifically including: after obtaining each historical order data, the order address in the historical order data is converted into longitude and latitude coordinates; the GeoHash code to be matched corresponding to the order address is generated according to the longitude and latitude coordinates; the inclusion relationship between the GeoHash code to be matched and the GeoHash code corresponding to each initially set delivery area in the drawn delivery grouping information is determined; if the GeoHash code to be matched is not matched, the GeoHash code to be matched .... If the hash code is included in the GeoHash code of a certain initially set delivery area, the order is associated with the corresponding outlet, courier and delivery grouping area, and the order association information is generated; if the GeoHash code to be matched is not included in the GeoHash code of a certain initially set delivery area, the inclusion relationship between the GeoHash code to be matched and the GeoHash codes corresponding to each delivery grouping area in the delivery grouping area list under the outlet is determined; if the GeoHash code to be matched is included in the GeoHash code of a delivery grouping area in the list, the order is associated with the corresponding outlet, courier and delivery grouping area, and the order association information is generated.

[0009] By adopting the above technical solution, after obtaining each historical order data, the order address in the historical order data is converted into longitude and latitude coordinates, and the GeoHash code to be matched corresponding to the order address is generated according to the longitude and latitude coordinates. Then, the inclusion relationship between the GeoHash code to be matched and the GeoHash code corresponding to each initially set delivery area in the delivery grouping information is determined. If it is included, the order is associated with the corresponding outlet, small parcel worker and delivery grouping area; if it is not included, the inclusion relationship between the GeoHash code to be matched and the GeoHash code corresponding to each delivery grouping area in the delivery grouping area list under the outlet is further determined. If it is included, the order is associated with the corresponding outlet, small parcel worker and delivery grouping area. In this way, the historical order data can be accurately associated with the outlets, small parcel workers and delivery grouping areas, providing an accurate data basis for generating the actual delivery area relationship, thereby making the delivery guidance map more accurate and reliable.

[0010] In combination with some embodiments of the first aspect, in some embodiments, after obtaining each historical order data, the order address in the historical order data is converted into longitude and latitude coordinates, specifically including: after obtaining each historical order data, calling the address resolution service to convert the text description in the order address in the historical order data into corresponding longitude and latitude coordinates; if the address resolution service does not return a valid longitude and latitude, then according to the three-segment code in the order address, map it to a preset three-segment code-longitude and latitude comparison table to obtain the corresponding longitude and latitude coordinates.

[0011] By adopting the above technical solution, after obtaining each historical order data, the address resolution service is first called to convert the text description in the order address in the historical order data into the corresponding longitude and latitude coordinates. If the address resolution service does not return a valid longitude and latitude, the three-segment code in the order address is mapped to the preset three-segment code-longitude and latitude comparison table to obtain the corresponding longitude and latitude coordinates. By combining the address resolution service with the preset three-segment code-longitude and latitude comparison table, order addresses of different formats can be effectively processed, which improves the success rate and accuracy of converting order addresses to longitude and latitude coordinates, and provides reliable data support for subsequent order labeling and generation of actual delivery area relationships, making the delivery guidance map more comprehensive and accurate.

[0012] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: counting the actual number of delivery orders and delivery mileage of each delivery grouping area; making balanced adjustments to each delivery grouping area based on the actual number of delivery orders and delivery mileage of each delivery grouping area to generate adjusted delivery grouping areas; and updating and rendering the adjusted delivery grouping areas in the delivery guidance map.

[0013] By adopting the above technical solution, after generating the delivery guide map, the actual number of delivery orders and delivery mileage of each delivery grouping area can be further counted, and each delivery grouping area can be balanced and adjusted according to the statistical results to generate the adjusted delivery grouping area. Then, the adjusted delivery grouping area is updated and rendered in the delivery guide map. Through this dynamic adjustment mechanism, load balancing of the delivery area can be achieved, avoiding the situation where the order volume is too large or the delivery mileage is too long in some areas, which helps to improve the work efficiency and satisfaction of the small courier. At the same time, the adjusted delivery grouping area is intuitively displayed in the delivery guide map, so that the small courier can understand and adapt to the changes in the delivery area in a timely manner, further optimizing the delivery process.

[0014] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: based on the order association information, counting the delivery tracks of historical orders in each delivery grouping area to generate a delivery footprint of the courier; aggregating the delivery footprint of the courier according to the three-segment code to generate an aggregated delivery footprint; the aggregated delivery footprint includes one or more route tracks for representing the delivery rules in the corresponding delivery grouping area; and overlaying and displaying the aggregated delivery footprint in the delivery guidance map.

[0015] By adopting the above technical solution, based on the order association information, the delivery tracks of historical orders in each delivery grouping area can be counted to generate the delivery footprints of the courier. Then, the delivery footprints of the courier are aggregated according to the three-segment code to generate an aggregated delivery footprint, where the aggregated delivery footprint includes one or more route tracks used to represent the delivery rules in the corresponding delivery grouping area. Finally, the aggregated delivery footprint is superimposed and displayed in the delivery guidance map. By generating and displaying the aggregated delivery footprint, the delivery rules and routes in each delivery grouping area can be intuitively presented, helping the courier to quickly understand the delivery characteristics of the area, master the optimal delivery route, and improve the delivery efficiency and accuracy. At the same time, the display of the aggregated delivery footprint also provides data support and decision-making basis for branch managers to optimize the delivery process.

[0016] In combination with some embodiments of the first aspect, in some embodiments, the aggregated delivery footprint is superimposed and displayed in the delivery guidance map, specifically including: obtaining the historical order volume and delivery frequency corresponding to each aggregated delivery footprint; dividing the aggregated delivery footprint into different levels according to the set order volume threshold and delivery frequency threshold; wherein the aggregated delivery footprint with a larger historical order volume and a higher delivery frequency has a higher level; according to preset rendering rules, different display parameters are set for aggregated delivery footprints of different levels, and the display parameters include color, line width, and opacity; in the delivery guidance map, each aggregated delivery footprint is rendered according to different display parameters.

[0017] By adopting the above technical solution, when the aggregated delivery footprints are superimposed and displayed in the delivery guidance map, the historical order volume and delivery frequency corresponding to each aggregated delivery footprint are first obtained, and the aggregated delivery footprints are divided into different levels according to the set order volume threshold and delivery frequency threshold, among which the aggregated delivery footprints with a large historical order volume and a high delivery frequency have a higher level. Then, according to the preset rendering rules, different display parameters are set for aggregated delivery footprints of different levels, including color, line width, opacity, etc. Finally, in the delivery guidance map, each aggregated delivery footprint is rendered according to different display parameters. By grading and differentially rendering the aggregated delivery footprints, the delivery routes with higher importance can be highlighted, attracting the attention of the courier, so that they can give priority to and become familiar with these key routes. At the same time, the intuitive visual effect also helps branch managers quickly identify delivery hotspots and optimize resource allocation and scheduling strategies.

[0018] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: receiving a request for switching between an old and new branch sent by the first branch, the request for switching between an old and new branch including a list of small parcel handlers of the new branch; updating the actual delivery area relationship based on the actual delivery area relationship and the list of small parcel handlers of the new branch; generating a delivery guidance map corresponding to each small parcel handler and sending it to a terminal of each small parcel handler, so that the terminal displays the delivery areas corresponding to the small parcel handler himself on the map.

[0019] By adopting the above technical solution, a request for switching between the old and new outlets sent by the first outlet can be received, and the request includes a list of parcel handlers of the new outlet. Then, based on the actual delivery area relationship and the list of parcel handlers of the new outlet, the actual delivery area relationship is updated, and a delivery guidance map corresponding to each parcel handler is generated and sent to the terminal of each parcel handler, so that the terminal displays the parcel handler's own corresponding delivery area in the map. In this way, when switching between the old and new outlets, a delivery guidance map adapted to the parcel handlers of the new outlet can be quickly generated to ensure that the parcel handlers of the new outlets can understand their own delivery areas in a timely manner, reducing delivery delays or errors caused by outlet switching. At the same time, the delivery guidance map is sent directly to the parcel handler's terminal for display, providing a convenient delivery guidance service, which helps to improve the work efficiency and service quality of the parcel handlers.

[0020] In a second aspect, the present application provides a server, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the server to execute the method described in the first aspect and any possible implementation of the first aspect.

[0021] In a third aspect, the present application provides a computer program product comprising instructions, which, when executed on a server, enables the server to execute the method described in the first aspect and any possible implementation of the first aspect.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a server, causes the server to execute the method described in the first aspect and any possible implementation of the first aspect.

[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The technical means of generating the actual delivery area relationship based on historical order data and drawing the delivery grouping information and performing visual rendering is adopted. Therefore, the problem that the small parcel workers of the new outlets find it difficult to quickly understand and master the delivery area when switching between the old and new outlets is effectively solved, thereby achieving the technical effect of intuitively and accurately displaying the actual delivery area, helping the small parcel workers of the new outlets to quickly get started and improve the delivery efficiency.

[0024] 2. Due to the adoption of technical means to collect statistics on delivery data and dynamically adjust the delivery grouping areas, the problems of unbalanced load in delivery areas, excessive order volume in certain areas or long delivery mileage are effectively solved, thereby optimizing the division of delivery areas, improving the work efficiency and satisfaction of small couriers, and enabling small couriers to promptly understand and adapt to changes in delivery areas.

[0025] 3. Due to the technical means of generating aggregated delivery footprints and superimposing them on the delivery guidance map, the problem that small courier personnel find it difficult to quickly understand the delivery characteristics of the area and the optimal delivery route is effectively solved, thereby achieving the technical effect of intuitively presenting delivery rules and routes, helping small courier personnel to quickly grasp the key points of delivery and improve delivery efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is an exemplary schematic diagram of a delivery guidance system provided in an embodiment of the present application; Figure 2 This is a schematic diagram of an exemplary scenario of the delivery guidance method provided in an embodiment of the present application; Figure 3 It is a flowchart of the delivery guidance method provided by the embodiment of the present application; Figure 4 is another flowchart of the delivery guidance method provided in an embodiment of the present application; Figure 5 It is a schematic diagram of an exemplary hardware structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0029] To facilitate understanding, the relevant terms and concepts involved in the embodiments of the present application are first introduced below.

[0030] (1) GeoHash GeoHash is a geographic coding system that maps two-dimensional latitude and longitude data to one-dimensional strings. Each string represents a rectangular area on the earth's surface. For example, the Beijing area may be mapped to a series of strings such as "WX4ER" and "WX4G2".

[0031] The length of the GeoHash string is related to the size of the area it represents. The longer the string, the more accurate the range it represents. Taking Beijing as an example, a 5-digit code can represent an area within the scope of Beijing, while a 6-digit code can narrow the scope to a district or county in Beijing. Similar strings represent similar distances. For example, the first 4 digits of "WX4ER" and "WX4G2" are the same, indicating that the areas they represent are adjacent. Using prefix matching of the string, you can quickly query nearby POI information. GeoHash uses Z-order curves, ZIP algorithms, etc. to facilitate distance calculation. And it uses a combination of letters and numbers, without interfering characters such as commas and spaces, which is conducive to storage and transmission.

[0032] Taking the delivery scenario in this application as an example, the delivery address of an order is "No. XX, XX Road, Haidian District, Beijing". Through the geocoding service, you can get the GeoHash value of this address, assuming it is "WX4ERVVV". By summarizing all the order information in Haidian District according to the GeoHash prefix WX4ER, you can know the distribution of the delivery volume in each small area, and you can generate a clear delivery area division map. Different GeoHash areas correspond to different delivery areas, which can be distinguished by different colors. In this way, when a new courier takes over a certain area in Haidian District, by looking at this map, he can quickly understand the specific location and delivery volume of each small area in the area, so as to reasonably plan his own delivery route.

[0033] (2) Delivery Grouping Delivery grouping refers to the process of logistics delivery. In order to improve delivery efficiency, the area covered by a network point is divided into multiple areas, and each area is assigned to one or more small courier to be responsible for delivery. In this application, multiple areas that a small courier is responsible for can be called delivery grouping areas.

[0034] The purpose of delivery grouping is to allow the courier to focus on a relatively concentrated area, improving delivery efficiency and service quality. The courier is familiar with his delivery group and can complete the delivery task more quickly and accurately. Delivery grouping is not static. With the change of order volume and the expansion of the area, the delivery grouping also needs to be adjusted dynamically. Newly opened communities may be included in adjacent delivery groups, or become independent new delivery groups.

[0035] (3) Area of ​​Interest (AOI) AOI refers to a specific area of ​​interest to a user or application on a map. It is usually a closed polygonal area that can be regular or irregular in shape, used to delineate a meaningful geographic range. The concept of AOI originated from the field of geographic information systems (GIS) and is now widely used in various online map services to achieve precise positioning of areas and on-demand loading of information.

[0036] In map applications, AOI is usually defined and stored as a collection of several geographic coordinate points. These coordinate points are connected in a certain order to form the boundary line of the AOI. AOI can contain various map elements such as roads, buildings, landmarks, etc. Depending on the application scenario, AOI can represent various meaningful geographic entities, such as communities, schools, business districts, scenic spots, etc. For map application developers, AOI is the basic unit for organizing and presenting geographic information. By drawing and marking AOI on the map, and loading its boundary and internal detailed information on demand when the user browses the AOI, more accurate and efficient map data management and retrieval can be achieved. For end users, AOI makes the map more vivid and practical. Users can quickly focus on the area of ​​their interest and obtain rich information about the area.

[0037] First, the system architecture involved in the embodiment of the present application is described. Figure 1 The figure is an exemplary schematic diagram of the delivery guidance system in the embodiment of the present application.

[0038] The delivery guidance system in the embodiment of the present application includes a terminal 100 and a server 200. The terminal 100 can be a mobile phone, tablet computer, laptop computer or other device with a display screen and user interaction capabilities. The manager or small parcel clerk of the logistics network can view and edit the delivery area and track the delivery progress in real time through the delivery guidance software installed on the terminal 100. The delivery guidance software communicates with the server 200, uploads and downloads delivery-related data, and displays the delivery guidance map returned by the server.

[0039] Server 200 is a background system that provides delivery guidance services. It is usually composed of multiple server clusters and has powerful data storage, computing and network transmission capabilities. The main functions of server 200 include: storing massive amounts of historical order data, including order numbers, outlets, courier workers, order addresses, three-segment codes and other information. These data provide a data basis for calculating the actual delivery area. Receive and store the drawn delivery grouping information uploaded by the outlets, that is, the delivery area range initially set by the management staff for the courier workers on the map. Respond to various requests from the terminal, such as delivery area data requests, delivery progress query requests, etc. Calculate and analyze order data and delivery area data to generate delivery guidance maps, etc.

[0040] In processing order data and delivery areas, server 200 can use the GeoHash algorithm to convert the order address into a geocode, and combine it with the initial delivery area drawn by the manager to calculate which courier actually delivers each order, thereby obtaining order association information. Then, it can count the actual delivery area to which each three-segment code belongs based on the three-segment code and the courier in the order association information, and generate actual delivery area relationship data. Finally, server 200 can visualize the actual delivery area relationship to obtain an intuitive delivery guide map.

[0041] When the branch staff needs to check the delivery area, the terminal 100 can initiate a delivery area data request, and the server 200 can quickly retrieve the actual delivery area relationship of the branch, render it into map slice data, and transmit it to the terminal. The branch staff can also adjust the initial delivery area range through the terminal 100, and the modified data will be uploaded to the server 200 in real time, triggering the server to recalculate the actual delivery area relationship.

[0042] The terminal 100 and the server 200 communicate via the Internet. General protocols such as HTTP / HTTPS can be used, or customized application layer protocols can be designed. The data exchange format can use efficient and compact structured formats such as JSON and Protobuf. Communication security can be guaranteed by means such as TLS encryption and data signature.

[0043] The present application embodiment provides a delivery guidance method for generating an intuitive and accurate visual map of the delivery area. The delivery guidance method is described below in conjunction with an exemplary specific application scenario. Figure 2 , which is a schematic diagram of an exemplary scenario of the delivery guidance method in an embodiment of the present application.

[0044] like Figure 2 As shown in (a) in the figure, the branch manager can draw the initial delivery area of ​​each small courier on the map. The initial delivery area can be drawn directly on the map, or it can be selected based on the AOI in the map, which is not limited here.

[0045] On this basis, the server can process and analyze the historical order data in combination with the delivery group area list under the outlets, convert the order address into GeoHash for labeling, obtain the actual delivery area relationship and perform visual rendering, and obtain the following Figure 2 The delivery guide map shown in (b) in FIG. The delivery guide map includes the delivery grouping areas generated based on the historical order delivery information of each courier under the outlet. Compared with the initial delivery area, it can more accurately and real-time reflect the actual delivery area within the three-segment code range of each courier, thereby greatly improving the delivery efficiency.

[0046] See also Figure 3 , is a flow chart of the delivery guidance method in the embodiment of the present application. The delivery guidance method in the embodiment of the present application is described in detail below.

[0047] S301, obtaining the drawn delivery grouping information of the outlet, wherein the drawn delivery grouping information includes the initial delivery area of ​​each small courier drawn on the map by the outlet staff; A branch refers to a cargo distribution center set up by a logistics company in various places, which is a business unit responsible for tasks such as collection, sorting, and delivery. Drawing delivery group information refers to the information on the delivery area range divided by the branch manager for each small courier under the branch on the map in the delivery guidance system. Small courier refers to the staff in the branch who is responsible for delivering parcels, letters and other goods to the recipient. The initial delivery area refers to the theoretical delivery range of each small courier preliminarily planned by the manager on the map, which is usually drawn with reference to map elements such as administrative divisions and roads.

[0048] After the drawing is completed, the drawing information may be stored in the form of drawing delivery grouping information, for example, it may include the name, work number and map coordinate point set of each courier and the corresponding delivery area.

[0049] Optionally, you can use the mouse or gestures to continuously draw the area boundary on the map to form a closed polygon, and the delivery area can be generated based on the area within the boundary line; optionally, you can click on a closed figure on the map, such as the outline of a community or a business district, and the system will automatically set the area within the closed figure as the delivery area; optionally, you can directly enter the coordinates of the center point and the radiation radius of the delivery area to automatically generate a circular delivery area. It is understandable that other human-computer interaction methods can also be used to draw the area, such as voice input, mouse dragging, etc., as long as a clear area boundary can be formed on the map, it is feasible and is not limited here.

[0050] S302, after obtaining each historical order data, the order address in the historical order data is marked based on the geographic hash GeoHash, the drawn delivery grouping information and the delivery grouping area list under the outlet to obtain order association information; the order association information includes the correspondence between the order number, outlet, courier, order address, delivery grouping area, and GeoHash; Historical order data refers to the relevant information of the orders that have been delivered in the system, usually including order number, order time, recipient address, delivery time, receipt status, etc. The order address indicates the detailed location information of the recipient, such as province, city, street, house number, etc. The delivery group area list refers to the collection of all delivery areas or AOIs under the outlet. Order labeling means matching each historical order with the most likely delivery person. Order association information is used to indicate the correspondence between orders and outlets, small parcel personnel, and delivery areas.

[0051] When a new order is delivered, its information will enter the server in the form of historical order data. At this time, the new historical order data needs to be processed and associated with the existing outlets and courier information so that accurate delivery area divisions can be generated later. Specifically, the order address in the historical order data will first be converted into a GeoHash code, and then matched with the drawn delivery grouping information and the delivery grouping area list to find out which courier is most likely to deliver the order, thereby realizing order labeling. The labeled information will be stored in the form of order association information, including order number, outlet ID, courier name, original order address, delivery area ID, order address GeoHash code, etc., forming a many-to-many association relationship between them, which is the core data for the subsequent generation of a delivery guide map.

[0052] Optionally, the GeoHash code of the order address can be directly compared with the GeoHash code of each delivery area. If the order code is within the coverage of a delivery area code, the order is considered to belong to this area and will be delivered by the corresponding courier in this area. Optionally, the order can be divided into the nearest delivery area by calculating the geographical distance between the order address and the center point of each delivery area. Optionally, a machine learning algorithm can be used to use existing historical orders as training samples to learn the address characteristics of each delivery area, classify and predict the address of new orders, and give the delivery area with the highest confidence. It is understandable that other geographic information processing methods can also be used to achieve the matching of orders and delivery areas, such as geographic fencing, spatial indexing, etc. As long as the association between orders and delivery areas can be established, it is feasible and is not limited here.

[0053] Preferably, in some embodiments, after obtaining each historical order data, the order address in the historical order data can be converted into longitude and latitude coordinates; a GeoHash code to be matched corresponding to the order address is generated according to the longitude and latitude coordinates; the inclusion relationship between the GeoHash code to be matched and the GeoHash codes corresponding to each initially set delivery area in the drawn delivery grouping information is determined; if the GeoHash code to be matched is included in the GeoHash code of a certain initially set delivery area, the order is associated with the corresponding outlet, small courier and delivery grouping area, and the order association information is generated; if the GeoHash code to be matched is not included in the GeoHash code of a certain initially set delivery area, the inclusion relationship between the GeoHash code to be matched and the GeoHash codes corresponding to each delivery grouping area in the delivery grouping area list under the outlet is determined; if the GeoHash code to be matched is included in the GeoHash code of a certain delivery grouping area in the list, the order is associated with the corresponding outlet, small courier and delivery grouping area, and the order association information is generated.

[0054] Preferably, in some embodiments, in order to convert the order address into longitude and latitude coordinates, an address resolution service can be called to convert the text description in the order address in the historical order data into corresponding longitude and latitude coordinates; if the address resolution service does not return a valid longitude and latitude, the three-segment code in the order address is mapped to a preset three-segment code-longitude and latitude comparison table to obtain the corresponding longitude and latitude coordinates.

[0055] In some embodiments, the server can store the marked data on RDS and ODPS, where RDS is a relational database cloud service and ODPS is a massive data processing platform.

[0056] Specifically, in some embodiments, when the branch manager completes the drawing of the area responsible for each small parcel clerk, the order marking function can be automatically turned on. The purpose of order marking is to associate the branch's daily orders with specific delivery grouping areas to achieve accurate matching of orders and delivery personnel. The entire marking process requires obtaining order data from the upstream system, extracting the order address and converting it into geographic coordinates and GeoHash codes, and then matching it with the preset delivery area.

[0057] In the first step, the system obtains all order data of the outlets from the upstream one day (T-1).

[0058] The second step is to clean and preprocess the acquired order data and extract the standardized order address text.

[0059] The third step is to perform MD5 hashing on the cleaned order address to generate a unique address identifier, and then query whether there is a matching result for the address in the cache. If the cache is hit, the order address is directly associated with the corresponding delivery group, and the process ends; otherwise, proceed to the next step.

[0060] The fourth step is to call the API interface of a third-party geocoding service (such as Alibaba Cloud Cainiao) to convert the order address text into corresponding geographic coordinates (latitude and longitude).

[0061] The fifth step is to use the GeoHash algorithm to generate the corresponding GeoHash code based on the acquired geographic coordinates.

[0062] Step 6: Use the GeoHash prefix of the order address (usually the first 6 digits) to match the delivery grouping area list (AOI list) to find the area to which the address belongs. The AOI list stores the GeoHash prefix of each delivery area and its corresponding courier information.

[0063] Step 7: Traverse the AOI matching list to find the area that matches the GeoHash prefix of the order address. If there is no matching area, the labeling fails and the process ends; if there are multiple matching areas, the area with the longest GeoHash prefix is ​​selected as the final delivery area.

[0064] Step 8. After the match is successful, the key information of the order is associated with the courier, outlets and other information in the matched delivery area to form a complete data item, including order number, courier, outlet, order address, geographic coordinates, GeoHash, delivery area identification, etc.

[0065] The ninth step is to store the associated data in the RDS database for subsequent query and analysis. At the same time, the matching results of the order address and the delivery area are written to the cache to speed up the subsequent labeling of the same address. The daily labeling data can also flow back to the odps and then merged with the historical data in the odps to form a complete order labeling wide table to keep the analysis data up to date every day.

[0066] Through this process, the massive orders of outlets can be automatically matched with various delivery areas, providing a data basis for subsequent delivery management and regional optimization. At the same time, optimization methods such as caching and asynchronous processing are adopted to reduce the pressure on upstream systems while ensuring labeling efficiency, thereby improving the overall performance of the system.

[0067] S303, grouping the order association information according to the three-segment code in the courier and order address, and generating an actual delivery area relationship, wherein the actual delivery area relationship includes a correspondence between the three-segment code, the delivery grouping area, and the GeoHash; The actual delivery area relationship refers to the actual delivery range of each courier in each three-segment code area calculated based on historical order data, which may not be completely consistent with the initial delivery area. The delivery grouping area refers to the collection of multiple delivery areas that each courier is actually responsible for. Each delivery area is composed of multiple GeoHash blocks, reflecting the delivery range of the courier.

[0068] When the order marking data accumulates to a certain scale, the data can be aggregated and analyzed to generate regional relationship data that reflects the actual delivery range of the courier. For example, the order-related information can be grouped according to the courier first, and all the orders delivered by each courier can be aggregated together. Then, the orders of each courier are grouped again according to the three-segment code of the order address. After the grouping is completed, the system will merge the GeoHash codes of the order addresses of each courier in each three-segment code area, extract the common prefix, and generate several delivery areas. Finally, all the delivery areas of each courier under each three-segment code are gathered together to form the delivery grouping area of ​​the courier, and stored in the actual delivery area relationship table. This table reflects the actual delivery grouping areas of each courier in different three-segment code areas.

[0069] Optionally, you can use the groupby clause in the SQL statement to directly group and summarize the order-related information according to the courier and the three-segment code, and use the left(GeoHash, 6) function to extract the first 6 digits of the address GeoHash, and use the group_concat function to concatenate them to obtain the GeoHash set in each group, and then merge the sets to generate the delivery area; Optionally, you can also use the MapReduce or Spark distributed computing framework to group in parallel according to the courier and the three-segment code, and then reduce and merge the GeoHash prefix in each group to generate the delivery area, and finally aggregate the delivery areas of each courier to form the delivery group area; Optionally, if the order volume is large, you can also prefix index the GeoHash first to quickly find the GeoHash in each group, and then merge them to generate the delivery area. Optionally, these processes can be achieved through the analysis capabilities of odps. It is understandable that as long as the functions of grouping, delivery area generation and aggregation can be completed, any calculation method can be used, and there is no limitation here.

[0070] S304, visually rendering the actual delivery area relationship to obtain a delivery instruction map; in the delivery instruction map, the delivery grouping areas under different three-segment codes are displayed differently, and the delivery grouping areas are different from the initially set delivery area range.

[0071] After the actual delivery area relationship is generated, it can be converted into a visual delivery guidance map so that courier personnel and managers can intuitively understand their respective delivery ranges and regional differences.

[0072] Specifically, in some embodiments, the server first reads the actual delivery area relationship data and restores the GeoHash to the corresponding polygon coordinates. Then, the delivery grouping area can be rendered in layers according to the three-segment code, and different colors or patterns can be used to distinguish the area blocks under different three-segment codes. Finally, a scalable and pannable interactive map is generated, which can be published to the branch staff in the form of a web page or App. Through the delivery guide map, the small courier can clearly see the location and scope of the area he is responsible for, and the branch manager can also intuitively find the advantages and disadvantages of the regional division and the optimization space.

[0073] Optionally, you can call the JavaScript API of the online map service to directly complete the map drawing on the front-end web page. First, convert the GeoHash of the delivery group area into polygon coordinates, then use the Polygon component provided by the API to draw the polygon on the map, set different fill colors, and then use the Polyline component to draw the boundaries of the initial delivery area; Optionally, you can also use open source GIS libraries such as Leaflet and OpenLayers to generate map tile images on the front-end or back-end to achieve map visualization. First, convert the delivery area coordinates into GeoJSON format, then use the renderer provided by the GIS library to render GeoJSON into image tiles, and then pass the tiles to the front-end for display through the Web service; Optionally, if the map interactivity is not required, you can also directly use Python drawing libraries such as Matplotlib and Plotly to generate static PNG or SVG map images in the background, and then embed them into the web page for display. It can be understood that there are many ways to implement map visualization, which can not only take advantage of the convenience of online map services, but also use open source GIS libraries for independent control, which is not limited here.

[0074] In the embodiment of the present application, by matching addresses and marking orders for historical order data, delivery area relationship data reflecting the actual delivery range of the courier is generated, and a delivery guide map is obtained through visual rendering. This method overcomes the problems of rough regional division and unclear employee delivery range in traditional delivery management, realizes the precise association between regions, orders, and employees, and provides outlets with an intuitive and dynamic delivery management tool, which can effectively improve the delivery timeliness.

[0075] In actual applications, more information can be displayed in the delivery guide map to help further improve delivery efficiency. Figure 4 , is another flowchart of the delivery guidance method in the embodiment of the present application: S401, obtaining the drawn delivery grouping information of the outlet, wherein the drawn delivery grouping information includes the initial delivery area of ​​each small courier drawn on the map by the outlet staff; S402, after obtaining each historical order data, the order address in the historical order data is marked based on the geographic hash GeoHash, the drawn delivery grouping information and the delivery grouping area list under the outlet to obtain order association information; the order association information includes the correspondence between the order number, outlet, courier, order address, delivery grouping area, and GeoHash; S403, grouping the order association information according to the three-segment code in the courier and order address, generating an actual delivery area relationship, wherein the actual delivery area relationship includes a correspondence between the three-segment code, the delivery grouping area, and the GeoHash; S404, visually rendering the actual delivery area relationship to obtain a delivery instruction map; in the delivery instruction map, the delivery grouping areas under different three-segment codes are displayed differently, and the delivery grouping areas are different from the initially set delivery area range.

[0076] Steps S401 to S404 are similar to steps S301 to S304 , and reference may be made to the descriptions in the relevant steps, which will not be repeated here.

[0077] In some embodiments, S405 to S407 may be performed to optimize the division of the delivery grouping areas: S405, counting the actual number of delivery orders and delivery mileage in each delivery grouping area; The delivery grouping area is a collection of multiple delivery areas that each courier is actually responsible for. The actual number of delivery orders refers to the total number of orders that fall within a certain delivery grouping area within a certain time frame (such as the last week or month). Delivery mileage refers to the total distance that the courier needs to travel to deliver all orders within the delivery grouping area, usually in kilometers. These two indicators objectively reflect the work saturation and work intensity of each delivery grouping area from the two dimensions of order volume and distance.

[0078] When adjusting and optimizing the delivery area, it is first necessary to count the actual order volume and delivery mileage of each delivery grouping area and other key data to provide a basis for subsequent balance adjustments. Specifically, the historical order data over a period of time can be read, and the address coordinates of the order can be spatially matched with the GeoHash of the delivery grouping area to count the number of orders falling in each area. At the same time, the shortest mileage (i.e. delivery mileage) for delivering all orders can be calculated based on the address of the order in each area, combined with the road network data, through the shortest path algorithm. In this way, each delivery grouping area has two key attributes: "order quantity" and "delivery mileage".

[0079] Optionally, you can use the count and sum functions of SQL statements, in conjunction with the groupby statement, to directly summarize the order-related information according to the delivery grouping area to obtain the number of orders in each area; then associate the road network distance data, calculate the shortest paths for all order addresses in each area in turn, and accumulate the total mileage of the area; optionally, you can also use a distributed computing framework such as MapReduce or Spark to process massive order data in parallel, group the orders according to the area ID, and directly calculate the straight-line distance between each order address and the area center in the Mapper stage, accumulate the total mileage, and finally summarize the number of orders and total mileage in each area in the Reducer stage; it is understandable that there are many ways to do data statistics, you can use mature databases and big data components, you can also implement memory computing logic yourself, there is no limitation here.

[0080] S406, performing a balanced adjustment on each delivery grouping area according to the actual delivery order quantity and delivery mileage of each delivery grouping area, and generating an adjusted delivery grouping area; Balanced adjustment refers to modifying the boundaries and ranges of each delivery grouping area through certain algorithms and strategies, so that the adjusted delivery grouping areas are as balanced as possible in terms of order quantity and delivery mileage, avoiding the problem of obviously too high order volume or delivery distance in individual areas.

[0081] After completing the statistics of the delivery grouping area data, if it is found that the order volume and mileage distribution of each area are not balanced enough, it is necessary to adjust and optimize the regional division plan to balance the work saturation and work intensity of each small courier. Specifically, a heuristic algorithm can be used, with the area, order quantity and delivery mileage of each area as constraint variables, and the regional boundary points can be adjusted through multiple iterative optimizations until the order volume and mileage of each area are within a reasonable difference range. In the optimization process, it is necessary to consider the balance of the total area of ​​the region, the integrity of the three-segment code area, and the naturalness of the geographical boundaries as much as possible, so as to avoid the regional boundaries being too tortuous and causing the delivery route to detour. After the balanced adjustment, a new set of delivery area plans will be generated, and the regional order volume and mileage of each small courier will be redistributed, and the overall work intensity will be more balanced and reasonable.

[0082] Optionally, a simulated annealing algorithm can be used, with the variance of the order volume and mileage in each area as the optimization target. While ensuring that the total area remains unchanged, the area boundaries are randomly adjusted, the objective function values ​​before and after each adjustment are calculated, and the new plan is decided based on the metropolis criterion. After multiple rounds of iteration, an approximate optimal solution is obtained; optionally, the regional division problem can be converted into a mean partitioning problem of the graph, and the Kernighan-Lin algorithm is used for iterative optimization. Two areas are selected each time for node exchange, so that the order volume and mileage within the exchanged area are as similar as possible, and the order volume and mileage differences between areas are as small as possible. After multiple rounds of iterative convergence, a balanced division plan is obtained; optionally, a multi-objective genetic algorithm can be used, with the total area, order volume and mileage as three optimization targets, and the regional division plan is randomly searched through operations such as selection, crossover, and mutation. At the same time, the Pareto principle is used to quickly screen the solutions in the population, and finally a set of balanced and non-dominant division plans are obtained for selection. It is understandable that there are many options for regional optimization algorithms. The key is to model reasonably, set appropriate optimization goals and constraints, and adopt efficient heuristic search strategies to obtain a feasible solution within an acceptable time. This is not limited here.

[0083] S407: Update and render the adjusted delivery grouping area in the delivery guidance map.

[0084] After obtaining the spatial coordinate information of the adjusted delivery grouping area, the boundary lines, fill colors, annotation text and other graphic elements of each area can be redrawn on the visual interface of the delivery guidance map, so that it can intuitively reflect the optimized delivery area division plan.

[0085] Specifically, the GeoHash code or spatial coordinates of the adjusted area can be read, and the relevant interface of the map rendering engine can be called to draw a new polygonal area at the corresponding position of the guide map, and set different fill colors to distinguish. For areas that cross the boundaries before and after the adjustment, special annotations can be made to indicate the changes. At the same time, the association between the small courier and the delivery area can be updated, and the name, photo, contact information and other information of each small courier can be displayed on the delivery guide map. In this way, when the business personnel open the delivery guide map, they can intuitively see the latest distribution of delivery areas within the site coverage, as well as the personnel information assigned to each area.

[0086] In some embodiments, S408 to S410 may be executed to display the delivery footprint in the delivery guide map: S408, based on the order association information, counting the delivery tracks of historical orders in each delivery grouping area, and generating the delivery footprints of the courier; Historical orders refer to orders that have been delivered within a certain time frame (such as the last month or quarter). Delivery tracks are used to represent the actual route taken by the courier when delivering each order, and are usually stored in the form of a series of GPS coordinate points recorded with timestamps. The courier's delivery footprint refers to a heat map that summarizes and counts all the trajectory data of the courier when completing delivery in a certain area over a period of time and visualizes it on a map. It intuitively reflects the spatial distribution pattern of the courier's delivery in various areas.

[0087] Specifically, we can read historical order data within a period of time, and associate it with the delivery area based on the order time, address, delivery person and other information to obtain the order subsets in each area. Then, we can further read the GPS trajectory data corresponding to these orders, sort, denoise and compress the trajectory points in chronological order, and generate a trajectory line representing the delivery route of the order. Finally, by superimposing the trajectory lines of all orders in the same area, we can get the distribution of the delivery footprints of the small parcel workers in the area. These footprints reflect the delivery hotspots and delivery route selection tendencies of the small parcel workers in the area, and can be used to assist in planning better delivery routes.

[0088] Optionally, a distributed computing framework such as Hadoop MapReduce or Spark can be used to group massive historical order data by region, complete the association of order and trajectory data in the Map stage, and complete the merging and compression of trajectories in the same region in the Reduce stage, and finally obtain the delivery footprints of each region; Optionally, a spatiotemporal database such as Oracle Spatial, PostgreSQL PostGIS, etc. can be used to import order and trajectory data into the database, establish a spatiotemporal index, and then use SQL statements to group and count by region, and call spatial functions to complete the overlay analysis of trajectories, and finally export the results to GeoJSON or Shapefile format; Optionally, the footprint analysis function can also be implemented in the GIS engine, such as using ModelBuilder in ArcGIS to build a delivery footprint generation model, and encapsulating data conversion, trajectory overlay and other steps into tools through Python scripts, and finally publishing them as GIS services for Web application calls. It is understandable that there are many technical solutions for implementing delivery footprint generation analysis, which are not limited here.

[0089] S409, aggregating the delivery footprints of the courier according to the three-segment code to generate an aggregated delivery footprint; the aggregated delivery footprint includes one or more route tracks for representing the delivery rules in the corresponding delivery grouping area; Aggregation refers to the process of combining multiple similar or related elements into a larger unit. Aggregate delivery footprints represent one or more representative routes obtained by merging and abstracting all delivery tracks within the same three-segment code range. Route tracks refer to a data structure that uses a series of end-to-end line segments or curves to represent the movement path on a map. Delivery rules are used to represent the spatiotemporal distribution characteristics formed by small courier delivery personnel in long-term delivery practice within a certain area.

[0090] After obtaining the original delivery footprint data of the small courier, we can mine and display the delivery rules of the area at a higher level, and further aggregate and abstract the footprint data. Specifically, we can first match the correspondence between the order address and the three-segment code, and group the delivery footprint data according to the three-segment code. Then, for all the footprint data within the same three-segment code, we can use the road matching algorithm to match the GPS track points to the road network and extract the road segments passed through. Then, we use the frequent pattern mining algorithm to find the highest frequency of several road segment sequences in the three-segment code area as the aggregated delivery footprint of the area. These aggregated footprints reflect the delivery rules of the small courier in the area, which can be used to optimize route planning, locate delivery problems, etc. Finally, simplify the aggregated footprint, remove redundant segments, merge the segments in the same direction and close to each other, and form several representative route trajectories.

[0091] Optionally, a density-based clustering algorithm such as DBSCAN can be used, with three-segment codes as clustering units, to cluster the trajectory points according to spatial distance, and extract the core samples of each cluster as aggregated trajectories; then the Douglas-Peucker algorithm is used to simplify the aggregated trajectory to reduce the number of nodes; optionally, association rule mining algorithms such as FP-Growth and Apriori can be used to treat trajectory segments as item sets, mine frequent co-occurring segment combinations, and generate frequent trajectory patterns; then the minimum description length principle is used to optimize and combine frequent patterns to obtain concise aggregated trajectories; optionally, after matching the trajectory to the road network, a graph mining algorithm such as GRAMI can be used to mine the frequent subgraph structure, and then the shortest path corresponding to the frequent subgraph is searched in the road network topology to generate an aggregated trajectory. It is understandable that other trajectory aggregation algorithms can also be used, which are not limited here.

[0092] S410. Overlay and display the aggregated delivery footprint on the delivery guidance map.

[0093] After completing the aggregate analysis of the courier's historical delivery footprints, the aggregated delivery footprint data can be integrated with the delivery area base map to generate an intuitive delivery guidance map to assist in subsequent delivery route planning and optimization.

[0094] Specifically, you can load the vector boundary data of the delivery area, and draw the outer frame and fill surface of each delivery area on the map base map. Then, overlay and load the aggregated delivery footprint data corresponding to each area, and visualize the footprint lines according to certain semiotic rules, such as using different colors, line types, thicknesses, etc. to represent different footprint levels and attributes. At the same time, you also need to configure certain interactive effects for the footprint data, such as popping up footprint details when the mouse hovers, supporting dynamic display and hiding of footprints, etc. Finally, add necessary cartographic elements such as legends, scales, and compasses to the map to form a complete delivery guide map.

[0095] Preferably, in some embodiments, the historical order volume and delivery frequency corresponding to each aggregated delivery footprint can be obtained; the aggregated delivery footprint is divided into different levels according to the set order volume threshold and delivery frequency threshold; wherein the aggregated delivery footprint with a larger historical order volume and a higher delivery frequency has a higher level; according to preset rendering rules, different display parameters are set for aggregated delivery footprints of different levels, and the display parameters include color, line width, and opacity; in the delivery guidance map, each aggregated delivery footprint is rendered according to different display parameters.

[0096] In some embodiments, when switching between new and old outlets, S408 to S410 can be performed to automatically optimize the delivery area division: S411, receiving a request for switching between an old and new branch sent by a first branch, wherein the request for switching between an old and new branch includes a list of small parcel handlers of the new branch; S412, based on the actual delivery area relationship and the list of small parcel handlers of the new branch, updating the actual delivery area relationship; The actual delivery area relationship refers to the correspondence between the original small courier and the delivery area he is responsible for, and records the delivery area number, name, range and other information of each small courier. The list of small courier of the new branch contains the identity information and contact information of all small courier under the new branch, which is the basis for determining the new delivery area relationship. Updating the actual delivery area relationship means that after the switch between the new and old branches, according to the new branch ownership and personnel allocation, the original mapping relationship between small courier and delivery area is modified, deleted or added to form the actual delivery area relationship after the switch.

[0097] Specifically, all the delivery areas assigned to the new outlets can be cross-checked with the list of small parcel operators of the new outlets, and each area can be assigned to a small parcel operator using certain preset rules (such as area, historical order volume, etc.), so as to establish a many-to-one mapping relationship between areas and small parcel operators. Finally, the new area-small parcel operator correspondence relationship is persisted to the database, and the delivery area outlet cache in the memory is updated to complete the adjustment of the delivery area relationship.

[0098] For example, for a rule for redistribution based on historical order volume: first, the total historical order volume of each delivery area in the recent period (such as one month) can be counted, and the average order volume of all areas can be calculated. Then, all areas are sorted from large to small according to the order volume. Next, the sorted area list is traversed, and for each area, the courier with the least current dispatching tasks is found, and the area is assigned to him. If there are multiple courier workers with the same number of tasks, one is randomly selected. During the allocation process, the number of areas and the total order volume that each courier has been assigned to can be recorded. If the total order volume of the area assigned to a courier has reached or exceeded the average order volume of all areas, the courier is marked as "saturated" and is no longer considered in subsequent allocations until the task volume of other courier workers is also close to the average. Repeat the above allocation steps until all areas are assigned to courier workers. Finally, the allocation results can be saved to the area table and courier table in the database, and the system cache can be updated.

[0099] S413: Generate a delivery guide map corresponding to each courier and send it to the terminal of each courier, so that the terminal displays the delivery areas corresponding to the courier himself on the map.

[0100] After completing the delivery area adjustment, a corresponding delivery guidance map can be automatically generated for each courier and pushed to the courier's terminal to help them become familiar with the new area divisions and delivery routes.

[0101] Specifically, the boundary data of the delivery area corresponding to the courier can be extracted and superimposed on the urban road network layer to form a customized electronic map. Optionally, the optimal delivery route for each area can be automatically planned according to the delivery mode that the courier is accustomed to (such as delivering nearby first and then distant, delivering to key customers first, etc.), and marked on the map with different colors or arrows. Optionally, special icons can be marked on the map according to the location of key customers in the area (such as customers with low signing rates and many complaints) to prompt the courier to pay special attention. Finally, the generated delivery guidance map can be sent to each courier's terminal in the form of message push or App update. After opening it, the courier can see the new electronic map clearly marking the delivery area, route and customer location for which he is responsible.

[0102] The above describes the delivery guidance method in the embodiment of the present application. The following describes an exemplary server 200 provided in the embodiment of the present application. Figure 5 It is a schematic diagram of an exemplary hardware structure of the server 200 provided in an embodiment of the present application.

[0103] In some embodiments, the server 200 is a computer device. The computer device includes a processor, a memory and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with other external terminals or servers through a network connection. In some embodiments, the network interface can be a wired network interface, and in some embodiments, the network interface can also be a wireless network interface. When the computer program is executed by the processor, the delivery guidance method in the embodiment of the present application is implemented.

[0104] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0105] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0106] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0107] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0108] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A delivery guidance method, applied to a server, It is characterized in that The method comprises: Obtaining the drawn delivery grouping information of the outlet, wherein the drawn delivery grouping information includes the initial delivery area of ​​each small courier drawn on the map by the outlet staff; After obtaining each historical order data, the order address in the historical order data is marked based on the geographic hash GeoHash, the drawn delivery grouping information and the delivery grouping area list under the outlets to obtain order association information; the order association information includes the correspondence between the order number, outlet, courier, order address, delivery grouping area, and GeoHash; The order association information is grouped according to the three-segment code in the courier and the order address to generate an actual delivery area relationship, wherein the actual delivery area relationship includes the corresponding relationship between each three-segment code, the delivery grouping area and GeoHash; The actual delivery area relationship is visualized and rendered to obtain a delivery instruction map; the delivery grouping areas under different three-segment codes are displayed differently in the delivery instruction map, and the delivery grouping areas are different from the initially set delivery area range.

2. The method according to claim 1, It is characterized in that After obtaining each historical order data, the order address in the historical order data is marked based on the geographic hash GeoHash, the drawn delivery grouping information and the delivery grouping area list under the outlet to obtain order association information, specifically including: After obtaining each historical order data, convert the order address in the historical order data into longitude and latitude coordinates; Generate the GeoHash code to be matched corresponding to the order address based on the latitude and longitude coordinates; Determine the inclusion relationship between the GeoHash code to be matched and the GeoHash codes corresponding to each initially set delivery area in the drawn delivery group information; If the GeoHash code to be matched is included in the GeoHash code of a certain initially set delivery area, the order is associated with the corresponding outlet, courier and delivery grouping area to generate the order association information; If the GeoHash code to be matched is not included in the GeoHash code of a certain initially set delivery area, determining the inclusion relationship between the GeoHash code to be matched and the GeoHash codes corresponding to each delivery grouping area in the delivery grouping area list under the network point; If the GeoHash code to be matched is included in the GeoHash code of a delivery grouping area in the list, the order is associated with the corresponding outlet, courier and delivery grouping area to generate the order association information.

3. The method according to claim 2, wherein after obtaining each historical order data, the order address in the historical order data is converted into longitude and latitude coordinates, specifically include: After obtaining each historical order data, call the address resolution service to convert the text description in the order address in the historical order data into the corresponding longitude and latitude coordinates; If the address resolution service does not return a valid longitude and latitude, the three-segment code in the order address is mapped to the preset three-segment code-longitude and latitude comparison table to obtain the corresponding longitude and latitude coordinates.

4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: Count the actual number of delivery orders and delivery mileage in each delivery grouping area; According to the actual number of delivery orders and delivery mileage in each delivery grouping area, each delivery grouping area is balanced and adjusted to generate an adjusted delivery grouping area; The delivery grouping area after the adjustment is updated and rendered in the delivery guidance map.

5. The method according to claim 1, It is characterized in that The method further comprises: Based on the order association information, the delivery tracks of historical orders in each delivery grouping area are counted to generate the delivery footprints of the courier; Aggregate the delivery footprints of the courier according to the three-segment code to generate an aggregated delivery footprint; the aggregated delivery footprint includes one or more route tracks for representing the delivery rules in the corresponding delivery grouping area; The aggregated delivery footprint is displayed superimposed on the delivery guidance map.

6. The method according to claim 5, It is characterized in that The overlaying and displaying of the aggregated delivery footprint in the delivery guidance map specifically includes: Get the historical order volume and delivery frequency corresponding to each aggregated delivery footprint; The aggregated delivery footprint is divided into different levels according to the set order volume threshold and delivery frequency threshold. The larger the historical order volume and the higher the delivery frequency, the higher the aggregated delivery footprint level. According to the preset rendering rules, different display parameters are set for different levels of aggregated delivery footprints, wherein the display parameters include color, line width, and opacity; In the delivery guidance map, each aggregated delivery footprint is rendered according to different display parameters.

7. The method according to claim 1, It is characterized in that The method further comprises: Receiving a request for switching between an old and new branch sent by the first branch, wherein the request for switching between an old and new branch includes a list of small parcel handlers of the new branch; Based on the actual delivery area relationship and the list of small parcel handlers of the new branch, the actual delivery area relationship is updated; A delivery guide map corresponding to each courier is generated and sent to the terminal of each courier, so that the terminal displays the delivery areas corresponding to the courier himself on the map.

8. A server, It is characterized in that The server comprises: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the server executes the method as described in any one of claims 1 to 7.

9. A computer program product comprising instructions, It is characterized in that When the computer program product is run on a server, the server is caused to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium comprising instructions, It is characterized in that When the instructions are executed on a server, the server is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Distribution information visualization method and device

    CN110363453A

  • Delivery region division method and device, electronic equipment and readable storage medium

    CN110751446A

  • Delivery grouping method and device, equipment and storage medium

    CN115293683A

  • Express delivery development method for unfamiliar area and logistics management system

    CN117829693A

  • Planning of transportation requests

    US20170046653A1