Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for logistics distribution and sorting, which can improve the accuracy of sorting, avoid secondary sorting, and save the overall logistics cost.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for logistics distribution billing.
The method for logistics distribution and order distribution in the embodiment of the invention comprises the following steps: determining a distribution road area; determining an address set of each distribution road area according to historical distribution address data; and determining the distribution station to which each distribution road area belongs.
Optionally, the step of determining the distribution road area includes: acquiring the driving track data of a distributor; determining an initial road area according to the driving track data of the distributor; determining the order coverage density of each initial road area, and adjusting the initial road area according to the order coverage density and road network data; and determining a distribution road area based on the adjusted initial road area.
Optionally, the step of determining an address set of each distribution route area according to the historical distribution address data includes: determining a geo-fence of a distribution road area and a geo-code of each historical distribution address data based on road network data; determining a distribution road area to which each historical distribution address data belongs according to the geographic codes and the geographic fences; the historical distribution address data belonging to the same distribution road area form an address set of the distribution road area.
Optionally, after determining the address set of each distribution route region according to the historical distribution address data, the method further includes: for the address set of each distribution road area, performing word segmentation on historical distribution address data in the address set; extracting keywords of the historical distribution address data based on the historical distribution address data after word segmentation processing; and establishing an association relation between the extracted keywords and the distribution road area corresponding to the address set.
Optionally, the step of determining the distribution station to which each distribution road zone belongs includes: determining the corresponding distributor information of each distribution road area; and determining the distribution site to which each distribution road area belongs based on the binding relationship between the distributors and the distribution sites in the distributor information.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an apparatus for logistics distribution billing.
The device for logistics distribution and order distribution in the embodiment of the invention comprises: the road area determining module is used for determining distribution road areas;
the address set determining module is used for determining the address set of each distribution road area according to historical distribution address data; and
and the station determining module is used for determining the distribution station to which each distribution road area belongs.
Optionally, the road area determining module is further configured to obtain travel track data of the deliverer; determining an initial road area according to the driving track data of the distributor; determining the order coverage density of each initial road area, and adjusting the initial road area according to the order coverage density and road network data; and determining a distribution road area based on the adjusted initial road area.
Optionally, the address set determining module is further configured to determine, based on the road network data, a geo-fence of the distribution road area and a geo-code of each historical distribution address data; determining a distribution road area to which each historical distribution address data belongs according to the geographic codes and the geographic fences; the historical distribution address data belonging to the same distribution road area form an address set of the distribution road area.
Optionally, the system further comprises a correlation module, configured to perform word segmentation on historical delivery address data in an address set of each delivery road area; extracting keywords of the historical distribution address data based on the historical distribution address data after word segmentation processing; and establishing an association relation between the extracted keywords and the distribution road area corresponding to the address set.
Optionally, the station determining module is further configured to determine information of a distributor corresponding to each distribution road area; and determining the distribution site to which each distribution road area belongs based on the binding relationship between the distributors and the distribution sites in the distributor information.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
The electronic device of the embodiment of the invention comprises: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement any of the above-described methods for logistics distribution billing.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any one of the above-mentioned methods for logistics distribution billing.
One embodiment of the above invention has the following advantages or benefits: after determining the address of the order to be allocated, the distribution road area to which the order to be allocated belongs may be determined based on the address set of each distribution road area. And determining the distribution station to which each distribution road area belongs, and then determining the distribution station corresponding to the order to be distributed. After the order to be distributed reaches the corresponding distribution station, the distribution road area of the order to be distributed is known, so that the order to be distributed can be directly distributed without secondary sorting operation. The distribution road area and the distribution station corresponding to the order to be distributed can be determined more accurately, and the overall logistics cost is saved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic view of a main flow of a method for logistics distribution billing according to an embodiment of the present invention, and as shown in fig. 1, the method for logistics distribution billing according to the embodiment of the present invention mainly includes:
step S101: and determining a distribution road area. In the embodiment of the invention, the distribution road area refers to the smallest distribution unit in the logistics distribution and order distribution system, and the distribution unit is refined, so that the distribution is more accurate when the order is distributed. Specifically, the driving track data of the deliverers is acquired, and then the initial road area is determined according to the driving track data of the deliverers. And determining the order coverage density of each initial road area, and adjusting the initial road area according to the order coverage density and the road network data. And determining a distribution road area based on the adjusted initial road area. The road area formed according to the trajectory of the dispenser is relatively original and has a relatively wide range, and usually comprises a plurality of cells or buildings. And the distributors and the road areas are one-to-many, the road areas are vector graphics, the range of a GIS is provided, and the range of the whole road area is a proper subset of the range of the sites.
When the number of distributors at the distribution station increases or decreases, or the density of distribution orders changes as the business progresses, the corresponding road area range also changes. Therefore, the initial road area determined according to the trajectory of the distributor can only be a basic initial road area and cannot be used as a final standard distribution road area, and further accurate analysis combined with more objective factors is needed. And (3) comprehensively considering the bottom road network data of the map quotient (a Baidu map, a Gade map, an Tencent map, a dog search map and the like) and the distribution (order coverage density) of the orders to form a distribution road area taking the building as a reference range. The bottom layer data of the map quotient, namely the bottom layer data of the electronic map, comprises three parts: point of interest, road network, and background data. The road network refers to information of roads, and a large network is formed due to the intersection of the roads.
In another embodiment, the distribution route areas may also be determined manually, for example, each cell is determined as a distribution route area, or two cells closest to each other are determined as a distribution route area. In this embodiment, the orders for each delivery road section are also delivered by fixed delivery personnel.
Step S102: and determining an address set of each distribution road area according to the historical distribution address data. Specifically, determining a geo-fence of a distribution road area and a geo-code of each historical distribution address data based on road network data; determining a distribution road area to which each historical distribution address data belongs according to the geographic codes and the geographic fences; the historical distribution address data belonging to the same distribution road area form an address set of the distribution road area. After the address set of each distribution road area is determined, when the order is divided, which set the address of the order to be distributed belongs to can be determined based on the address set. And after the order is determined, the distribution road area corresponding to the order to be distributed can be known.
After the distribution road areas are determined in step S101, each distribution road area is represented in a geo-fence form based on the underlying road network data of the graph quotient (Baidu map, Gauss map, Tencent map, dog search map, etc.), that is, a vector diagram, which is a distribution unit serving as a logistics basis. Geo-fencing (Geo-fencing) is a new application of LBS, and is a virtual fence used to enclose a virtual geographic boundary. The handset may receive automatic notifications and alerts when the handset enters, leaves, or is active within a particular geographic area. With geo-fencing, a location social networking site can help users automatically register when entering a certain region.
After determining the address set of each distribution road area according to the historical distribution address data, the method further comprises the following steps: for the address set of each distribution road area, performing word segmentation on historical distribution address data in the address set; extracting keywords of the historical distribution address data based on the historical distribution address data after word segmentation processing; and establishing an association relation between the extracted keywords and the distribution road area corresponding to the address set. After the association relation is established, when the order is divided, the distribution road area associated with the address can be determined by performing word division processing on the address of the order to be distributed. For example, the address "Chao Lin Square A seat 2207" in Beijing City of Daxing, Kao-Rong-Hua-Zhonghua-Lu No. 19 Chao Lin Square A seat "can be extracted by using a data mining algorithm. After extracting the keywords, the keywords can be associated with the road area, and as long as the order is sent to the 'Chao Lin Square A seat', the order can be matched with the road area by using a fuzzy search technology, so that the order can be accurately sorted. In the above process, basic keywords may be extracted by methods such as lstm and crf based on word2vec (a tool kit for obtaining word vectors). Wherein lstm and crf are both specific machine learning algorithms, and lstm (long short-term memory) is a long-short term memory network and is a time recurrent neural network algorithm; crf (conditional random field algorithm) is a conditional random field algorithm.
Step S103: and determining the distribution station to which each distribution road area belongs. Specifically, determining the information of the distributor corresponding to each distribution road area; and determining the distribution site to which each distribution road area belongs based on the binding relationship between the distributors and the distribution sites in the distributor information. The range of the distribution road area is represented by combining the bottom road network data of the graph quotient, and the distribution road area and the distributor are bound together, the distributor and the site have binding relation binding (the distributor is responsible for distributing the order of the distribution site), so that the distribution site to which each distribution road area belongs can be further determined.
Based on the embodiment of the invention, after the address of the order to be distributed is determined, the distribution road area to which the order to be distributed belongs can be determined based on the address set of each distribution road area. And determining the distribution station to which each distribution road area belongs, and then determining the distribution station corresponding to the order to be distributed. After the order to be distributed reaches the corresponding distribution station, the distribution road area of the order to be distributed is known, so that the order to be distributed can be directly distributed without secondary sorting operation. The distribution road area and the distribution station corresponding to the order to be distributed can be determined more accurately, and the overall logistics cost is saved.
Fig. 2 is a schematic diagram of a method for logistics distribution singulation according to an embodiment of the present invention.
First, a travel path of a dispenser is excavated to form a rough delivery route area. The driving track of the distributor is uploaded every day in real time, and can be used for analysis after the basic track is corrected. The routes traveled by the distributors are basically fixed every day, so that a coarse distribution road area taking the distributors as a unit can be formed according to the GIS tracks.
And then, according to the determined coarse distribution road area, combining the road network and the order data to form a final distribution road area. The road area formed according to the trajectory of the dispenser is relatively original and has a relatively wide range, and usually comprises a plurality of cells or buildings. When the number of distributors at the distribution station increases or decreases, or the density of distribution orders changes as the business progresses, the corresponding road area range also changes. Therefore, the road areas excavated according to the method are inaccurate, and more objective factors need to be further combined for accurate analysis. Combining the bottom layer road network data of the graph trader and the distribution of the orders, comprehensively considering to form a road area taking a building as a reference range, and expressing the road area in a geographic fence form, namely a vector diagram, as a distribution unit for logistics basis.
And mapping the appropriate address base according to the mining history of the distribution road area. The database of due delivery addresses records historical delivery data, including in particular historical delivery addresses (shipping addresses), which are mappings of all shipping addresses to delivery sites on which business operations depend. And calling the geocoding service of the graph provider to obtain the coordinates corresponding to each address. By distributing the geo-fences of the road areas, the mapping between the addresses and the road areas can be obtained, and all address sets under the road areas can be obtained. Therefore, when the address is placed again, the distribution road area to which the address belongs can be easily obtained.
And, according to the historical delivery address data, calculate the mapping of the address keyword and delivery road district. Due to the accuracy of the geocoding service of the graph provider, the requirement of distribution coverage accuracy cannot be met. Therefore, the co-occurrence phenomenon of the address is further counted by using a data mining algorithm, and basic keywords are extracted by using methods such as lstm and crf on the basis of word2vec (a tool kit for acquiring a word vector). For example, the address "Chao Lin Square A seat 2207" is extracted from Beijing City Daxing, Zhangronghua 19, Chao Lin Square A seat "by using a data mining algorithm. After extracting the key words, the key words and the road areas can be associated, and then the road areas can be matched by using a fuzzy search technology as long as the order is sent to the 'Chao Lin square A seat', so that the order can be accurately sorted.
And finally, flexibly managing distribution road areas, dynamically validating the relation between the road areas and the sites, and generating package labels. The parcel label includes a distribution road area (road area number, etc.) and distributor information corresponding to the order to be distributed. According to the process, the distribution road area corresponding to the order to be distributed, namely the minimum distribution unit, is determined. The determined data can be synchronized to the package label system, and when the label on the package of the delivery order is printed, the information is displayed, namely the word of 'a certain deliverer-a certain road area'. Therefore, the system can be quickly identified during sorting in the sorting center and secondary sorting in the station.
Based on the embodiment of the invention, after the address of the order to be distributed is determined, the distribution road area to which the order to be distributed belongs can be determined based on the address set of each distribution road area. And determining the distribution station to which each distribution road area belongs, and then determining the distribution station corresponding to the order to be distributed. After the order to be distributed reaches the corresponding distribution station, the distribution road area of the order to be distributed is known, so that the order to be distributed can be directly distributed without secondary sorting operation. The distribution road area and the distribution station corresponding to the order to be distributed can be determined more accurately, and the overall logistics cost is saved. According to the order sorting method, the order sorting can be accurately and efficiently realized. In the link of the sorting center, the containers can be packed and dispatched by taking a road area as a unit in sorting and delivery. In the website, alright quick discernment parcel code on the label realize accurate putting on the shelf, the loading when needing secondary in standing letter sorting. The area of the distribution station is saved, the time from production to delivery of the packages is reduced, the packages are completely delivered to the station according to the order quantity from sorting to the station, and the package circulation rate is comprehensively improved.
Fig. 3 is a schematic diagram of main blocks of an apparatus for logistics distribution billing according to an embodiment of the present invention, and as shown in fig. 3, an apparatus 300 for logistics distribution billing according to an embodiment of the present invention includes a road zone determination module 301, an address set determination module 302, and a site determination module 303.
The road area determining module 301 is configured to determine a distribution road area. The distribution road area refers to the smallest distribution unit in the logistics distribution and order distribution system, and the distribution unit is refined, so that the distribution is more accurate when the order is distributed. The road area determining module is also used for acquiring the driving track data of the distributor; determining an initial road area according to the driving track data of the distributor; determining the order coverage density of each initial road area, and adjusting the initial road area according to the order coverage density and the road network data; and determining a distribution road area based on the adjusted initial road area.
The address set determining module 302 is configured to determine an address set of each distribution route area according to the historical distribution address data. The address set determining module is further used for determining the geographic fence of the distribution road area and the geographic code of each historical distribution address data based on the road network data; determining a distribution road area to which each historical distribution address data belongs according to the geographic codes and the geographic fences; the historical distribution address data belonging to the same distribution road area form an address set of the distribution road area. After the address set of each distribution road area is determined, when the order is divided, which set the address of the order to be distributed belongs to can be determined based on the address set. And after the order is determined, the distribution road area corresponding to the order to be distributed can be known.
The site determining module 303 is configured to determine a distribution site to which each distribution road zone belongs. The station determining module is further used for determining the distributor information corresponding to each distribution road area; and determining the distribution site to which each distribution road area belongs based on the binding relationship between the distributors and the distribution sites in the distributor information.
The device for logistics distribution and billing of the embodiment of the invention further comprises a correlation module, a billing module and a billing module, wherein the correlation module is used for performing word segmentation on historical distribution address data in the address set for the address set of each distribution road area; extracting keywords of the historical distribution address data based on the historical distribution address data after word segmentation processing; and establishing an association relation between the extracted keywords and the distribution road area corresponding to the address set.
Based on the embodiment of the invention, after the address of the order to be distributed is determined, the distribution road area to which the order to be distributed belongs can be determined based on the address set of each distribution road area. And determining the distribution station to which each distribution road area belongs, and then determining the distribution station corresponding to the order to be distributed. After the order to be distributed reaches the corresponding distribution station, the distribution road area of the order to be distributed is known, so that the order to be distributed can be directly distributed without secondary sorting operation. The distribution road area and the distribution station corresponding to the order to be distributed can be determined more accurately, and the overall logistics cost is saved.
Fig. 4 illustrates an exemplary system architecture 400 for a method for logistics distribution billing or an apparatus for logistics distribution billing to which embodiments of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 401, 402, 403. The background management server can analyze and process the received data such as the product information inquiry request and feed back the processing result to the terminal equipment.
It should be noted that the method for logistics distribution billing provided by the embodiment of the present invention is generally performed by the server 405, and accordingly, the apparatus for logistics distribution billing is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an acquisition road zone determination module, an address set determination module, and a site determination module. The names of these modules do not in some cases constitute a definition of the modules themselves, for example, the road area determination module may also be described as a "module that determines a distribution road area".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: determining a distribution road area; determining an address set of each distribution road area according to historical distribution address data; and determining the distribution station to which each distribution road area belongs.
Based on the embodiment of the invention, after the address of the order to be distributed is determined, the distribution road area to which the order to be distributed belongs can be determined based on the address set of each distribution road area. And determining the distribution station to which each distribution road area belongs, and then determining the distribution station corresponding to the order to be distributed. After the order to be distributed reaches the corresponding distribution station, the distribution road area of the order to be distributed is known, so that the order to be distributed can be directly distributed without secondary sorting operation. The distribution road area and the distribution station corresponding to the order to be distributed can be determined more accurately, and the overall logistics cost is saved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.