An address library data updating method, device, equipment and medium
By performing multiple checks on the coordinates associated with order generation in the logistics system, the problem of insufficient coordinate accuracy in address database updates was solved, resulting in more accurate address data updates.
Patent Information
- Application Number
- CN202111574725.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2041-12-21
AI Technical Summary
In existing technologies, the accuracy of order-generated associated coordinates cannot be guaranteed during the address database update process in logistics systems, leading to inaccurate address data updates.
The validity of the generated coordinates for orders is verified through multiple checks, including whether the distance between the coordinates and the order address is within a preset range and whether the coordinates are consistent with the range of the order delivery station. This ensures the accuracy of the coordinates before updating them to the address database.
It improves the accuracy of address data updates, ensures the data quality in the address database, and reduces the rate of incorrect stations and rescheduling.
Smart Images

Figure CN114238355B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of logistics technology, and in particular to a method, apparatus, device and medium for updating address database data. Background Technology
[0002] The logistics pre-sorting system employs a massive address database, serving as a crucial data source for pre-sorting and route matching of logistics orders at designated sites. The address data in this database is largely generated automatically upon successful order delivery and feedback.
[0003] Typically, during the address data generation process, the order address and the coordinates of the location where the order was generated are verified. If the verification passes, the order address and location coordinates are updated in the database, thus updating the address data. However, in implementing this invention, at least the following technical problems were discovered in the existing technology:
[0004] In the current address generation process, the order address and the location coordinates obtained when the order is generated are verified. It is assumed that the location coordinates obtained when the order is generated are accurate. However, in reality, the location coordinates may not be accurate, which will lead to inaccurate address data updates. Summary of the Invention
[0005] This invention provides a method, apparatus, device, and medium for updating address database data, so as to perform multiple verifications on the order-related coordinates updated to the address database and improve the accuracy of address data updates.
[0006] In a first aspect, embodiments of the present invention provide an address database data update method, the method comprising:
[0007] When a queue message is obtained from the successfully delivered order message queue, the order generation associated coordinates of the successfully delivered order corresponding to the queue message are obtained, and the validity of the order generation associated coordinates is verified.
[0008] When the validity of the generated associated coordinates of the order passes the verification, the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order is verified.
[0009] When the delivery address coordinates of the successfully delivered order are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database.
[0010] Secondly, embodiments of the present invention also provide an address database data updating device, the device comprising:
[0011] The order generation associated coordinate verification module is used to obtain the order generation associated coordinates of the delivered order corresponding to the queue message when a queue message is obtained in the successfully delivered order message queue, and to verify the validity of the order generation associated coordinates.
[0012] The order delivery site verification module is used to verify the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order when the validity of the generated associated coordinates of the order passes the verification.
[0013] The address data update module is used to update the order generation associated coordinates and the order address of the successfully delivered order to the address database when the delivery address coordinates of the successfully delivered order are consistent with the pre-sorting address coordinates, and the station corresponding to the location of the order generation associated coordinates is consistent with the pre-sorting address coordinates.
[0014] Thirdly, embodiments of the present invention also provide a server, the server comprising:
[0015] One or more processors;
[0016] Memory, used to store one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement an address library data update method as provided in any embodiment of the present invention.
[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an address database data update method as provided in any embodiment of the present invention.
[0019] The embodiments of the above invention have the following advantages or beneficial effects:
[0020] In this embodiment of the invention, upon receiving a queue message in the successfully delivered order message queue, the validity of the order generation associated coordinates of the corresponding successfully delivered order is first obtained and verified. If the validity of the order generation associated coordinates passes verification, the consistency between the successfully delivered address coordinates and the pre-sorting address coordinates of the successfully delivered order is further verified. Then, when the successfully delivered address coordinates and the pre-sorting address coordinates are consistent, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database, enabling automatic updates to the address database. This embodiment solves the problem of incomplete address verification processes during address database data updates, which cannot guarantee the accuracy of order generation associated coordinates. It achieves multiple verifications of the order generation associated coordinates, improving the accuracy of address data updates. Attached Figure Description
[0021] Figure 1 This is a flowchart of an address database data update method provided in Embodiment 1 of the present invention;
[0022] Figure 2 This is a flowchart of an address database data update method provided in Embodiment 2 of the present invention;
[0023] Figure 3 This is a schematic diagram illustrating the entire process of updating address database data according to Embodiment 2 of the present invention;
[0024] Figure 4 This is a schematic diagram of an address database data update device provided in Embodiment 3 of the present invention;
[0025] Figure 5 This is a schematic diagram of the structure of a server provided in Embodiment 4 of the present invention. Detailed Implementation
[0026] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0027] Example 1
[0028] Figure 1 This is a flowchart illustrating an address database data update method according to Embodiment 1 of the present invention. This embodiment is applicable to situations where address database data is updated based on the addresses of successfully delivered orders. The method can be executed by an address database data update device, which can be implemented in software and / or hardware and integrated into a computer device with application development capabilities.
[0029] like Figure 1 As shown, the address database data update method includes the following steps:
[0030] S110. When a queue message is obtained from the successfully delivered order message queue, the order generation associated coordinates of the successfully delivered order corresponding to the queue message are obtained, and the validity of the order generation associated coordinates is verified.
[0031] One crucial method for updating (producing) address database data is through the logistics system's automatic data production based on order information feedback after successful delivery (delivery and receipt). This automatic data production is primarily achieved through an order generation-related coordinate strategy. This order generation-related coordinate data is automatically collected address coordinate data. When a user places an order (i.e., an order is generated), the coordinates of the user's location are collected. For example, the logistics system obtains the user's location coordinates through terminal hardware devices. Alternatively, assisted satellite positioning technology can be used, combining satellite positioning signals with positioning information from GSM or CDMA network base stations operated by mobile operators to locate the client that generated the order and obtain the corresponding address coordinates. Order generation-related coordinates can also be called order pipeline coordinates. The order generation-related coordinates and the corresponding order address constitute the data objects updated in the address database. Once an order is successfully signed for and delivered, the logistics system uploads a queue message to a pre-set delivered order message queue. Then, by consuming queue messages, the address data that needs to be updated in the address database is verified sequentially.
[0032] First, the accuracy of the order-generated coordinates must be verified. Since order-generated coordinates can be obtained through GPS positioning, cell tower positioning, and Wi-Fi positioning, and these three methods have varying degrees of accuracy, the accuracy of the final order-generated coordinates cannot be completely guaranteed. For example, if a user places an order from any platform at home, and GPS cannot obtain a signal within the building, the nearby cell tower signal is weak, and no Wi-Fi connection is established, the resulting order-generated coordinates will be highly inaccurate and cannot be assumed to be accurate.
[0033] The specific process for verifying the accuracy of order generation associated coordinates includes the following two steps: First, the order address of a successfully delivered order is parsed to obtain the order address coordinates. Then, it is determined whether the distance between the order generation associated coordinates and the order address coordinates is within a preset distance range, and whether the order generation associated coordinates are within the delivery range of any order delivery station. Only when both of these determinations are affirmative—that is, the distance between the order generation associated coordinates and the order address coordinates of a successfully delivered order is within the preset distance range, and the order generation associated coordinates are within the delivery range of any order delivery station—does the order generation associated coordinates pass the validity verification. Specifically, the preset distance range can be set and dynamically adjusted based on the average distance between different order delivery stations. When the location of an order delivery station changes, it can be set according to the adjusted distance. Typically, the preset distance can be any distance between 150 meters and 500 meters. For example, if the preset distance is 500 meters, and two order delivery stations in close proximity may only be separated by a road, a 500m verification parameter would be too large, causing many cross-station order coordinates to pass the verification. Therefore, the preset distance data can be adjusted, such as to 200 meters or less. The goal of determining whether the order generation coordinates are within the delivery range of any order delivery station is to confirm that the order can be delivered. If the location indicated by the order generation coordinates is not within the delivery range of any order delivery station, the order is considered invalid. Understandably, if the order is invalid, the order generation coordinates are also invalid. Furthermore, it's understandable that if the distance between the order's pipeline coordinates and the order address coordinates is large—for example, if user A buys items in their home city (first city) to send to a friend in a second city—the order address will not be automatically updated in the address database.
[0034] S120. When the validity of the generated associated coordinates of the order passes the verification, the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order is verified.
[0035] The delivery address is the address where the order is signed for. When an order is signed for, the logistics label is scanned. The logistics system uses the scanning equipment to determine the tracking number and other information to confirm that the order has been signed for and the delivery address, i.e., the delivery address. The pre-sorting address is a location pre-assigned by the logistics system that is close to the order address. It is used for outbound processing of order packages and sorting them according to the address. In this step, verifying the consistency between the pre-sorting address and the delivery address determines whether these two addresses are within the same order delivery station's delivery address fence. If they are consistent, it indicates that the logistics system's pre-sorting result is correct. This verification involves not only judging the accuracy of the pre-sorting result based on the two address coordinates but also establishing a connection with the specific order delivery station, ensuring strong coupling with the business, thereby reducing the error rate and return dispatch rate. If the pre-sorting coordinates and the delivery coordinates are consistent, it proves that the order generation associated coordinates are very effective. The order generation associated coordinates obtained when the user places an order are the actual coordinates of the order address.
[0036] S130. When the delivery address coordinates of the successfully delivered order are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, update the order generation associated coordinates and the order address of the successfully delivered order to the address database.
[0037] Once the coordinate verification steps described above confirm that the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, then the order generation associated coordinates obtained when the user places the order are determined to be the actual coordinates of the order address. Therefore, the order generation associated coordinates and order address of the currently obtained successfully delivered orders can be updated in the address database, achieving automatic updates to the address database.
[0038] The technical solution of this embodiment, upon receiving a queue message in the successfully delivered order message queue, first obtains and verifies the validity of the order generation associated coordinates of the successfully delivered order corresponding to the queue message. When the validity of the order generation associated coordinates passes the verification, it further verifies the consistency between the successfully delivered address coordinates and the pre-sorting address coordinates of the successfully delivered order. Then, when the successfully delivered address coordinates and the pre-sorting address coordinates are consistent, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database, enabling the address database to be automatically updated. This technical solution of this embodiment solves the problem of incomplete address verification process during address database data update, which cannot guarantee the accuracy of order generation associated coordinates. It achieves multiple verifications of order generation associated coordinates, improving the accuracy of address data updates.
[0039] Example 2
[0040] Figure 2 This is a flowchart illustrating an address database data update method according to Embodiment 2 of the present invention. This embodiment belongs to the same inventive concept as the address database data update method in the above embodiments, and further describes the process of updating the address database data when the order address changes, resulting in a difference between the delivery address and the pre-sorting address. This method can be executed by an address database data update device, which can be implemented in software and / or hardware and integrated into a computer device with application development capabilities.
[0041] like Figure 2 As shown, the address database data update method includes the following steps:
[0042] S210. When a queue message is obtained from the successfully delivered order message queue, the order generation associated coordinates of the successfully delivered order corresponding to the queue message are obtained, and the validity of the order generation associated coordinates is verified.
[0043] The specific process for verifying the accuracy of order-generated associated coordinates includes the following two steps: First, the order address of the successfully delivered order is parsed to obtain the order address coordinates; second, it is determined whether the distance between the order-generated associated coordinates and the order address coordinates is within a preset distance range, and whether the order-generated associated coordinates are within the delivery range of any order delivery station. Only when both of these determinations are affirmative, the order-generated associated coordinates pass the validity verification.
[0044] The determination of order address coordinates is achieved through the order address parsing process. First, the order addresses of successfully delivered orders are segmented according to address levels, where address levels refer to different geographical classifications such as province, city, district, county, and street. Then, based on the address segmentation results, corresponding coordinates are matched against a pre-set address coordinate database to obtain the order address coordinates, thus realizing the forward geocoding process of the order address. The pre-set address coordinate database contains coordinate information matching known addresses.
[0045] S220. When the validity of the generated associated coordinates of the order passes the verification, the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order is verified.
[0046] For a detailed description of steps S210 and S220, please refer to the specific content in Embodiment 1.
[0047] S230. When the delivery address coordinates of the successfully delivered order are inconsistent with the pre-sorting address coordinates, determine whether the order generation associated coordinates, the order address coordinates and the pre-sorting address coordinates are consistent, or determine whether the order generation associated coordinates, the order address coordinates and the coordinates of the successfully delivered address are consistent.
[0048] In real-world business scenarios, when a user changes their address after placing an order—for example, from a specific neighborhood in city A to a different neighborhood in city B—it's certain that the coordinates of the delivered address will differ from the coordinates of the pre-sorting address. Normally, a discrepancy between the delivered address and the pre-sorting address in the order information would be considered a pre-sorting error. However, when a customer changes their delivery address, although the delivered address and the pre-sorting address are different, it doesn't necessarily mean the pre-sorting was incorrect. Discarding addresses in such scenarios directly would result in the loss of a certain amount of address data.
[0049] In this embodiment, considering this specific business scenario, a new verification step is added. When the delivery address coordinates of a successfully delivered order are inconsistent with the pre-sorting address coordinates, it is further verified whether the order-generated associated coordinates, the order address coordinates (the original address before modification), and the pre-sorting address coordinates or the successfully delivered address coordinates are consistent. When the order-generated associated coordinates, the order address coordinates, and the pre-sorting address coordinates are consistent, or when the order-generated associated coordinates, the order address coordinates, and the successfully delivered address coordinates are consistent, it proves that the order-generated associated coordinates are accurate and can be written into the address database.
[0050] S240. When the order generation associated coordinates, the order address coordinates are consistent with the pre-sorting address coordinates, or the order generation associated coordinates, the order address coordinates are consistent with the delivery address coordinates, the order generation associated coordinates and the order address are updated in the address database.
[0051] Verification shows that when the generated order coordinates, order address coordinates, and pre-sorting address coordinates match, or when these three coordinates match the delivered address coordinates, the generated order coordinates are accurate. This adds an extra layer of security to the verification of the generated order coordinates. The generated order coordinates and order address can then be updated in the address database. Otherwise, the order address data for the delivered order will be discarded.
[0052] It should be noted that, in this embodiment of the invention, verifying the consistency among any multiple coordinates among the order generation associated coordinates, the delivery address coordinates, the pre-sorting address coordinates, and the order address coordinates of the delivered order means determining whether any multiple coordinates among the order generation associated coordinates, the delivery address coordinates, the pre-sorting address coordinates, and the order address coordinates of the delivered order are within the delivery range of the same order delivery station. If so, the verification passes.
[0053] The technical solution of this embodiment adds a verification step to the address verification process when the delivery address coordinates of a successfully delivered order are inconsistent with the pre-sorting address coordinates. This step verifies whether three address coordinates—the order-generated associated coordinates, the order address coordinates (the original address before modification), and the pre-sorting or delivery address coordinates—are consistent. This further determines the accuracy of the order-generated associated coordinates, allowing the address database to generate more accurate address data and thus update the address database. This embodiment solves the problem of incomplete address verification processes during address database updates, which cannot guarantee the accuracy of order-generated associated coordinates. It achieves multiple verifications of the order-generated associated coordinates, improving the accuracy of address data updates.
[0054] Furthermore, the overall flowchart for address database data updates is as follows: Figure 3 As shown. When a message is received from the successful delivery order message queue, the system consumes the queue messages. For each order corresponding to a queue message, it first verifies the validity of the order generation associated coordinates. If the verification passes, it performs a consistency check between the pre-sorting address and the successful delivery address. Otherwise, the order address information is discarded, and the address database update process ends. During the consistency check between the pre-sorting address and the successful delivery address, if the verification result is positive, it further verifies whether the order generation associated coordinates are consistent with the pre-sorting coordinates (i.e., confirming that the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address). If this is successful, the order generation associated coordinates and the order address are updated in the address database. Otherwise, the order address data for the successful delivery order is discarded. During the consistency verification process between the pre-sorting address and the delivery address, if the verification result is negative, further verification is performed to check whether the order generation associated coordinates, the order address coordinates (the original address before modification), and the pre-sorting address coordinates or the delivery address coordinates are consistent. This further determines the accuracy of the order generation associated coordinates, enabling the address database to generate more accurate address data and achieve the update of the address database data.
[0055] The following are embodiments of the address database data updating apparatus provided in this invention. This apparatus belongs to the same inventive concept as the address database data updating methods in the above embodiments and can implement the address database data updating methods in the above embodiments. Details not described in detail in the embodiments of the address database data updating apparatus can be found in the embodiments of the address database data updating methods described above.
[0056] Example 3
[0057] Figure 4 This is a schematic diagram of the address database data update device provided in Embodiment 3 of the present invention. This embodiment can be applied to the situation of updating the address database data according to the address of the successfully delivered order. The device can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0058] like Figure 4 As shown, the address database data update device includes: an order generation associated coordinate verification module 310, an order delivery station verification module 320, and an address data update module 330.
[0059] The order generation associated coordinate verification module 310 is used to obtain the order generation associated coordinates of the delivered order corresponding to the queue message when a queue message is obtained in the delivered order message queue, and to verify the validity of the order generation associated coordinates; the order delivery station verification module 320 is used to verify the consistency between the delivered address coordinates and the pre-sorting address coordinates of the delivered order when the validity of the order generation associated coordinates passes the verification; the address data update module 330 is used to update the order generation associated coordinates and the order address of the delivered order to the address database when the delivered address coordinates of the delivered order are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address.
[0060] The technical solution of this embodiment, upon receiving a queue message in the successfully delivered order message queue, first obtains and verifies the validity of the order generation associated coordinates of the successfully delivered order corresponding to the queue message. When the validity of the order generation associated coordinates passes the verification, it further verifies the consistency between the successfully delivered address coordinates and the pre-sorting address coordinates of the successfully delivered order. Then, when the successfully delivered address coordinates and the pre-sorting address coordinates are consistent, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database, enabling the address database to be automatically updated. This technical solution of this embodiment solves the problem of incomplete address verification process during address database data update, which cannot guarantee the accuracy of order generation associated coordinates. It achieves multiple verifications of order generation associated coordinates, improving the accuracy of address data updates.
[0061] Optionally, the order generation associated coordinate verification module 310 is specifically used for:
[0062] Parse the order address of the successfully delivered order to obtain the order address coordinates;
[0063] Determine whether the distance between the order generation associated coordinates and the order address coordinates is within a preset distance range, and determine whether the order generation associated coordinates are within the order delivery range of any order delivery station;
[0064] When the distance between the order generation associated coordinates and the order address coordinates is within a preset distance range, and the order generation associated coordinates are within the order delivery range of any order delivery station, the validity of the order generation associated coordinates is verified.
[0065] Optionally, the address data update module 330 is further configured to: when the delivery address coordinates of the successfully delivered order are inconsistent with the pre-sorting address coordinates, determine whether the order generation associated coordinates, the order address coordinates and the pre-sorting address coordinates are consistent, or determine whether the order generation associated coordinates, the order address coordinates and the coordinates of the successfully delivered address are consistent;
[0066] When the order generation associated coordinates, the order address coordinates are consistent with the pre-sorting address coordinates, or the order generation associated coordinates, the order address coordinates are consistent with the delivery address coordinates, the order generation associated coordinates and the order address are updated in the address database;
[0067] Otherwise, discard the order address data of the successfully delivered order.
[0068] Optionally, the address database data update device further includes a verification parameter adjustment module, used for:
[0069] The preset distance value is set based on the average distance between different order delivery stations.
[0070] Optionally, the preset distance is any distance between 150 meters and 500 meters.
[0071] Optionally, the order generation associated coordinate verification module 310 is also used for:
[0072] The order addresses of the successfully delivered orders are segmented into words according to the address level;
[0073] Based on the word segmentation results, the corresponding coordinates are matched in the preset address coordinate database to obtain the order address coordinates.
[0074] Optionally, the order generation associated coordinate verification module 310 and the order delivery station verification module 320 verify the consistency among any multiple coordinates among the order generation associated coordinates, the delivery address coordinates, the pre-sorting address coordinates, and the order address coordinates of the delivered order by determining whether any multiple coordinates are within the delivery range of the same order delivery station.
[0075] The address database data update device provided in this embodiment of the invention can execute the address database data update method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0076] Example 4
[0077] Figure 5 This is a schematic diagram of the structure of a server device provided in Embodiment 4 of the present invention. Figure 5 A block diagram of an exemplary server 12 suitable for implementing embodiments of the present invention is shown. Figure 5 The server 12 shown is merely an example and should not be construed as limiting the functionality or scope of use of this embodiment of the invention. Server 12 can be any terminal device with computing capabilities, such as a smart controller, server, or mobile phone.
[0078] like Figure 5 As shown, server 12 is presented in the form of a general-purpose computing device. The components of server 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0079] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0080] Server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by server 12, including volatile and non-volatile media, removable and non-removable media.
[0081] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0082] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0083] Server 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable users to interact with server 12, and / or with any device that enables server 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, server 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of server 12 via bus 18. It should be understood that, although... Figure 5 As not shown, it can be combined with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0084] Processing unit 16 executes various functional applications and data processing by running programs stored in system memory 28, such as implementing the address database data update method provided in this embodiment, which includes:
[0085] When a queue message is obtained from the successfully delivered order message queue, the order generation associated coordinates of the successfully delivered order corresponding to the queue message are obtained, and the validity of the order generation associated coordinates is verified.
[0086] When the validity of the generated associated coordinates of the order passes the verification, the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order is verified.
[0087] When the delivery address coordinates of the successfully delivered order are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database.
[0088] Example 5
[0089] This fifth embodiment provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements the address database data update method as provided in any embodiment of the present invention, including:
[0090] When a queue message is obtained from the successfully delivered order message queue, the order generation associated coordinates of the successfully delivered order corresponding to the queue message are obtained, and the validity of the order generation associated coordinates is verified.
[0091] When the validity of the generated associated coordinates of the order passes the verification, the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order is verified.
[0092] When the delivery address coordinates of the successfully delivered order are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database.
[0093] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0094] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0095] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0096] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0098] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for updating address database data, characterized in that, The method includes: When a queue message is obtained from the successfully delivered order message queue, the order generation associated coordinates of the successfully delivered order corresponding to the queue message are obtained, and the validity of the order generation associated coordinates is verified. The order generation associated coordinates are the coordinates of the location of the user who placed the order. When the validity of the generated associated coordinates of the order passes the verification, the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order is verified; wherein, the delivery address is the address where the order is signed for, and the pre-sorting address is a location pre-assigned by the logistics system that is at a distance from the order address that meets a preset threshold. When the delivery address coordinates of the successfully delivered order are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address, the order generation associated coordinates and the order address of the successfully delivered order are updated in the address database. When the delivery address coordinates of the successfully delivered order are inconsistent with the pre-sorting address coordinates, the method further includes: Determine whether the order generation associated coordinates, the order address coordinates, and the pre-sorting address coordinates are consistent, or determine whether the order generation associated coordinates, the order address coordinates, and the delivery address coordinates are consistent; When the order generation associated coordinates, the order address coordinates are consistent with the pre-sorting address coordinates, or the order generation associated coordinates, the order address coordinates are consistent with the delivery address coordinates, the order generation associated coordinates and the order address are updated in the address database; Otherwise, discard the order address data of the successfully delivered order.
2. The method according to claim 1, characterized in that, The validity of the generated associated coordinates for the order is validated, including: Parse the order address of the successfully delivered order to obtain the order address coordinates; Determine whether the distance between the order generation associated coordinates and the order address coordinates is within a preset distance range, and determine whether the order generation associated coordinates are within the order delivery range of any order delivery station; When the distance between the order generation associated coordinates and the order address coordinates is within a preset distance range, and the order generation associated coordinates are within the order delivery range of any order delivery station, the validity of the order generation associated coordinates is verified.
3. The method according to claim 2, characterized in that, The method further includes: The preset distance value is set based on the average distance between different order delivery stations.
4. The method according to claim 2, characterized in that... The preset distance is any distance between 150 meters and 500 meters.
5. The method according to claim 2, characterized in that, The process of parsing the order address of the successfully delivered order to obtain the order address coordinates includes: The order addresses of the successfully delivered orders are segmented into words according to the address level; Based on the word segmentation results, the corresponding coordinates are matched in the preset address coordinate database to obtain the order address coordinates.
6. The method according to any one of claims 1-5, characterized in that, Verifying the consistency among any multiple coordinates among the order generation associated coordinates, the delivery address coordinates, the pre-sorting address coordinates, and the order address coordinates of the delivered order includes: Determine whether any multiple coordinates among the order generation associated coordinates, the successful delivery address coordinates, the pre-sorting address coordinates, and the order address coordinates of the successfully delivered order are within the delivery range of the same order delivery station.
7. The method according to any one of claims 1-5, characterized in that, The order generation associated coordinates include the order pipeline coordinates.
8. An address database data updating device, characterized in that, The device includes: The order generation associated coordinate verification module is used to obtain the order generation associated coordinates of the successfully delivered order corresponding to the queue message when a queue message is obtained in the successfully delivered order message queue, and to verify the validity of the order generation associated coordinates. The order generation associated coordinates are the coordinates of the location of the user who placed the order. The order delivery site verification module is used to verify the consistency between the delivery address coordinates and the pre-sorting address coordinates of the successfully delivered order when the validity of the generated associated coordinates of the order passes the verification; wherein, the delivery address is the address where the order is signed for, and the pre-sorting address is a location pre-assigned by the logistics system that is at a distance from the order address that meets a preset threshold. The address data update module is used to update the order generation associated coordinates and the order address of the successfully delivered order to the address database when the successfully delivered address coordinates are consistent with the pre-sorting address coordinates, and the order delivery station corresponding to the location of the order generation associated coordinates is the same as the order delivery station corresponding to the pre-sorting address. The address data update module is also used to determine whether the order generation associated coordinates, the order address coordinates and the pre-sorting address coordinates are consistent, or to determine whether the order generation associated coordinates, the order address coordinates and the delivery address coordinates are consistent; When the order generation associated coordinates, the order address coordinates are consistent with the pre-sorting address coordinates, or the order generation associated coordinates, the order address coordinates are consistent with the delivery address coordinates, the order generation associated coordinates and the order address are updated in the address database; Otherwise, discard the order address data of the successfully delivered order.
9. A server, characterized in that, The server includes: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the address library data update method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the address library data update method as described in any one of claims 1-7.
Citation Information
Patent Citations
Order delivery management method and device
CN113706032A