WO2018145636A1 - 物流单号生成方法 - Google Patents

物流单号生成方法 Download PDF

Info

Publication number
WO2018145636A1
WO2018145636A1 PCT/CN2018/075577 CN2018075577W WO2018145636A1 WO 2018145636 A1 WO2018145636 A1 WO 2018145636A1 CN 2018075577 W CN2018075577 W CN 2018075577W WO 2018145636 A1 WO2018145636 A1 WO 2018145636A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
address
level
sub
section
Prior art date
Application number
PCT/CN2018/075577
Other languages
English (en)
French (fr)
Inventor
王美兰
辛国臣
贺杰梅
辛国政
樊宇璇
Original Assignee
王美兰
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 王美兰 filed Critical 王美兰
Publication of WO2018145636A1 publication Critical patent/WO2018145636A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results

Definitions

  • the invention relates to the field of logistics information technology, in particular to a method for generating a logistics number.
  • express delivery has become the most exposed part of people's daily life, and has become an indispensable part of people's lives.
  • the volume of express delivery business was 20.6 billion pieces, a year-on-year increase of 48%.
  • the maximum daily processing capacity exceeded 160 million pieces, and the express delivery business income was 276 billion yuan.
  • the 20.6 billion express delivery business requires at least 20.6 billion express orders, and requires a full 20.6 billion acquisitions and distribution activities, and this number is growing at a double-digit rate every year.
  • the express delivery business mainly uses the one-trip triple express order to fill in the order information, and completes the delivery service through the order information on the express delivery slip.
  • the sender In order to successfully complete the delivery process of a courier, the sender needs to fill in the personal information of the recipient's name, address, contact information, etc. clearly and correctly on the courier. At the same time, the sender also needs to fill in some of the information. Go to the courier.
  • the courier has detailed personal information, and the courier is exposed in the outside world.
  • Teen who can access the courier can easily obtain the personal information filled in the courier, so the courier can easily expose the personal information. To others, causing personal information to leak. According to the statistics of the rookie network, from December 2014 to December 2015, there were only 43 cases of information disclosure by express companies, and millions of consumer privacy order information were leaked.
  • the embodiment of the invention provides a method for generating a logistics number, which is used to solve at least one of the above technical problems.
  • an embodiment of the present invention provides a method for generating a logistics number for a server, the method comprising: dividing user address information in an order into a first sub-section and a second sub-section, the first sub- The department is administrative information of each level, the second sub-section is final address information under the root-level area in the administrative area information of the respective levels; and the administrative area corresponding to the first sub-section is determined by using the regional code base Encoding; determining, by the final level address code library, a final level address encoding corresponding to the second sub-portion, wherein each of the final level address codes in the final level address code library corresponds to a plurality of final level addresses representing the same location Information; determining, according to the determined administrative area code and the final address code, a user address code corresponding to the user address information, and generating a logistics order number based on at least the user address code and the additional difference code, wherein the additional difference code Used to ensure that the logistics order numbers corresponding to different orders are different.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs including execution instructions, which can be used by an electronic device (including but not limited to a computer, a server, or a network) The device or the like is read and executed for performing the above-described one of the above-described logistics order number generation methods of the present invention.
  • an electronic device comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor to enable the at least one processor to perform any of the above described logistics order number generation methods of the present invention.
  • an embodiment of the present invention further provides a computer program product, the computer program product comprising a computing program stored on a storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer,
  • the computer executes any of the above-described logistics order number generation methods.
  • the beneficial effects of the embodiment of the present invention are as follows: dividing the user address information in the order into the first sub-section including the administrative area information at all levels and the final-level address information in the root-level area including the administrative area information of the various levels.
  • the second sub-section determines the codes corresponding to the two sub-sections respectively, and finally generates an encrypted logistics slip by combining the additional distinguishing codes and the encoding result, thereby avoiding leakage of user information and improving the level of privacy protection for the user.
  • the terminal address information identified by the second sub-section in the embodiment of the present invention may be multiple representation forms indicating the same address, so that even when different users describe the same address by using different description manners, Encoding different description modes into the same code ensures a one-to-one correspondence between address coding and addresses, and avoids coding confusion.
  • FIG. 1 is a flow chart of an embodiment of a method for generating a logistics order number according to the present invention
  • step S12 of FIG. 1 is a flow chart of an embodiment of step S12 of FIG. 1;
  • step S12 of FIG. 1 is a flow chart of an embodiment of step S12 of FIG. 1;
  • FIG. 4 is a flow chart of an embodiment of step S21 of Figure 2 and step S31 of Figure 3;
  • FIG. 5 is a flow chart of an embodiment of step S41 in Figure 4.
  • FIG. 6 is a schematic block diagram of an embodiment of a logistics bill number generating apparatus according to the present invention.
  • FIG. 7 is a schematic block diagram of an embodiment of an administrative area code determining module in a logistics bill number generating apparatus according to the present invention.
  • FIG. 8 is a schematic block diagram of another embodiment of an administrative area code determining module in the logistics bill number generating apparatus of the present invention.
  • FIG. 9 is a schematic block diagram of still another embodiment of an administrative area code determining module in the logistics bill number generating apparatus of the present invention.
  • FIG. 10 is a schematic block diagram of an embodiment of an administrative area code step-by-step determining unit in the logistics bill number generating apparatus of the present invention
  • FIG. 11 is a schematic structural view of an embodiment of an electronic device of the present invention.
  • a method for generating a logistics number of an embodiment of the present invention is used for a server, and the method includes:
  • At least the user address information in the order is divided into a first sub-section and a second sub-section, wherein the first sub-section is administrative information of each level, and the second sub-section is in the administrative area information of the various levels.
  • S14 Determine, according to the determined administrative area code and the final level address code, a user address code corresponding to the user address information, and generate a logistics order number based on at least the user address code and the additional difference code, where the additional difference code Used to ensure that the logistics order numbers corresponding to different orders are different.
  • the beneficial effect of the embodiment is that the user address information in the order is divided into a first sub-section including all levels of administrative area information and a first-level address information including the root level area in the administrative area information of the various levels.
  • the two sub-sections respectively determine the codes corresponding to the two sub-sections, and finally generate the encrypted logistics order number by combining the additional difference codes and the encoding results, thereby avoiding leakage of user information and improving the level of privacy protection for users.
  • the terminal address information identified by the second sub-section in the embodiment of the present invention may be multiple representation forms indicating the same address, so that even when different users describe the same address by using different description manners, Coding different description modes into the same code ensures a one-to-one correspondence between the address code and the address, thereby avoiding the occurrence of coding confusion.
  • the address coded in this embodiment is a character string or a two-dimensional code generated according to a character string or a barcode generated according to a character string, and the like.
  • the first sub-portion includes at least a province (city), a city, a county, a town, a village, and the like
  • the second sub-portion includes at least a street, a cell, a building number, a unit number, a house number, and the like.
  • Room 203, Unit 3, Building 3, Honglian Community, North Taipingzhuang Street, Haidian District, Beijing can be divided into the first sub-section: Beijing Haidian District, and the second sub-division: Building 3, Honglian Community, North Taipingzhuang Street Unit 203; for the address: No.
  • the code may be generated in a prescribed manner at the house number position, and the house number is displayed in text form.
  • each terminal address code in the final address code library corresponds to multiple terminal address information indicating the same place as follows: "10th floor, No. 60, Xizhimen North Street, Beitaipingzhuang Street, Haidian District, Beijing” and "Beijing Haidian The 10th floor of Shougang International Building, Taipingzhuang Street, North District, although the two expressions are different, they represent the same address. Therefore, in the embodiment of the present invention, when a user facing different expression habits describes the same address in different expressions, a unique address code can be determined, and a one-to-one correspondence between the address information and the address code is ensured, thereby avoiding Coding confusion occurs.
  • the user address code corresponding to the user address information is determined according to the determined administrative area code and the final level address code, or may be generated according to a certain coding rule according to the determined administrative area code and the final level address code.
  • the user address code of the user address information is not limited in the embodiment of the present invention.
  • the administrative area code library and the terminal address code library in the above embodiment are pre-established.
  • the administrative area code base includes a code for the administrative area name of each level for encoding the first sub-section; the final address code library includes the first sub-part for the user address information.
  • the root-level region in the above embodiment is the lowest-level first-level administrative region among the administrative regions in the first sub-section.
  • the area code library stores a code associated with the area name of each administrative area of the first sub-section, and updates the administrative areas of the first sub-section periodically or irregularly.
  • the code for the association name of the territory name is not limited to “https://www.google.com/"
  • the encoding for a certain address may not be fixed.
  • the above address “Shougang International Building of North Taipingzhuang Street, Haidian District, Beijing” can be coded regularly or irregularly for the address of “Xicheng District”.
  • the code of 'Xicheng District' is 01, Haidian District.
  • the code of 'Xicheng District' is 02, and the code of Haidian District is 03, with a certain mark to distinguish, to avoid confusion in the information of 'Xicheng District' and 'Haidian District'.
  • the dynamic management and use of address coding can be realized, and the code caused by fixed coding can be prevented from revealing personal privacy information.
  • the logistics order number generation method further includes: determining a user name code corresponding to the user name information in the order; wherein generating the logistics order number based on at least the user address code and the additional difference code comprises: The user address code, the user name code, and the additional difference code generate a logistics order number.
  • the user name code includes the English letter of the user's name, or the numerical combination of the English letter of the user's name and the tone, such as LIJIANGUO or LI3JIAN4GUO2 (Li Jianguo), and the number represents the tone.
  • the additional difference code is used to count the number of order orders corresponding to the same user address code.
  • a certain user address code is 0123456789
  • the additional difference code is 01 or 02 or 09, respectively indicating that the address corresponding to the address of the certain user address is received for the first time or the second time or the ninth time (logistics list)
  • the numbers are 012345678901 or 012345678902 or 012345678909).
  • the logistics order number can be used not only as a logistics order number but also as a sales order number or a transaction order number for determining sales records and transactions corresponding to the same user address code and possible user names. Records, which in turn can be used to analyze purchase and distribution habits and determine the distribution of user groups.
  • the method further comprises: associating the logistics order number with a user contact number in the order, to allow the terminal matching the server to pass the The server calls the network paging mode of the logistics order number, and establishes a mobile communication connection with the user contact telephone.
  • the computer can continue to read the information such as the identification phone number of the user word by word, and associate the information such as the user's phone number with the logistics order number. For example, after reading, analyzing, and identifying the user's phone number and other information, upload it to the back office (server) of the logistics company, and associate the user's phone number with the logistics order number (for example, the user's logistics order number is 012345678901, The user's mobile phone number is 13900100100, and the logistics order number 012345678901 is used as the temporary number instead of the user's real telephone number 13900100100.
  • the logistics order number 012345678901 is used as the temporary number instead of the user's real telephone number 13900100100.
  • the delivery personnel can dial the logistics application number 012345678901 through the APP application software preinstalled by the smart terminal (mobile phone) (the analog dialing interface exists in the pre-installed APP, the actual logistics number is sent to the server), and the logistics order number is received at the server.
  • the real telephone number 13900100100 corresponding to the logistics order number is searched, and the real telephone number is fed back to the dialed smart terminal, and the pre-installed APP automatically starts the smart terminal after detecting the real telephone number fed back by the server.
  • the dialing function is used to dial the real phone number to get in touch with the user.
  • the smart terminal keeps displaying the analog dialing interface of the smart terminal (displaying the logistics order number), and the actual phone number is not displayed during the whole process.
  • dividing at least the user address information in the order into the first subsection and the second subsection comprises: dividing the user address information in the order into the first subsection, the logistics site address information subsection, and the second a sub-section; wherein the logistics site is one of a plurality of logistics sites within the jurisdiction of the administrative region represented by the first sub-section, and the ultimate address information represented by the second sub-section is the logistics site Address information of the shipping address within the delivery range.
  • the address encoding can be performed in accordance with the logistics company's own operating structure (mainly based on the distribution structure of the logistics company's logistics sites or branches in different regions of each city).
  • the logistics site of Shougang International Building in Beitaipingzhuang Street, Haidian District, Beijing is A Company's Beijing Haidian District Wenhuiyuan Company, Beijing Code 01, Haidian Code 03, A Company 'Beijing Haidian District Wenhuiyuan Company' in Haidian
  • the code of each branch in the district is 05, and the area within the distribution scope of Wenhuiyuan site can continue to increase the code of the corresponding address based on the code of 'Beijing Haidian District Wenhuiyuan', such as the code of 'Shougang International Building' It is 00001 (can be coded according to the address of each administrative region, or can be coded by A company according to its own organizational structure), then the address code of 'Shougang International Building of Beitaipingzhu
  • Beijing Code-01 and Haidian Code-03 are the two-level administrative geographical information represented by the first sub-department.
  • Wenhuiyuan Site Code-05 is the logistics site address information represented by the logistics site address information sub-section
  • Shougang International Building - 00001 is the ultimate address information represented by the second subsection. If 05 is the code of the company's “Beijing Haidian District Wenhuiyuan Company” in Beijing, the address code of “Shougang International Building of North Taipingzhuang Street, Haidian District, Beijing” can be 010500001.
  • the codes compiled in accordance with the administrative level are grouped and grouped, and each delivery station corresponds to a distribution station code database.
  • the address code assigned to Wenhuiyuan Station establishes a distribution station code database w (the data is part of the code compiled according to the administrative level), and when the identified address is encoded in the database w, it can be determined that the address belongs to Wenhui.
  • the park station will deliver the code, and then the address code assigned to Wenhuiyuan Station will be converted into the code of the company Wenhuiyuan Station.
  • 'Shougang International Building of North Taipingzhuang Street, Haidian District, Beijing' is coded according to the administrative level code is 01020300001, and the address of the address code '01020300001' is distributed in the company's Zhongguan 'Beijing Haidian District Wenhuiyuan Station' and the address code Corresponding to the code of company A is '01030500001' or '0500001' (if 'Beijing Haidian District Wenhuiyuan Station' in the branch of the company A is coded as '05'), then the company A delivers to 'Beijing
  • the address code of the cargo of Shougang International Building in North Taipingzhuang Street, Haidian District can be '01030500001' or '0500001'.
  • the determining, by using a region code library, an administrative region code corresponding to the first sub-portion includes:
  • S21 Determine, according to the regional code base, the coding of each level included in the first sub-section according to the size of the administrative region, wherein the code of the first-level region determined first is the code of the first-level region, and then The code of each level determined in sequence includes the code of the local level and the code of the previous level;
  • the level is encoded step by step, the largest level address is assigned to the address code, and then the address code of the next level belonging to the address area is given, and the complete code of the next level address is generated (not only the level is included)
  • the address code of the address, and the address code of the address above the level address of the current level), the specific address of the level address can be obtained by the complete encoding of the level address.
  • a group of digital codes are assigned to each administrative region in turn, up to each household.
  • a set of codes a assign a set of codes ab to each province, assign a set of codes abc to the district (city), assign a set of codes abcd to each street, and assign a set of codes abcde to each cell, according to the building number of the cell.
  • the unit number, floor number, and house number are assigned to a set of codes abcdef (for ease of use, the actual building number, unit number, floor number, and house number are preferably f).
  • abcdef for ease of use, the actual building number, unit number, floor number, and house number are preferably f.
  • each city is given a set of codes abc
  • each county is given a set of codes abcd
  • a group of codes abcdf is given to each town
  • a group of codes abcdfg is given to each village
  • a group of codes abcdfgh is given to each household, so that A delivery address S can be represented by abcdfgh, and abcdfgh also corresponds to only one harvest address S.
  • Group code AB is
  • any one of the harvest addresses S can be represented by the code AB, which also corresponds to only one unique delivery address S.
  • any receipt address has a unique set of codes corresponding to it, and any one of the harvest addresses can be replaced with a set of codes.
  • you can use the agreed code instead (such as 000).
  • the level code can be replaced by an agreed method.
  • the determining, by using a region code library, an administrative region code corresponding to the first sub-portion includes:
  • the code for determining the levels of the regions included in the first subsection according to the size level of the region includes two forms.
  • the first form is: reading the address information verbatim, searching for a code corresponding to the name of the region ending with the keyword from a code library corresponding to the predetermined keyword after reading the predetermined keyword; The above steps are repeatedly performed to determine the code of each region from the address information after the predetermined keyword has been determined. This method is suitable for the case where the address information is encoded after the user has entered this address.
  • the second form is: the corresponding code is retrieved in real time according to the administrative region names of the various levels selected by the user in the form of a drop-down list, and finally the determined plurality of codes are combined to correspond to the encoding of the first sub-section.
  • the maximum level 1 address is assigned to the address code, and then the address code of the next-level address belonging to the address area is assigned, and the address code of the next-level address is only for the encoding of the next-level address, not including The encoding of the primary address. If it is necessary to obtain the specific location of the level address by address coding, it is necessary to assign all the codes of the upper level of the level address to the level address at the same time.
  • Each group of specific addresses is given a group of codes according to the level, each address is given a corresponding code, and each group of codes corresponds to an address, so that each address forms a one-to-one correspondence with its code (different The same position of the expression can be the same code, or different codes, but they all represent the same address. For example, No. 60, Xizhimen North Street, Haidian District, Beijing, and Shougang International Building, Haidian District, Beijing, the same address) .
  • the address and the address code form a one-to-one correspondence, each address corresponds to a set of codes, and each set of codes represents a unique address.
  • the code corresponding to the address can be determined according to an address, and the address corresponding to the group of codes can also be determined according to a set of codes.
  • a group of digital codes are assigned to each administrative region in turn, up to each household.
  • a set of codes a assign a set of codes b to the provinces, assign a set of codes c to the districts (cities), assign a set of codes d to each street, and assign a set of codes e to each cell, according to the building number of the cell.
  • the unit number, the floor number, and the house number are assigned a set of codes f (for ease of use, the actual building number, unit number, floor number, and house number of the cell are preferably f).
  • any one of the delivery addresses S can be represented by abcdef, which also corresponds to only one harvest address S.
  • any one of the delivery addresses S can be represented by abcdfgh, and abcdfgh also corresponds to only one delivery address S.
  • any one of the harvest addresses S can be represented by codes A and B, and A and B also correspond to only one unique delivery address S; for the case of lack of a certain level of address, the agreed code can be used instead (eg 000). For example, when it is impossible or inconvenient for each household to encode in rural areas, the level code can be replaced by an agreed method.
  • any one of the receiving addresses has a unique, corresponding set of codes, and any one of the harvested addresses can be replaced with a set of codes.
  • the address encoding is written step by step, and the identification address is also identified step by step. From the first level area to the last level area, each level area ends with a key belonging to the level area.
  • the computer recognizes the keyword as a feature word for the read-out of the level region. For example, Room 203, Unit 3, Building 3, Honglian Community, North Taipingzhuang Street, Haidian District, Beijing, identifies cities, districts, streets, communities, buildings, units, rooms and other keywords during the address identification process.
  • These keywords representing the area level are used as the feature words in the address recognition process, and these feature words are used as the termination words of the primary region identification in the word-by-word recognition process.
  • the computer when the computer reads and analyzes a certain level of address word by word, after reading one word of each level address, it is determined that the level address encoding library corresponds to the already read Whether part of the address code is unique. When it is judged that only one address code can be matched to the read part, the address code is matched to the level address, and the code library of the level address is called to continue to the secondary address. Analyze the code. For example, when reading and analyzing "Beijing City”, read and analyze "North”, “Beijing", "Beijing” word by word, when reading "North”, the address with the first word "North” is more than one. The corresponding address code is more than one.
  • the range is narrowed down step by step, and then "Beijing" and "Beijing” are read in turn.
  • "Beijing” only one address code is left.
  • the address code is matched to "Beijing City", and the address code library of Beijing is called to identify the word "Haidian District” verbatim.
  • the address code is matched and matched to "Haidian District”, then the address code library of Haidian District is called to analyze the secondary address of Haidian District, and so on, until The coding is complete.
  • the beneficial effect of the present embodiment is that the case where the feature word "city”, "area”, or the like is not used as the keyword whose end of the level address is read cannot be correctly encoded.
  • the address information is continuously read word by word,
  • the subaddress encoding corresponding to the region name ending with the predetermined keyword read again is searched from the encoding library corresponding to the predetermined keyword read again.
  • determining, by using a region code library, an administrative region code corresponding to the first sub-portion includes:
  • S41 Perform verbatim judgment on the administrative area information of each level in the first sub-section from the beginning of the sentence, and each of the regional level keywords in the regional code base Searching in the corresponding regional level code sub-library of the segment, and attempting to obtain the area code matching the regional-level key field;
  • This embodiment avoids the existence of multiple predetermined keywords in a certain level of geographical name (for example, for the address: Chaoyang Village, Hucun Town, Taigu County, Jinzhong City, Shanxi province, where Hucun Town is included in a geographical name. "Village” and "town” two keywords), resulting in misidentification, error coding or the inability to complete the encoding, which improves the accuracy of encoding the address information.
  • the coded information belonging to the address coding library of the level is called for secondary address analysis, so as to avoid coding confusion caused by the phenomenon of duplicate name in other places in the next level address information.
  • Chaoyang Village, Hucun Town, Taigu County, Jinzhong City, Shanxi province the name of the address at the township level is “village”.
  • the word “Hua” is read literally.
  • the address code library of Taigu County was called, and the "Hu” and "Hucun” were analyzed word by word.
  • the address code library at the township level of Taigu County was read.
  • the address is filled in by using a drop-down menu to select an address and a manual fill.
  • the drop-down option is used for larger areas, and manual filling is used for specific locations.
  • the mainstream shopping websites use the drop-down menu to select the regional address in the township, street or district, county and above administrative levels. For example, select “Beijing” in the provincial first-level address, and all the districts and counties in Beijing will be automatically listed in the dialog box of the lower-level address, no need to manually fill in, manual input only, sub-county level or township The specific address below the street level.
  • each level of address selected from the drop-down list will have a fixed feature word as the end word.
  • the address is filled in or generated according to a fixed mode (for example, using a drop-down menu or filling in a fixed address bar, where the drop-down menu is selected, the information in the drop-down menu can be directly selected, or in the item. Enter text to filter the information in the drop-down menu).
  • a fixed mode for example, using a drop-down menu or filling in a fixed address bar, where the drop-down menu is selected, the information in the drop-down menu can be directly selected, or in the item. Enter text to filter the information in the drop-down menu).
  • Encode all addresses and build a database this level of address encoding can be a code containing its higher-level area, or it can only encode the local address of its own address in its higher-level area), and each level address is given an encoding. In order to reduce the workload, it can be established only to the community or the village.
  • the agreed mode can be used for encoding (for example, the 3rd floor can be matched by 03 by default; 3 units, the default Matches with 03; 2nd floor, defaults to match 02; 3 rooms, defaults to match 03, so that the 3rd floor 203 rooms of Building 3 can be matched with the code '03030203').
  • the determining, according to the regional code base, the coding of each level included in the first sub-section according to the size level of the administrative region includes:
  • the area name of each administrative area belonging to the first sub-section selected by the user in the drop-down list is detected, and the code set in association with the geographical name of the selected administrative area is determined step by step.
  • the address in the drop-down option can be read without word-by-word ("Hebei City” in the pull address option and the address code 02 in Hebei City are edited). Together, after selecting “Hebei City” from the drop-down options, you can directly call up the “Hebei City” address code 02. This eliminates the need to perform word-by-word analysis to identify the matching address code every time, reducing the computer reading recognition. Workload, improve efficiency).
  • the address encoding of the certain level of addresses can be matched according to the mapping relationship without performing a word-by-word reading on the file.
  • the code of Beijing is 01
  • the code of Xicheng District is 02
  • the code of Guang'anmenwai Street is 09
  • the code of the cell is 0001.
  • the address and the encoding are related, then select Beijing in the drop-down menu, that is, generate or call the Beijing code 01; call the next-level address information of Beijing in the address bar of the next level, Select Xicheng District from the drop-down menu, that is, generate or call the code 02 of Xicheng District; then call the information of the next-level address of Xicheng District of Beijing in the address bar of the next level, and select the street outside Guang'anmen in the drop-down menu.
  • Select the 03 unit that is, generate or call the code 03 of the 03 unit
  • select the 02 floor in the drop-down menu that is, generate or call the 2-layer code 02
  • select the 03 room in the drop-down menu that is, generate or call the 03 room.
  • Code 03. the address “Guanganmenwai Street Street Community in Xicheng District, Beijing” does not need to read and recognize each level of address verbatim. If you select any level address in the drop-down menu, you can directly match the code of the address.
  • a fixed address filling mode is provided, and an address is associated with its encoding, which reduces the trouble of word-by-word reading. It can be selected through a drop-down menu of a certain level address bar, and can be input in a certain level address. Enter the text to filter the information in the drop-down menu. If you enter ' ⁇ ' in the provincial address bar, you can filter out 'Henan' and 'Hebei' in the drop-down menu of the address bar. Of course, the encoding of a certain level of address may also contain the encoding information of its higher level address.
  • the information of the courier provided by the user can be input into the system of the logistics company by the staff of the logistics company, and the computer recognizes the input information by word-by-word analysis and matches the corresponding code, and generates corresponding identification.
  • the identification and matching are performed step by step by reading and identifying the address code of a certain level area, and then calling the address code library belonging to the area below the level.
  • the address encoding library corresponding to the previous level of the A-level is called. If the A-level address A1 is accurately filled, the encoding of the address A1 can be directly analyzed word by word; If the A level is not filled in, and the address B1 of the next level B of A is directly filled in, the address encoding library corresponding to the previous level of the A level does not include the name B1 after reading the analysis address B1 verbatim.
  • the address so it is impossible to find the address code that can be matched from the address encoding library corresponding to the previous level of the A level.
  • Automatically skip the address encoding library corresponding to the previous level of the A level call the A-level address encoding library, match the encoding of the address B1 from the A-level address encoding library, and call the upper address A1 address encoding of the address B1.
  • the address of address B1 is encoded before. If there is no encoding of the address in each level of the library, the level address is discarded, and the subsequent address is directly read for address encoding matching.
  • Lingshou County, Shijiazhuang City, Hebei province only wrote in Lingshou County, Hebei province, but did not fill in Shijiazhuang City, read and identify Hebei City, read and identify Hebei City verbatim, match the code of Hebei City and call it in subsequent reading and identification.
  • the address code library of Hebei City when it continues to read Lingshou County, identifies the keyword “county”, lacks “city” in “province” and “county”, and searches for the city of Lingshou County in the database of Hebei province, and Add the city's code to the Lingshou County code.
  • the matching address code can be identified step by step according to the division from large to small; or, when the address information is selected or selected from the drop-down options, Match its encoding and then filter based on the higher level address information.
  • the code of 'Xicheng District' in different cities may have 01 and 02 codes, but the Xicheng District of Beijing is 01. Fill in or select 'Xicheng District' from the drop-down options to match 01, 02
  • the code when the higher level address information is filled in or select 'Beijing', the code for 'Xicheng District' matches the code 01 of Xicheng District to which Beijing belongs.
  • the encoding of each level address contains the encoding of its higher-level area address (for example, the code of 'Beijing' in the address code of 'Xicheng District' of 'Beijing'), by filling in or selecting from the drop-down options
  • the address encoding of the higher-level address is filtered.
  • the situation is filled in order for the address to be graded from small to large.
  • Match the complete encoding of all the smallest level addresses possibly there may be multiple places with the same name, so there may be more than one address encoding for the name
  • filter by the address encoding of the previous level address step by step Except for codes that do not match the address.
  • the address A1 of the lowest level A is read and identified, and all the complete address codes (named from the largest area to the complete encoding of A in the database) of the level in the level are called from the address encoding library. There may be a lot of places named A1 in the lowest level in all parts of the country.
  • the address codes of all these duplicated addresses are called from the address code library for calling and screening in the subsequent identification process. Then, read the address B1 of the previous level B of the A level, and call all the address codes of the level named B1 from the database (only the code of the B level is called), and all the codes corresponding to the address A1 are in the B level. The code of the location is intercepted and compared with the determined address code of the address B1, and the address code corresponding to the address code of B1 in the code of A1 is reserved, and so on, and the range is narrowed down until the code of the address is finally determined. . When a certain E-level address E1 is missing, the F-level address F1 of the upper-level E of the E-level is directly filled in.
  • the address coding library of the upper-level F-level of the E-level is automatically called to identify and match the address code of F1, and is intercepted from the F-level of the address coding library of A1 and compared with the address code of the determined address F1. Yes, the address code of the A1 address code that is consistent with the F1 address code is reserved. If there is no address encoding of the address in each address encoding library, the address is discarded, the subsequent address is directly read for encoding, and the address encoding and filtering is continued.
  • the encoding of each level included in the first sub-section is determined step by step according to the size of the administrative region according to the regional code library, including:
  • the missing regions are determined according to the local regions included in the first sub-portion;
  • the situation in which the coding is confusing or the coding cannot be completed due to omitting a certain level of the geographical name in the address filling process due to the user's behavior habits is avoided, and the reliability of the logistics number generation is improved.
  • “Lingshou County, Shijiazhuang City, Hebei City” was directly written as “Lingshou County, Hebei City”, and it is obvious that the name of Shijiazhuang City is missing from the above address.
  • the missing city belongs to Hebei province, and then all the cities including Lingshou County are determined.
  • both the Lingshou County and the Hebei City are the only cities that can be identified as the missing city is Shijiazhuang City. It is. Therefore, the address code corresponding to Shijiazhuang City can be determined from the corresponding code library.
  • the determining, according to the local areas included in the first subsection, the missing regions includes:
  • the administrative area of the subordinate administrative area including the missing area in the plurality of administrative areas is the missing area.
  • the value range of the missing area is first determined according to the plurality of administrative areas under the administrative area of the upper level of the missing area (that is, the missing area is determined to belong to one of the determined plurality of administrative areas) Further, it is determined that the administrative region including the region below the missing region in the order information among the subordinate administrative regions under the plurality of administrative regions is a missing administrative region. Therefore, it is avoided that the code belonging to the national administrative level at the same level as the upper-level administrative region and the administrative region of the same level that is missing are coincidentally included in the lower-level region of the missing region, resulting in confusion of coding.
  • the recognition and matching are performed step by step by reading and identifying a certain level of code, and then calling the address code library belonging to the level below.
  • the address encoding library of the previous level of A is called. If the level A address A1 is accurately filled, the code of the address A1 can be directly identified and matched by word; if the level A is not filled, If the address B1 of the next level B of the A level is directly filled in, the code that can be matched can not be found from the address encoding library of the previous level of the A level after reading the analysis address B1 verbatim.
  • the A-level upper-level address encoding library calls the A-level address encoding library to match the encoding of the address B1 from the A-level address encoding library. If there is no encoding of the address in each level of the library, the level address is discarded, and the subsequent address is directly read for encoding matching. For example, Lingshou County, Shijiazhuang City, Hebei City, only wrote in Lingshou County, Hebei City, but did not fill in Shijiazhuang City. The word-by-word read recognition of Hebei province, matching the code of Hebei province and calling the address code library of Hebei City in the subsequent reading and identification, to avoid confusion in places with heavy names in the country.
  • the addresses are filled in from the small-level address step by step. Matches the complete encoding of all the smallest level addresses (possibly there may be multiple places with the same name, so there may be more than one address encoding for the name), and it is filtered by the full address encoding of the previous level address, step by step. Does not match the encoding of this address.
  • the range is narrowed down until the encoding of the address is finalized.
  • E-level address E1 is missing, the F-level address F1 of the E-level is directly filled in; when the address F1 is read or recognized, the code of the F1 cannot be matched from the E-level database.
  • the encoding that is consistent with the F1 address encoding. If there is no code for the address in all levels of the library (for example, a certain level of address is wrong, Jinan City wrote Jibei City), then give up the level address, directly read the following address for code matching, and then continue the address Code screening.
  • the shipping address information and the shipping address information on the order can be encoded simultaneously.
  • the address code or the order code obtained by the embodiment of the present invention can be used to identify the shipping address, and the background guides the distribution of the staff or the user delivers the goods to the appropriate logistics network.
  • the shipping address is in Xizhimen
  • the two staff members are in Wenhuiqiao and College Bridge respectively.
  • the staff of Wenhuiqiao can be guided to pick up the goods.
  • the users to send the goods to the logistics network they can guide the users to deliver the goods to the most suitable logistics outlets through the location and operation status of the shipping company and the logistics company's own outlets (for example, logistics companies in the North Fifth Ring and South)
  • the five rings each have two logistics outlets.
  • the user's goods are in the North Fourth Ring Road, they can guide the users to deliver the goods to the logistics network of the North Fifth Ring Road according to the address of the user's goods and the location of the logistics company.
  • the address code or the order code obtained by the embodiment of the present invention can be used to identify the delivery address and match the optimal distribution warehouse.
  • the computer reads the address code of the delivery destination and identifies the address.
  • the computer can calculate and analyze the most according to the destination of the delivery and the location of the delivery warehouse and the goods in the distribution warehouse. Appropriate distribution warehouse, matching the most suitable distribution warehouse, guiding delivery (for example, the company has warehouses in Beijing and Guangzhou respectively, the consignee address is Hebei, Beijing is closest to Hebei, then the computer prefers Beijing warehouse delivery) .
  • the address code or the order code obtained by the embodiment of the present invention can identify the sending and receiving addresses, and the background guides the user to deliver the goods to a suitable logistics network.
  • the logistics network such as the logistics of bulk goods
  • the user's receiving and shipping addresses are converted into address codes
  • the computer reads the address code and identifies the address, guiding the user to deliver the goods most suitable.
  • Logistics outlets for example, logistics companies have two logistics outlets in the North Fifth Ring Road and the South Fifth Ring Road respectively. If the user's goods are in the North Fourth Ring Road, the user can be guided according to the address of the user's goods and the logistics company's network location. The goods are delivered to the logistics network of the North Fifth Ring) and guide the subsequent delivery of the goods.
  • the sorting and transportation are carried out by the user's address code, and the background guides the transportation of the goods.
  • Each address has its own corresponding address code, and each address code can generate an identification code corresponding to itself, such as a barcode and a two-dimensional code that can be scanned and recognized.
  • Each address corresponds to a different address encoding and the encoding is arranged step by step according to the regional level. Therefore, the code of the address code of the goods delivered to a certain area has the same number of codes (for example, two pieces are mailed to the address of the Beijing-North Taipingzhuang Street in the address code of the goods in the North Taipingzhuang Street, Haidian District, Beijing.
  • the codes are the same, except that the code is smaller than the area of the North Taipingzhuang street.
  • the goods can be sorted manually according to the address code of the delivery address.
  • the computer reads the encoding of the partial position in the address encoding (for example, assuming that the first 10-bit encoding corresponds to the street first-level region, only the first 10-bit encoding is read), and the region to which the encoding corresponds to the destination is displayed in the form of text.
  • the partial address in the address code is displayed in the form of text on the logistics slip (for example, identifying the Shougang International Building in Beitaipingzhuang Street, Haidian District, Beijing, and the distribution address is “North Taipingzhuang, Haidian District, Beijing”
  • the street is displayed on the logistics list for manual sorting; or the computer reads and identifies the “Shougang International Building of Beitaipingzhuang Street, Haidian District, Beijing”, and displays the name or number of the distribution network that delivers the address on the logistics list, such as
  • the address belongs to the distribution of Wenhuiyuan outlets, and the code of Beijing Wenhuiyuan or Wenhuiyuan outlets can be displayed on the logistics list for manual sorting); each address code has its corresponding barcode or two-dimensional that can be scanned and recognized.
  • Identification codes and other identification codes so you can quickly and automatically automate the goods by scanning the identification code to identify the address. Sorting.
  • Computer analysis, identification of the address code or barcode of the goods transported by each vehicle can know all the destinations of the goods on the transport, the goods and the amount of goods transported, etc.
  • a transport can arrange to transport different addresses.
  • Goods for example, goods transported from Shijiazhuang to Langfang can't be filled with one car. Baoding is between Shijiazhuang and Langfang, and some goods can be transported to Baoding at the same time.
  • the company can encode the cargo address in the background.
  • the background guides the delivery personnel to deliver according to the optimized route.
  • the company's back office can know the destination of each shipment based on the address code or barcode of each item.
  • Each delivery personnel can upload the scanning and identification results of the delivered goods to the company back-office.
  • the company back-end according to the address uploaded by the delivery staff, grasp the quantity and destination of the goods that the delivery staff needs to deliver, and according to all the goods delivered.
  • the destination calculates, analyzes, and plans the optimal delivery route and delivery order for each delivery personnel, reduces the task of the delivery personnel, and improves the distribution efficiency.
  • the logistics site is located at Xizhimen, and the distribution personnel depart from the Xizhimen site for cargo distribution.
  • the destinations for the distribution of goods are Wenhui Bridge, Tuen Mun Bridge, Madian, Legend Bridge, Xuezhi Bridge, Gulou, Guanyuan Bridge and Xinjie.
  • the computer can identify all the delivery destinations, and distribute the distribution routes of Wenhui Bridge, Legend Bridge, Tuen Mun Bridge, Xuezhi Bridge, Madian, Gulou, Xinjiekou and Guanyuan Bridge to the delivery personnel, which saves the delivery personnel.
  • the time to find the distribution line itself gives the delivery staff the most suitable delivery route.
  • the embodiment of the invention can realize the planning of the optimal delivery route. After obtaining the delivery information of the delivery personnel (or each delivery vehicle), the company computer calculates and plans all the delivery destinations on the map, plans the most suitable delivery route for the delivery personnel, and guides the delivery personnel to deliver the goods. Reduce the waste time of distribution personnel on the distribution road and improve distribution efficiency.
  • the computer After reading the user's address, the computer continues to read, analyze, and identify the user's name and contact information. It can generate a code together with the address code or assign the user's name, contact information, etc.
  • the identification code such as the two-dimensional code includes both the address information and the user information (the code may include the address and communication information of the user, or may only include the user address); or the code of the contact name and communication information may be separately generated and Generate an appropriate identification code such as a barcode or a two-dimensional code that can be scanned and recognized; after reading the identification of the user's name and contact information, the code is not directly generated, but the name and communication information of the identified contact person and the user are The address information is uploaded to the logistics company together, and the user address information is bound to the communication information.
  • the user's communication information can be obtained or can be called up (or the number of the location and the user specified in the address code)
  • the phone number is bound, and the number in the part of the address code is used as the temporary number.
  • the staff can manually upload the user's personal information and upload it to the company's computer system; or, the user directly fills in the user information on the platform provided by the logistics company.
  • the computer reads the information filled in by the user and matches the corresponding code (the code may include the user's address and communication information, or may only include the user address); or the user name and contact information may be read, and the code is not directly generated.
  • the user address information is bound to the communication information.
  • the user's communication information can be obtained or can be called up or the number of the part of the address coded in the address code can be bound to the user's phone number.
  • the number of the part of the address coded in the address code is used as the temporary number instead of the user's phone number for the delivery of the goods).
  • the distribution staff basically uses the mobile phone number or the fixed number on the courier to contact the user or send the short message through the user.
  • the back office of the logistics company can directly contact the user according to the address code.
  • the delivery personnel only need to deliver the goods, no need to make telephone contact with the user, save the time of the delivery personnel, and also reduce the leakage of the user name and communication mode; or, the delivery personnel
  • the company By dialing all the digital codes or partial digital codes in the address code, the company is transferred to the back office of the company, and the company back office dials the actual phone number of the user according to the number dialed by the delivery personnel; or, the user's phone number is associated with the address code.
  • the delivery personnel After the delivery personnel enters the agreed number in the address code, the delivery user directly transfers the actual phone number to the user through the company client.
  • a logistics bill number generating apparatus 600 includes:
  • the address division module 610 is configured to divide the user address information into a first sub-section and a second sub-portion, where the first sub-part is the administrative area information of each level, and the second sub-part is the administrative area information of the various levels.
  • the administrative area code determining module 620 is configured to determine, by using the area code library, an administrative area code corresponding to the first sub-section;
  • a final level address encoding determining module 630 configured to determine, by using a final level address code library, a final level address encoding corresponding to the second sub-portion, wherein each of the final level address code codes corresponds to the representation Final address information for multiple representations of the same location;
  • the logistics order number generating module 640 is configured to determine a user address code corresponding to the user address information according to the determined administrative area code and the final level address code, and generate a logistics order number based on the user address code.
  • the beneficial effect of the embodiment is that the user address information in the order is divided into a first sub-section including all levels of administrative area information and a first-level address information including the root level area in the administrative area information of the various levels.
  • the second sub-section encodes the above two sub-sections separately, and finally generates an encrypted logistics single code by combining the additional difference code and the encoding result, thereby avoiding the leakage of user information and improving the level of privacy protection for the user.
  • the terminal address information identified by the second sub-section in the embodiment of the present invention may be multiple representation forms indicating the same address, so that even when different users describe the same address by using different description manners, Coding different description modes into the same code ensures a one-to-one correspondence between the address code and the address, thereby avoiding the occurrence of coding confusion.
  • the address coded in this embodiment is a character string or a two-dimensional code generated according to a character string or a barcode generated according to a character string, and the like.
  • the method further includes:
  • a user name encoding determining module for determining a user name encoding corresponding to the user name information in the order
  • the generating the logistics order number based on the at least the user address encoding and the additional distinguishing code comprises: generating a logistics order number based on the user address encoding, the user name encoding, and the additional distinguishing code.
  • the additional distinguishing code is used to count the number of order orders corresponding to the same user address encoding.
  • the method further includes: a single number telephone association module, configured to associate the logistics order number with a user contact number in the order after the logistics order number is generated, to allow The server matching terminal establishes a mobile communication connection with the user contact telephone by calling the network paging mode of the logistics order number to the server.
  • a single number telephone association module configured to associate the logistics order number with a user contact number in the order after the logistics order number is generated, to allow The server matching terminal establishes a mobile communication connection with the user contact telephone by calling the network paging mode of the logistics order number to the server.
  • the administrative area code determining module 620 includes:
  • the administrative area code step-by-step determining unit 621 is configured to determine, according to the area code base, the code of each level included in the first sub-section according to the size level of the administrative area, wherein the code of the first-level area determined first is determined.
  • the code of the first-level area, and the code of each level determined in the subsequent order includes the code of the local level and the code of the previous level;
  • the administrative region code determining unit 622 is configured to determine, as the administrative region code, the code of the root region in the first determined first sub-portion.
  • the administrative area code determining module 620 includes:
  • the administrative area code step-by-step determining unit 621' is configured to determine, according to the area code library, the code of each level included in the first sub-section according to the size level of the administrative area, wherein each of the first sub-sections
  • the code of the first-level territory is the code of the first-level territory
  • the administrative region code synthesizing unit 622' is configured to synthesize the code of each of the first sub-portions in the order of the region level.
  • the administrative area code determining module 620 includes:
  • the area code determining unit 623 is configured to perform verbatim judgment on the administrative area information of each level in the first sub-section from the beginning of the sentence, and each time an area-level key field is determined, the area code library is Searching in the corresponding regional level code sub-library of the region-level key field, and attempting to obtain an area code matching the regional-level key field;
  • the area code correcting unit 624 is configured to: when acquiring the first area code corresponding to the first area level key field and the second area code corresponding to the second area level key field, and the second area level key When the area level in the field is greater than the area level in the first level key field, the first area level key field is determined as an invalid area field, and the corresponding first area code is discarded.
  • the administrative area code step-by-step determining unit 621 (621') includes:
  • the missing area determining component 6211 is configured to determine a missing area according to the local area included in the first sub-section when there is a missing geographical level between the geographical levels of the respective levels included in the first sub-section Territory
  • the missing region code determining component 6212 is configured to determine the code of the missing region according to the region code library.
  • the missing region determining component comprises:
  • the superior jurisdiction area determining component is used to determine a plurality of administrative regions under the superior administrative territory of the missing region
  • the missing area specifying element is configured to determine the administrative area of the lower administrative area including the missing area in the plurality of administrative areas as the missing area.
  • the logistics order number generating apparatus further includes:
  • a user information encoding determining module configured to encode the order user information to determine a user information encoding, the order user information including a user contact phone number and/or a user name; and the generating the logistics order number based on the at least the user address code:
  • a logistics order number is generated based on the user address code and the user information code.
  • a related function module can be implemented by a hardware processor.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs including execution instructions, which can be used by an electronic device (including but not limited to a computer, a server, or a network) The device is read and executed for performing the relevant steps in the above method embodiments, for example:
  • an embodiment of the present invention further discloses an electronic device, including:
  • At least one processor and
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device for executing a method for generating a logistics number according to another embodiment of the present application. As shown in FIG. 11, the device includes:
  • processors 1110 and a memory 1120 are illustrated by one processor 1110 in FIG.
  • the apparatus for executing the logistics order number generation method may further include: an input device 1130 and an output device 1140.
  • the processor 1110, the memory 1120, the input device 1130, and the output device 1140 may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • the memory 1120 is used as a storage medium for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the logistics number generation method in the embodiment of the present application.
  • the processor 1110 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 1120, that is, implementing the logistics number generation method of the above method embodiment.
  • the memory 1120 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the logistics order number generating device, and the like.
  • memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 1120 can optionally include memory remotely located relative to processor 1110 that can be connected to the logistics order number generation device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 1130 can receive input numeric or character information and generate signals related to user settings and function control of the logistics order number generating device.
  • the output device 1140 may include a display device such as a display screen.
  • the one or more modules are stored in the memory 1120, and when executed by the one or more processors 1110, execute the logistics order number generation method in any of the above method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Remote Sensing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种物流单号生成方法,用于服务器,所述方法包括:至少将用户地址信息划分为第一子部和第二子部,第一子部为各级行政地域信息,第二子部为所述各级行政地域信息中的根级地域下的终级地址信息(S11);利用地域代码库确定对应于第一子部的行政地域编码(S12);利用终级地址代码库确定对应于第二子部的终级地址编码,其中,终级地址代码库中每一个终级地址编码对应于表示同一地点的多种表述形式的终级地址信息(S13);根据所确定的行政地域编码和终级地址编码确定用户地址编码,至少基于用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同(S14)。上述方法的有益效果在于解决了现有物流单信息外泄,造成用户个人信息以及隐私泄露的问题。

Description

物流单号生成方法
本发明要求在2017年02月09日提交中国专利局、申请号为201710071315.9、发明名称为“物流单号生成方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及物流信息技术领域,尤其涉及一种物流单号生成方法。
背景技术
当前,快递成为人们日常生活中接触到最多的物流,已经成为人们生活中不可缺少的一部分。据统计,2015年快递业务量为206亿件,同比增长48%,最高日处理量超过1.6亿件,快递业务收入为2760亿元。预计2016年快递业务量完成275亿件,同比增长34%;快递业务收入完成3530亿元。206亿件的快递业务需要至少206亿份的快递单,需要有完整的206亿人次的取、配送活动,并且这个数字还在逐年以两位数的增长速度增长。目前,快递业务主要采用一式三联的快递单填写订单信息,通过快递单上的订单信息完成配送服务。
为顺利完成一件快递的配送过程,寄件人需要将收件人的姓名、地址、联系方式等个人信息清晰无误的填写在快递单上,同时,寄件人也需要将自己的部分信息填写到快递单上。快递单上有详细的个人信息,而快递单又是裸露在外界中的,任何能接触到快递单的人都可以轻易的获取快递单上填写的个人信息,因此快递单容易将个人隐私信息暴露给他人,造成个人信息泄露。据菜鸟网络统计显示,2014年12月份至2015年12月,快递公司仅信息泄露案件就多达43起,上百万张消费者隐私订单信息被泄露。
发明内容
本发明实施例提供一种物流单号生成方法,用于至少解决上述技术问题之一。
第一方面,本发明实施例提供一种物流单号生成方法,用于服务器,所述方法包括:将订单中的用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;利用地域代码库确定对应于所述第一子部的行政地域编码;利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应于表示同一地点的多种终级地址信息;根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
第二方面,本发明实施例提供一种存储介质,所述存储介质中存储有一个或多个包括执行指令的程序,所述执行指令能够被电子设备(包括但不限于计算机,服务器,或者网络设备等)读取并执行,以用于执行本发明上述任一项物流单号生成方法。
第三方面,提供一种电子设备,其包括:至少一个处理器,以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明上述任一项物流单号生成方法。
第四方面,本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储在存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项物流单号生成方法。
本发明实施例的有益效果在于通过将订单中的用户地址信息划分为包括各级行政地域信息的第一子部和包括所述各级行政地域信息中的根级地域下的终级地址信息的第二子部,并分别确定上述两个子部对应的编码,最后结合附加区别码与编码结果生成加密的物流单,从而避免了用户信息的外泄,提升了对用户隐私保护的等级。此外,本发明实施例中的第二子部所标识的终级地址信息可以是多种表示同一地址的多种表述形式,从而即使在不同用户采用不同的描述方式来描述同一地址时,也能够将不同的描述方式编码为同一编码,保证了地址编码与地址之间一一对应的关系, 避免了编码混乱的发生。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明的物流单号生成方法一实施方式的流程图;
图2为图1中步骤S12的一实施方式的流程图;
图3为图1中步骤S12的一实施方式的流程图;
图4为图2中的步骤S21和图3中的步骤S31的一实施方式的流程图;
图5为图4中的步骤S41的一实施方式的流程图;
图6为本发明的物流单号生成装置一实施方式的原理框图;
图7为本发明的物流单号生成装置中的行政地域编码确定模块一实施方式的原理框图;
图8为本发明的物流单号生成装置中的行政地域编码确定模块另一实施方式的原理框图;
图9为本发明的物流单号生成装置中的行政地域编码确定模块又一实施方式的原理框图;
图10为本发明的物流单号生成装置中的行政地域编码逐级确定单元一实施方式的原理框图;
图11为本发明的电子设备的一实施方式的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的 特征可以相互组合。
如图1所示,本发明的一实施例的物流单号生成方法,用于服务器,所述方法包括:
S11、至少将订单中的用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;
S12、利用地域代码库确定对应于所述第一子部的行政地域编码;
S13、利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应于表示同一地点的多种终级地址信息;
S14、根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
本实施例的有益效果在于通过将订单中的用户地址信息划分为包括各级行政地域信息的第一子部和包括所述各级行政地域信息中的根级地域下的终级地址信息的第二子部,并分别确定对应于上述两个子部的编码,最后结合附加区别码和编码结果生成加密的物流单号,从而避免了用户信息的外泄,提升了对用户隐私保护的等级。此外,本发明实施例中的第二子部所标识的终级地址信息可以是多种表示同一地址的多种表述形式,从而即使在不同用户采用不同的描述方式来描述同一地址时,也能够将不同的描述方式编码为同一编码,保证了地址编码与地址之间一一对应的关系,避免了编码混乱的发生。本实施例中的地址编码为字符串或者是根据字符串生成的二维码或者是根据字符串生成的条形码等,本发明实施例不对此限定。
在一些实施例中,第一子部至少包括省(市)、市、县、镇、村等级别的地域,第二子部至少包括街道、小区、楼号、单元号、门牌号等信息。例如,对于地址:北京市海淀区北太平庄街道红莲小区3号楼3单元203室,可以划分为第一子部:北京市海淀区,以及第二子部:北太平庄街道红莲小区3号楼3单元203室;对于地址:山西省晋中市太谷县胡村镇朝阳村和平路3号,可以划分为第一子部:山西省晋中市太谷县胡村镇朝阳 村,以及第二子部:和平路3号。
在一些实施例中,对于某些无门牌号的地址(如部分沿街店铺等无具体的门牌号的情况),可在门牌号位置以规定的方式生成编码,并以文字方式显示该无门牌号的地址名称,或者,临时生成该无门牌号的地址编码或按照规则赋予该无门牌号地址一编码。
步骤S13中终级地址代码库中每一个终级地址编码对应于表示同一地点的多种终级地址信息举例为:“北京市海淀区北太平庄街道西直门北大街60号10层”和“北京市海淀区北太平庄街道首钢国际大厦10层”,虽然这两种表述方式不同但是所代表的是同一个地址。因此,本发明实施例在面对不同表述习惯的用户以不同的表述形式描述同一个地址时也可以确定出唯一的地址编码,保证了地址信息与地址编码之间一一对应的关系,避免了编码混乱的发生。
步骤S14中根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,也可以是根据确定的行政地域编码和终级地址编码按照一定的编码规则生成对应于用户地址信息的用户地址编码,本发明实施例不对生成用户地址编码的形式进行限定。
上述实施例中的行政地域代码库和终级地址代码库为预先建立的。其中行政地域代码库中包含有针对于每一级的行政地域名称的代码,以用于对第一子部进行编码;终级地址代码库包含有针对于用户地址信息中除了第一子部之外的地址信息的代码。上述实施例中的根级地域为第一子部中各行政地域中级别最低的一级行政地域。
在一些实施例中,所述地域代码库中存储有与所述第一子部的各行政地域的地域名称关联设置的代码,且定期或者不定期更新与所述第一子部的各行政地域的地域名称关联设置的代码。
示例性地,对于某一地址的编码可以不是固定不变的。例如,上述地址“北京市海淀区北太平庄街道首钢国际大厦”中对‘西城区’这级地址的编码可以进行定期或不定期的调整,在1月时‘西城区’的编码为01、海淀区为02,在2月时‘西城区’的编码为02、海淀区的编码为03,并配一定的标示以区分,避免‘西城区’与‘海淀区’的信息产生混乱。可以实现地址编码的动态管理和使用,避免固定编码导致的编码泄露个人隐 私信息。
在一些实施例中,物流单号生成方法还包括:确定与订单中的用户名称信息对应的用户名称编码;其中,至少基于所述用户地址编码和附加区别码生成物流单号包括:基于所述用户地址编码、用户名称编码和附加区别码生成物流单号。
本实施例中不仅对用户地址信息进行了编码,同时还对用户名称进行了编码,提升了对用户隐私保护的级别。在本实施例中,用户名称编码包括用户的名称的英文字母全拼,或者是用户的名称的英文字母全拼和声调的数字组合,例如LIJIANGUO或者LI3JIAN4GUO2(李建国),数字代表声调。
在物流单号生成方法的一些实施例中,所述附加区别码用于统计对应于同一用户地址编码的订单下单次数。例如,某一用户地址编码为0123456789,附加区别码为01或者02或者09,分别表示所述某一用户地址编码所对应的地址第一次或者第二次或者第九次收到快递(物流单号分别为012345678901或者012345678902或者012345678909)。
在本实施例中,物流单号不仅可以作为物流单号用途,其还可以用作:销售单号或交易单号,用于确定对应于同一用户地址编码以及可能的用户名称的销售记录和交易记录,进而可以用来分析购买和配送习惯,确定用户群体的分布情况。
在物流单号生成方法的一些实施例中,在生成物流单号后还包括:将所述物流单号与订单中的用户联系电话建立关联,以允许与所述服务器匹配的终端通过向所述服务器呼叫所述物流单号的网络寻呼方式,而与所述用户联系电话建立移动通信连接。
计算机在读取识别用户地址信息后,可以继续逐字读取识别用户的电话号码等信息,并将用户的电话号码等信息与物流单号关联起来。例如,读取、分析、识别用户的电话号码等信息后,上传到物流公司的计算机后台(服务器),并将用户的电话号码和物流单号关联起来(例如,用户的物流单号为012345678901,用户手机号码为13900100100,用物流单号012345678901作为临时号码,代替用户的真实电话号13900100100。
配送人员可以通过智能终端(手机)预装的APP应用软件拨打物流单 号012345678901(在预装的APP中存在模拟拨号界面,实际是将物流单号发送至服务器),在服务器接收到物流单号后,查找相应于该物流单号的真实的电话号码13900100100,并将该真实的电话号码反馈至拨号的智能终端,当预装的APP检测到服务器反馈的真实电话号码之后将自动启动智能终端的拨号功能来拨打真实的电话号码以与用户取得联系,其中拨号过程中智能终端保持显示智能终端的模拟拨号界面(显示物流单号),整个过程中不显示实际电话号码。
在一些实施例中,至少将订单中的用户地址信息划分为第一子部和第二子部包括:将订单中的用户地址信息划分为第一子部、物流站点地址信息子部和第二子部;其中,所述物流站点为所述第一子部所代表的行政地域所辖范围内的多个物流站点之一,所述第二子部所代表的终极地址信息为所述物流站点配送范围内的配送地址的地址信息。
示例性地,可以按照物流公司自己的经营结构(主要是基于物流公司在各个城市的不同区域的物流站点或分公司的分布结构)进行地址编码。例如,北京市海淀区北太平庄街道首钢国际大厦的物流站点为A公司‘北京市海淀区文慧园公司’,北京编码为01,海淀编码为03,A公司‘北京市海淀区文慧园公司’在海淀区内各分支机构的编码为05,属于文慧园站点配送范围之内的区域则可在‘北京市海淀区文慧园’编码的基础上继续增加相应地址的编码,例如‘首钢国际大厦’的编码为00001(可为按照各级行政地域匹配的地址编码,也可为A公司根据自己组织结构匹配的地址编码),则‘北京市海淀区北太平庄街道首钢国际大厦’的地址编码便为01030500001。其中,北京编码-01和海淀编码-03为第一子部所代表的两级行政地域信息,文慧园站点编码-05为物流站点地址信息子部所代表的物流站点地址信息,首钢国际大厦-00001为第二子部所代表的终极地址信息。若05为A公司‘北京市海淀区文慧园公司’在北京市内各分支机构的编码,则‘北京市海淀区北太平庄街道首钢国际大厦’的地址编码可为010500001。
在一些实施例中,将按照行政级别编制的编码进行分组建库,每一个 配送站对应一个配送站编码数据库。例如,属于文慧园站派送的地址编码建立一个配送站编码数据库w(这些数据本是按行政级别编制的编码的一部分),当识别的地址编码在数据库w中时,即可判定该地址属于文慧园站派送,然后再将这些属于文慧园站派送的地址编码转换为A公司文慧园站自己的编码。例如,‘北京市海淀区北太平庄街道首钢国际大厦’根据行政等级匹配的地址编码为01020300001,该地址编码‘01020300001’的地址在A公司中归‘北京市海淀区文慧园站’配送且该地址编码对应A公司的编码为‘01030500001’或‘0500001’(若‘北京市海淀区文慧园站’在A公司所辖的分支机构中的编码为‘05’),则由A公司配送至‘北京市海淀区北太平庄街道首钢国际大厦’货物的地址编码可采用‘01030500001’或‘0500001’。
如图2所示,在一些实施例中,所述利用地域代码库确定对应于所述第一子部的行政地域编码包括:
S21、按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码,其中,最先确定的第一级地域的编码为第一级地域的代码,之后顺序确定的各级地域的编码包括本级地域的代码以及前一级地域的编码;
S22、将最后确定的所述第一子部中的根级地域的编码确定为所述行政地域编码。
在本实施例中,按地域级别大小逐级编写,最大一级地址赋予地址编码,然后赋予属于该地址区域的次一级的地址编码,并生成次一级地址的完整编码(不仅包含本级地址的地址编码,而且包含本级地址以上级别地址的地址编码),通过该级地址的完整编码可以获得该级地址的具体位置。
例如:首先,根据行政地域级别的高低,依次对各级行政地域赋予一组数字编码,直至每一户。对国家赋予一组编码a,对各省赋予一组编码ab,对区(市)赋予一组编码abc,对各街道赋予一组编码abcd,对各小区赋予一组编码abcde,根据小区内楼号、单元号、楼层号、门牌号赋予一组编码abcdef(为便于使用,以小区实际楼号、单元号、楼层号和门牌号为f为宜)。这样,任意一个收货地址S便可以用abcdef来表示,abcdef 也仅对应一个收获地址S。对于农村,对各市赋予一组编码abc,各县赋予一组编码abcd,对各乡镇赋予一组编码abcdf,对各村赋予一组编码abcdfg,对各住户赋予一组编码abcdfgh,,这样,任意一个收货地址S便可以用abcdfgh来表示,abcdfgh也仅对应一个收获地址S。或者,首先对各营业配送网点进行编码,对每一个营业网点所配送的区域赋予一组编码A;然后对营业网点配送区域内的各个详细的收货地址进行编码,对各个详细的地址赋予一组编码AB。这样,任意的一个收获地址S便可以用编码AB来表示,AB也仅对应于一个唯一的收货地址S。这样任何一个收货地址就有了与之对应的唯一的一组编码,任意一个收获地址可以用一组编码来代替。对于缺少某级地址的情况,可以用约定的编码来代替(如000)。例如,在农村对各住户无法或不便编码时,可采用约定的方式代替该级编码。
如图3所示,在一些实施例中,所述利用地域代码库确定对应于所述第一子部的行政地域编码包括:
S31、按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码,其中,所述第一子部中的每一级地域的编码为本级地域的代码;
S32、将所述第一子部中的各级地域的编码按照地域的级别顺序合成所述行政地域编码。
在一些实施例中,根据地域的大小级别逐级确定第一子部中包含的各级地域的代码包括两种形式,
第一种形式为:逐字读取所述地址信息,当读到预定关键字后从对应于所述预定关键字的代码库中查找对应于以所述关键字结尾的区域名称的代码;然后,从已经确定的所述预定关键字之后的地址信息开始重复执行上述步骤以确定各级地域的代码。此种方法适用于用户已经将这个地址输入完之后对地址信息进行编码的情况。
第二中形式为:根据用户通过下拉列表的形式实时选择的各级行政地域名称来实时调取相应的代码,最后将所确定的多个代码组成对应于第一子部的编码。
按地域级别逐级编码,最大一级地址赋予地址编码,然后赋予属于该 地址区域的次一级地址的地址编码,次一级地址的地址编码只针对该次一级地址的编码,不包含上一级地址的编码。若需要通过地址编码获得该级地址的具体位置需要将该级地址上级的所有编码同时赋予该级地址。
对每个具体的地址按照地域逐级赋予一组编码,每一个地址被赋予一组与其对应的编码,每一组编码对应一个地址,保证每一个地址与其编码形成一一对应的关系(用不同表述表达的同一位置可以采用相同的编码,也可以采用不同的编码,但都代表同一个地址。例如,北京市海淀区西直门北大街60号与北京市海淀区首钢国际大厦均代表同一个地址)。地址与地址编码形成一一对应关系,每一个地址对应一组编码,每一组编码代表唯一的一个地址。根据一个地址便能确定与该地址对应的编码,根据一组编码也能确定该组编码所对应的地址。
例如:首先,根据行政地域级别的高低,依次对各级行政地域赋予一组数字编码,直至每一户。对国家赋予一组编码a,对各省赋予一组编码b,对区(市)赋予一组编码c,对各街道赋予一组编码d,对各小区赋予一组编码e,根据小区内楼号、单元号、楼层号、门牌号赋予一组编码f(为便于使用,以小区实际楼号、单元号、楼层号和门牌号为f为宜)。这样,任意一个收货地址S便可以用abcdef来表示,abcdef也仅对应一个收获地址S。对于农村,对各市赋予一组编码c,各县赋予编码d,对各乡镇赋予编码f,对各村赋予编码g,对各住户赋予编码h。这样,任意一个收货地址S便可以用abcdfgh来表示,abcdfgh也仅对应一个收货地址S。
或者,首先对各营业配送网点进行编码,对每一个营业网点所配送的区域赋予一组编码A;然后对营业网点配送区域内的各个详细的收货地址进行编码,对各个详细的地址赋予一组编码B。这样,任意的一个收获地址S便可以用编码A、B来表示,A、B也仅对应于一个唯一的收货地址S;对于缺少某级地址的情况,可以用约定的编码来代替(如000)。例如,在农村对各住户无法或不便编码时,可采用约定的方式代替该级编码。这样任何一个收货地址就有了唯一的、与之对应的一组编码,任意一个收获地址可以用一组编码来代替。
如上所述,地址编码是逐级编写的,识别地址也是逐级识别。从第一级区域开始直至最后一级区域,每一级别的区域以属于本级别区域的关键 字结束。计算机识别关键字,作为该级区域读取截止的特征字。例如,北京市海淀区北太平庄街道红莲小区3号楼3单元203室,在地址识别过程中识别市、区、街道、小区、楼、单元、室等关键字。将这些代表区域级别的关键字作为地址识别过程中的特征字,在逐个字识别过程中将这些特征字作为一级区域识别的终止字。在读取分析“北京市”时,逐字读取并分析“北”、“北京”、“北京市”。在读取“北”和“京”时,显然这两个字都不是关键字,而当读到“市”时判定为关键字,从而确定这一级区域的名称为北京市,并确定对应于北京市的地址编码。然后,同理依次读取后面填写的地址,同时后续级别的行政地域将只能调用属于北京市的编码库中的地址编码,避免下一级别的地址名称在全国各地有多个重名,影响编码匹配的准确性。
在一些实施例中,在地址识别过程中,计算机逐字读取、分析某级地址时,每读取完每一级别地址的一个字之后就判断该级地址编码库中对应于已经读取的部分的地址编码是否唯一,当判断只剩一个地址编码可以匹配给读取到的已读取部分时,将该地址编码匹配给该级地址,并调用该级地址的编码库对次级地址继续进行分析编码。例如,在读取分析“北京市”时,逐字读取、分析“北”、“北京”、“北京市”,在读取“北”时,首字为“北”的地址不止一个,对应的地址编码也不止一个,通过继续读取后面的信息逐级缩小范围,然后依次读取“北京”、“北京市”,读取到“北京市”时,只剩一个地址编码,将该地址编码匹配给“北京市”,并调用北京市的地址编码库对“海淀区”逐字进行识别。读取识别完“海淀区”后,只剩一个地址编码,将该地址编码匹配给“海淀区”,然后调用海淀区的地址编码库对海淀区的次级地址进行分析,以此类推,直至编码完成。本实施例的有益效果在于,避免了不以特征字“市”、“区”等作为该级地址读取结束的关键字时无法对地址进行正确的编码的情况。
在一些实施例中,当在对应于所述预定关键字的编码库中查找不到对应于以所述预定关键字结尾的区域名称的子地址编码时,继续逐字读取所述地址信息,当再次读到预定关键字后从对应于再次读取的预定关键字的编码库中查找对应于以所述再次读取的预定关键字结尾的区域名称的子地址编码。
如图4所示,在一些实施例中,利用地域代码库确定对应于所述第一子部的行政地域编码包括:
S41、对所述第一子部中的各级行政地域信息从句首开始进行逐字判断,每确定出一个地域级别关键字段,则在所述地域代码库中的与所述地域级别关键字段相应的地域级别代码子库中进行检索,尝试获取与所述地域级别关键字段匹配的地域代码;
S42、当先后获取到与第一地域级别关键字段对应的第一地域代码和与第二地域级别关键字段对应的第二地域代码、且所述第二地域级别关键字段中的地域级别大于所述第一级别关键字段中的地域级别时,将所述第一地域级别关键字段确定为无效地域字段、丢弃对应的第一地域代码。
本实施例避免了在某一级别的地域名称中存在多个预定关键字(例如,对于地址:山西省晋中市太谷县胡村镇朝阳村,其中,胡村镇就是一个地域名称中同时包括了“村”和“镇”两个关键字),从而导致错误识别,错误编码或者无法完成编码的情况的发生,提升了对地址信息编码的准确性。
对于采用固定模式人工填写的地址。例如:___省___市___县___镇___村,用户只需将地址信息填写进固定的地址模板中即可(需要用户在物流公司的计算机平台上填写或者手写好地址信息后再由工作人员输入到物流公司的计算机平台)。计算机在逐字读取填写的地址信息时,遇到非用户填写的地址信息,如,“省”、“市”、“县”、“镇”、“村”等这些关键字将作为该级地址读取截止的特征字。读取到关键字时,终止该级地址的分析,并匹配相应的地址编码。同时,调用属于该级地址编码库中的编码信息供次级地址分析使用,以免下一级地址信息中在其他地方有重名现象出现造成编码混乱。例如,山西省晋中市太谷县胡村镇朝阳村(在乡镇一级的地址的名称中有特征字“村”),读取“太谷县”的地址时,逐字分析读取“胡村镇”时,调用太谷县的地址编码库,逐字分析并读取“胡”、“胡村”,读取到特征字“村”时,在太谷县的乡镇一级的地址编码库中查找对应于“胡村”的地址编码,但由于在太谷县的乡镇一级的地址编码库中是胡村镇而不是胡村,因此查找失败。继续读取“胡村镇”,读取到特征字“镇”时最终在太谷县的乡镇一级的地址编码库中查找到对 应于“胡村镇”的地址编码。然后调用属于胡村镇的地址编码库分析并匹配“朝阳村”的编码,生成“山西省晋中市太谷县胡村镇朝阳村”的地址编码。例如,陕西省延安市宝塔区临镇镇党德村(在乡镇一级地址的名字中有特征字“镇”),调用延安市的地址编码库对“宝塔区”进行分析、读取并匹配其地址编码,调用宝塔区的地址编码库对宝塔区的次级地址进行读取、分析。逐字分析、读取“临”、“临镇”,读取到特征“镇”时,暂停本级的读取,在宝塔区的乡镇一级的地址编码库中查找对应于“临镇”的地址编码,但在宝塔区的乡镇一级的地址编码库中是“临镇镇”而不是“临镇”,因此,无法在宝塔区的乡镇级的地址编码库中给“临镇”匹配地址编码。继续读取“临镇镇”,读取到第二个特征字“镇”时,在宝塔区的乡镇一级的地址编码库中查找对应于“临镇镇”的地址编码,最终从宝塔区的地址编码库中匹配“临镇镇”的编码。然后调用属于临镇镇的地址编码库分析并匹配“党德村”的地址编码,生成“陕西省延安市宝塔区临镇镇党德村”的地址编码。
目前,地址填写多采用通过下拉菜单选填地址和人工填写相结合的方式。一般对于大一些的区域采用下拉选项填写,对于具体位置则采用人工填写。主流的购物网站在乡镇、街道或者区、县及以上行政级别均采用下拉式菜单选择区域地址。例如,在省一级地址中选择“北京”,在下级地址的对话框中会自动列出北京市的所有区县供选择,无需再进行人工填写,人工只需输入区、县级以下或者乡镇、街道级以下的具体地址。这样从下拉列表中选择的每一级地址,都会以固定的特征字作为结束字。在逐字读取地址时,读到特征字时,该级地址读取即结束,并匹配该级地址的编码,自动调用属于该级区域的地址编码库供下一级地址使用。
对应采用固定的模式进行地址填写或生成的(例如,采用下拉菜单选填或者在固定的地址栏内填写,其中采用下拉菜单选填时,可直接选择下拉菜单中的信息,也可在该项中输入文字对下拉菜单中的信息进行筛选)。将所有地址进行编码并建立数据库(本级地址编码可以是包含其更高级区域的编码,也可是仅为本级地址在其更高级区域内的本级地址编码),每一级地址给予一个编码,为减少工作量,可以仅建立至小区或村,对于某小区内的楼号、单元号等通用内容可采用约定的模式进行编码(如3号楼, 可以默认以03匹配;3单元,默认以03匹配;2楼,默认以02匹配;3房间,默认以03匹配,这样3号楼3单元203房间就可用编码‘03030203’匹配)。
在一些实施例中,所述按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码包括:
检测用户在下拉列表中逐级选择的属于所述第一子部的各行政地域的地域名称,并逐级确定与被选择的各级行政地域的地域名称关联设置的编码。
在一些实施例中,通过为每一项下拉地址直接配置地址编码的方式可以无需逐字读取下拉选项中的地址(如下拉地址选项中的“河北省”与河北省的地址编码02是编辑在一起的,在从下拉选项中选中“河北省”后,便可以直接调出“河北省”的地址编码02。这样无需每次都进行逐字分析识别匹配地址编码,减少计算机读取识别的工作量,提高效率)。
在一些实施例中,通过建立不同级地址与其相应编码之间的映射关系,在选择某级地址时,可无需对文件进行逐字读取,即可根据映射关系匹配该某级地址的地址编码。例如,北京市的编码为01,西城区的编码为02,广安门外街道的编码为09,格调小区的编码为0001。地址与编码之间是相关联的,则在下拉菜单中选中北京市,即生成或调出北京市的编码01;在次一级的地址栏中调用北京市的次一级的地址信息,在下拉菜单中选择西城区,即生成或调出西城区的编码02;再在次一级的地址栏中调用北京市西城区的次一级地址的信息,在下拉菜单中选择广安门外街道,即生成或调出广安门外街道的编码09;再在次一级的地址栏中调用北京市西城区广安门外街道的次一级地址的信息,在下拉菜单中选择格调小区,即生成或调出格调小区的编码0001;北京市西城区广安门外街道格调小区(马连道6号院),在下拉菜单中选择03号楼,即生成或调出03号楼的编码03,在下拉菜单中选择03单元,即生成或调出03单元的编码03,在下拉菜单中选择02楼,即生成或调出2层的编码02,在下拉菜单中选择03房间,即生成或调出03房间的编码03。这样地址‘北京市西城区广安门外街道格调小区’就无需每级地址都经逐字读取、识别,在下拉菜单中选择任意级地址则可以直接匹配到该地址的编码。
在一些实施例中,提供一种固定地址填写模式,某一地址与其编码是 建立联系的,减少逐字读取的麻烦,可通过某级地址栏的下拉菜单选择,可在某级地址输入框内输入文字对下拉菜单中的信息进行筛选,如在省级地址栏中输入‘河’,则在该级地址栏的下拉菜单中可筛选出‘河南’、‘河北’供选择)。当然,某一级地址的编码也可包含其更高级地址的编码信息。
在一些实施例中,由于每个人的思维不一样,人工输入填写的同一个位置时,可能存在不同写法。例如“北京市海淀区北太平庄街道西直门北大街60号10层”与“北京市海淀区北太平庄街道首钢国际大厦10层”是同一个地方,甚至有人会填写西直门北大街首钢国际大厦。在逐字读取、识别时,西直门北大街60号与首钢国际大厦在北太平庄街道的地址编码库中是同一个地址。在识别“西直门北大街60号”后,无法从西直门北大街60号的数据库中匹配“首钢国际大厦”的地址编码,则跳过“首钢国际大厦”,继续往下分析“10层”。对于填写“西直门北大街首钢国际大厦”的情况,在逐字分析到“西直门北大街”时,在“北太平庄街道”的地址编码库中没关于西直门北大街的地址编码,则放弃“西直门北大街”继续分析“首钢国际大厦”并匹配相应的地址编码。对于填写“西直门北大街首钢国际大厦”的情况,若西直门北大街的地址编码库库中有首钢国际的地址编码,则在逐字分析完“西直门北大街”后,调用西直门北大街的地址编码库,逐字分析“首钢国际大厦”并匹配其地址编码。若在地址编码库中“首钢国际大厦”的上一级是“北太平庄街道”,则“西直门北大街”的库中没有“首钢国际大厦”的地址编码,放弃“西直门北大街”的分析,并跳过“西直门北大街”,直接分析“首钢国际大厦”并匹配其地址编码。陕西省延安市宝塔区临镇党德村(“临镇党德村”为人工填写的部分,),若宝塔区的乡镇一级的地址编码中,是对临镇进行编码的,则可以按照前面的读取分析步骤对临镇进行地址编码匹配;若在宝塔区的乡镇一级的地址编码中,是对“临镇镇”进行地址编码的,则在读取完“临镇”后并不能在乡镇一级匹配到其地址编码。
对于由用户手工填写的快递单,可以通过物流公司的工作人员将用户提供的快递单信息输入到物流公司的系统中,计算机通过逐字分析识别输入的信息并匹配相应编码,并生成对应的识别码;或者,由用户直接在物 流公司的提供的平台上填写用户信息,计算机读取用户信息,匹配相应的编码,并生成对应的识别码。
对于地址是从大到小逐级填写的情况,例如北京市海淀区。通过读取识别某级区域的地址编码,然后调用属于该级区域以下的地址编码库,逐级进行识别匹配。在读取分析某A级别的地址A1时,调用A级别的上一级别所对应的地址编码库,若A级别地址A1准确填写,则可直接逐字分析、识别并匹配地址A1的编码;若A级别未填写,直接填写了A的下一级别B级的地址B1,则在逐字读取分析地址B1后,因A级别的上一级别所对应的地址编码库中不包含名称为B1的地址,因此无法从A级别的上一级别所对应的地址编码库中找到可以匹配的地址编码。自动跳过A级别的上一级别所对应的地址编码库,调用A级别的地址编码库,从A级别的地址编码库中匹配地址B1的编码,并调用地址B1的上级地址A1地址编码赋予在地址B1的地址编码前。若在各级库中均无该地址的编码,则放弃该级地址,直接读取后面的地址进行地址编码匹配。例如,河北省石家庄市灵寿县,在填写时只写了河北省灵寿县,而没有填写石家庄市,逐字读取识别河北省,匹配河北省的编码并在后续的读取识别中调用河北省的地址编码库,继续读取灵寿县时,识别关键字“县”,在“省”与“县”中缺少了“市”,河北省数据库中搜索包含灵寿县的市,并将该市的编码添加到灵寿县编码之前。若在各级地址编码库中均无该地址的编码,则放弃该级地址,直接读取后面的地址进行编码匹配(例如某级地址写错了,济南市平阴县写成了济北市平阴县,在山东省的地址编码库中无“济北市”,则读取完“济北市”后,无法从山东省的地址编码数据库中匹配济北市的地址编码,则放弃该级地址的识别,直接读取“平阴县”并匹配其地址编码,并从山东省的数据库中搜索包含平阴县的地级市,并将该地级市的地址编码赋予到平阴县的地址编码前)。
对于地址填写时按照区划从小到大的模式填写的情况,可在地址填写完整后,按照区划从大到小逐级识别匹配地址编码;也可,在填写或从下拉选项中选择地址信息时,匹配其编码,然后根据更高一级的地址信息进行筛选。如‘西城区’的编码在不同城市的本级地址可能会有01、02两种编码,但北京市的西城区为01,填写或从下拉选项中选择‘西城区’会 匹配01、02两个编码,再在更高一级的地址信息填写或选择‘北京市’时,对‘西城区’的编码匹配北京市所属的西城区的编码01。或者,各级地址的编码中包含其更高级区域地址的编码(如,‘北京市’的‘西城区’的地址编码中包含‘北京市’的编码),通过填写或从下拉选项中选择更高一级的地址的地址编码对其筛选。
在一些实施例中,对于地址是从小到大逐级填写的情况。匹配所有最小一级地址的完整编码(可能会有多个重名的地方,因此对应该名称的地址编码可能不止一个),并通过上一级别的地址的本级地址编码进行筛选,逐级筛除不符合该地址的编码。读取并识别最低级别A的地址A1,并从地址编码库中调用所有该级别中地名为A的完整的地址编码(数据库中从最大区域到A的完整编码)。全国各地中在最低一级中名为A1的地方可能很多,从地址编码库中调出所有这些重名地址的地址编码,供后续的识别过程中调用、筛选。然后,读取A级的上一级别B级的地址B1,并从数据库中调用所有该级别地名为B1的地址编码(只调用B级的编码),将地址A1所对应的所有编码中B级位置的编码截取,并与确定的地址B1的地址编码进行比对,并保留A1的编码中与B1的地址编码一致的地址编码,以此类推,逐级缩小范围,直至最终确定该地址的编码。对于某E级地址E1填写缺失时,直接填写了E级的上一级F级地址F1,读取、识别地址F1时,则无法从E级地址编码库中匹配F1的编码。遇到该情况,自动调用E级的上一级F级的地址编码库进行识别并匹配F1的地址编码,并从A1的地址编码库中F级截取并与确定的地址F1的地址编码进行比对,保留A1的地址编码中与F1地址编码一致的地址编码。若在各级地址编码库中均无该地址的地址编码,则放弃该级地址,直接读取后面的地址进行编码,再继续进行地址编码筛选。
如图5所示,在一些实施例中,所述按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码包括:
S51、当所述第一子部中所包含的各级地域的地域级别之间存在缺失的地域级别时,根据所述第一子部中所包含的各地域确定所缺失的地域;
S52、按照地域代码库,确定所述缺失的地域的编码。
本实施例中避免了由于用户的行为习惯在地址填写过程中省略某一 级别地域名称而导致编码混乱或者无法完成编码的情况,提升了物流单号生成的可靠性。例如,将“河北省石家庄市灵寿县”直接写成“河北省灵寿县”,显然上述地址中缺失了石家庄市这个级别的名称。首先可以所缺失的市是属于河北省的,然后再确定包含灵寿县的所有的市,最后确定既包含了灵寿县同时又属于河北省的市就可以唯一确定所缺失的市是石家庄市了。从而就可以从对应的编码库中确定出对应于石家庄市的地址编码了。
在一些实施例中,所述根据所述第一子部中所包含的各地域确定所缺失的地域包括:
确定所述缺失的地域的上级行政地域所管辖的多个行政地域;
确定所述多个行政地域中包含所述缺失的地域的下级行政地域的行政地域为所述缺失的地域。
本实施中首先根据缺失的地域的上一级行政地域所管辖的多个行政地域确定了所缺失的地域的取值范围(即,确定了缺失的地域必然属于确定的多个行政地域之一),进而通过确定多个行政地域中所管辖的下级行政地域中的包含了订单信息中在缺失的地域下一级的地域的行政地域为缺失的行政地域。从而避免了全国属于与所述上一级行政地域同级别的其它行政地域所包含的与缺失的地域同级别的行政地域中恰巧包含了缺失的地域的下级地域时,造成编码混乱的情况。
对于地址是从大到小逐级填写的情况:例如,北京市海淀区。通过读取识别某级编码,然后调用属于该级以下的地址编码库,逐级进行识别匹配。在读取某A级别的地址A1时,调用A的上一级别的地址编码库,若A级别地址A1准确填写,则可直接逐字分析识别并匹配地址A1的编码;若A级别未填写,而直接填写了A级别的下一级别B级别的地址B1,则在逐字读取分析地址B1后,无法从A级别的上一级别的地址编码库中找到可以匹配的编码,从而自动跳过A级别的上一级别的地址编码库,调用A级别的地址编码库,从A级别的地址编码库中匹配地址B1的编码。若在各级库中均无该地址的编码,则放弃该级地址,直接读取后面的地址进行编码匹配。例如,河北省石家庄市灵寿县,在填写时只写了河北省灵寿县,而没有填写石家庄市。逐字读取识别河北省,匹配河北省的编码并在 后续的读取识别中调用河北省的地址编码库,避免全国有重名的地方带来混乱。继续读取灵寿县时,识别关键字“县”,在“省”与“县”中缺少了“市”,河北省数据库中读取、识别“灵寿县”,匹配灵寿县的地址编码。若在各级库中均无该地址的编码,则放弃该级地址,直接读取后面的地址进行编码匹配(例如,某级地址写错了,济南市平阴县写成了济北市平阴县,在山东省的地址编码库中无“济北市”,则读取完“济北市”后,无法从山东省的地址编码数据库中匹配济北市的地址编码,则放弃该级地址的识别,直接读取“平阴县”并从山东省的数据库中匹配“平阴县”的地址编码)。
对于地址时从小到大逐级填写的情况:例如,英语国家中地址都是从小级别的地址逐级增大填写的。匹配所有最小一级地址的完整编码(可能会有多个重名的地方,因此对应该名称的地址编码可能不止一个),并通过上一级别的地址的完整地址编码进行筛选,逐级筛除不符合该地址的编码。读取并识别最低级别A的地址A1,并从数据库中调用所有该级别中地名为A的完整的地址编码(数据库中从最大区域到A的完整编码),全国各地中在最低一级中名为A1的地方可能很多,从数据库中调出所有这些重名地址的地址编码,供后续的识别过程中调用、筛选。读取A级的上一级别B级的地址B1,并从数据库中调用所有B级别名为B1的地址编码(B1地址的完整编码),并将A1的所有编码中最大区域级别至B级的编码截取,并与地址B1的编码进行比对,并保留A1的所有编码中与B1的地址编码一致的编码。以此类推,逐级缩小范围,直至最终确定该地址的编码。对于某E级地址E1填写缺失时,直接填写了E级的上一级F级地址F1;读取、识别地址F1时,则无法从E级数据库中匹配F1的编码,遇到该情况,自动调用E级的上一级F级的地址编码进行识别并匹配F1的地址编码,并将A1的地址编码中最大区域级别至F级截取,并与F1的编码进行比对,保留A1的地址编码中与F1地址编码一致的编码。若在各级库中均无该地址的编码(例如,某级地址写错了,济南市写成了济北市),则放弃该级地址,直接读取后面的地址进行编码匹配,再继续进行地址编码筛选。
在一些实施例中可以同时对订单上的发货地址信息以及收货地址信 息进行编码。在一些实施例中可以通过本发明实施例得到的地址编码或者订单编码识别发货地址,后台指导分配工作人员揽收或者用户将货物配送到合适的物流网点。对于需要工作人员揽件的,根据发货地址和公司揽件人员的信息,指导最合适的揽件员进行揽件(例如,发货地址在西直门,两个工作人员分别在文慧桥和学院桥,则可以根据工作人员与需要揽收货物的地址,就近指导在文慧桥的工作人员进行揽收货物)。对于需用户自己将货物送到物流网点的,可以通过发货地和物流公司自己的网点位置和经营情况,指导用户将货物送达最合适的物流网点(例如,物流公司在北五环和南五环分别设有两个物流网点,用户的货物在北四环,则可以根据用户货物的地址与物流公司的网点位置,就近指导用户将货物送达北五环的物流网点)。
在一些实施例中可以通过本发明实施例得到的地址编码或者订单编码识别配送地址,匹配最优的配货仓库。对于有两个或两个以上的配送仓库的,计算机读取配送目的地的地址编码并识别该地址,计算机可以根据配送的目的地与配送仓库的位置以及配送仓库的货物情况,计算分析出最合适的配送仓库,匹配最合适的配货仓库,指导发货(例如,公司在北京和广州分别设有仓库,收货人地址是河北,北京距离河北最近,则计算机优先选择北京仓库发货)。
在一些实施例中可以通过本发明实施例得到的地址编码或者订单编码识别发、收货地址,后台指导用户将货物送达到合适的物流网点。对于需要用户自己将货物送到物流网点的(如大宗商品的物流运输),将用户的收、发货地址转换为地址编码,计算机读取地址编码并识别地址,指导用户将货物送达最合适的物流网点(例如,物流公司在北五环和南五环分别设有两个物流网点,用户的货物在北四环,则可以根据用户货物的地址与物流公司的网点位置,就近指导用户将货物送达北五环的物流网点),并指导货物的后续配送工作。
通过用户的地址编码进行分拣和运输,后台指导货物的运输。每一个地址都有自己对应的地址编码,每一地址编码可以生成与自己对应的、可被扫描识别的条形码、二维码等识别码。每个地址对应不同的地址编码且 编码是根据区域级别逐级编排的。因此,在配送到某一区域的货物的地址编码都有一定位数的编码是相同的(例如,两件邮寄到北京市海淀区北太平庄街道货物的地址编码的中“北京市至北太平庄街道”位置处的编码都是相同的,只是比北太平庄街道级别更小的区域的编码有所不同),可以根据收货地址的地址编码对货物进行人工分拣。计算机读取地址编码中的部分位置的编码(例如,假定前10位编码对应到街道一级区域,只读取前10位编码),将该编码对应目的地的所属区域以文字的形式显示在物流单上或读取地址编码后将地址编码中的部分地址以文字的形式显示在物流单上(例如,识别北京市海淀区北太平庄街道首钢国际大厦,将配送地址中的“北京市海淀区北太平庄街道”显示在物流单上,便于人工分拣;或者计算机读取、识别“北京市海淀区北太平庄街道首钢国际大厦”后,将配送该地址的配送网点的名字或者编号显示在物流单上,如该地址归属文慧园网点配送,则可以将北京市文慧园或者文慧园网点的编码显示在物流单上,便于人工分拣);每一个地址编码有与其对应的可被扫描识别的条形码或二维码等识别码,因此,可以通过扫描识别码识别地址,对货物进行快速的自动化分拣。计算机分析、识别每一运输工具所运输货物的地址编码或条形码,可以了解该运输工具上的货物的所有配送目的地、运输的货物及货物量等信息,一辆运输工具可以安排运输不同地址的货物(例如,从石家庄运送到廊坊的货物远不能装满一辆车,保定在石家庄与廊坊之间,则可以在该车上同时运输部分送往保定的货物),公司后台通过货物地址编码可以掌握该运输工具所运输货物的状况(包括货物量,货物的目的地等),给运输工具合理规划最优的运输路线和运输次序,能够有效利用运输工具,降低物流成本。通过运输工具上的定位系统,公司和用户可以实时了解货物的运输状态(通过地址编码或运单号,可以知道每辆运输工具上运输的是哪些货物,了解了运输工具的运输状态也就知道了货物的运输状态)。
通过用户地址编码,后台指导配送人员按照最优化的路线进行配送。公司后台可以根据每件货物的地址编码或条形码,了解每一件货物配送的目的地。每位配送人员可以通过将自己分配到的配送货物的扫描、识别结果上传给公司后台,公司后台根据配送员上传的地址,掌握配送员需要配 送的货物量及目的地,并根据所有配送货物的目的地,给每位配送人员计算、分析、规划出最优的配送路线和配送次序,减轻配送人员的工作任务,提高配送效率。例如,物流站点在西直门,配送人员从西直门站点出发进行货物配送,而配送货物的目的地分别为文慧桥、蓟门桥、马甸、联想桥、学知桥、鼓楼、官园桥和新街口,计算机可以识别所有的配送目的地,给配送人员规划文慧桥、联想桥、蓟门桥、学知桥、马甸、鼓楼、新街口、官园桥的配送路线,既节省了配送人员自我寻找配送线路的时间又给配送人员提供了最合适的配送路线。
本发明实施例能够实现最优配送路线的规划。公司计算机获取配送人员(或每辆配送车辆)的配送信息后,在地图上将所有的配送目的地进行计算、规划,给配送人员规划出最合适的配送路线,并指导配送人员进行配送货物,减少配送人员在配送路上浪费的时间,提高配送效率。
在快递单上隐藏用户的电话号码等信息,通过物流公司后台通信联系用户,节约配送人员联系用户的时间,避免用户信息暴露给收、寄件人以外的第三人。计算机在读取用户的地址后,继续读取、分析、识别用户的姓名、联系方式,可以与地址编码一起生成编码或将用户的姓名、联系方式等赋存在地址编码的识别码中,条形码、二维码等识别码中既包含地址信息也包含用户信息(编码中可以包含用户的地址和通信信息,也可以只包含用户地址);也可以单独生成联系人的姓名及通讯信息等的编码并生成相应的可扫描识别的条形码或二维码等识别码;也可以读取识别用户姓名及联系方式后,并不直接生成编码,而是将识别的联系人的姓名及通讯信息的资料与用户地址信息一起上传给物流公司,用户地址信息与通信信息绑定在一起,获取用户地址信息后,即可获得或可以调出用户的通信信息(或者将地址编码中约定的部分位置的数字与用户的电话号码绑定,将地址编码中约定的部分位置的数字作为临时号码代替用户的电话号码,供配送货物使用)。对于人工填写的的快递单信息,用户填写好信息后,工作人员可以通过人工输入用户的个人信息,上传到公司的计算机系统;或者,由用户直接在物流公司的提供的平台上填写用户信息,计算机读取用户填写的信息,并匹配相应的编码(编码中可以包含用户的地址和通信信息,也可以只包含用户地址);也可以读取识别用户姓名及联系方式后, 并不直接生成编码,而是将用户地址信息与通信信息绑定在一起,获取用户地址信息后,即可获得或可以调出用户的通信信息或者将地址编码中约定的部分位置的数字与用户的电话号码绑定,将地址编码中约定的部分位置的数字作为临时号码代替用户的电话号码,供配送货物使用)。
目前,物流配送中,基本都是采用配送员通过快递单上的手机号或者固话号联系用户或者通过用户端发送短信。通过上述处理,物流公司后台可以根据地址编码直接联系用户,配送人员只需要配送货物,无需与用户进行电话联系,节省配送人员的时间,也可以减少用户姓名和通讯方式的泄露;或者,配送人员通过拨打地址编码中的全部数字编码或部分数字编码,转接入公司后台,公司后台再根据配送人员拨入的号码转拨用户实际的电话号码;或者,将用户的电话号码与地址编码联系起来,配送人员在输入地址编码中约定部分的数字后,通过公司用户端直接转拨到用户的实际电话号码。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作合并,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
如图6所示为本申请一实施例提供的一种物流单号生成装置600,包括:
地址划分模块610,用于将用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;
行政地域编码确定模块620,用于利用地域代码库确定对应于所述第一子部的行政地域编码;
终级地址编码确定模块630,用于利用终级地址代码库确定对应于所述 第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应于表示同一地点的多种表述形式的终级地址信息;
物流单号生成模块640,用于根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,基于所述用户地址编码生成物流单号。
本实施例的有益效果在于通过将订单中的用户地址信息划分为包括各级行政地域信息的第一子部和包括所述各级行政地域信息中的根级地域下的终级地址信息的第二子部,并分别对上述两个子部进行编码,最后结合附加区别码与编码结果生成加密的物流单码,从而避免了用户信息的外泄,提升了对用户隐私保护的等级。此外,本发明实施例中的第二子部所标识的终级地址信息可以是多种表示同一地址的多种表述形式,从而即使在不同用户采用不同的描述方式来描述同一地址时,也能够将不同的描述方式编码为同一编码,保证了地址编码与地址之间一一对应的关系,避免了编码混乱的发生。本实施例中的地址编码为字符串或者是根据字符串生成的二维码或者是根据字符串生成的条形码等,本发明实施例不对此限定。
在一些物流单号生成装置的实施例中,还包括:
用户名称编码确定模块,用于确定与订单中的用户名称信息对应的用户名称编码,
其中,所述至少基于所述用户地址编码和附加区别码生成物流单号包括:基于所述用户地址编码、用户名称编码和附加区别码生成物流单号。
在一些物流单号生成装置的实施例中,所述附加区别码用于统计对应于同一用户地址编码的订单下单次数。
在一些物流单号生成装置的实施例中,还包括:单号电话关联模块,用于在生成物流单号后,将所述物流单号与订单中的用户联系电话建立关联,以允许与所述服务器匹配的终端通过向所述服务器呼叫所述物流单号的网络寻呼方式,而与所述用户联系电话建立移动通信连接。
如图7所示,在一些实施例中,所述行政地域编码确定模块620包括:
行政地域编码逐级确定单元621,用于按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码,其中,最先确定的 第一级地域的编码为第一级地域的代码,之后顺序确定的各级地域的编码包括本级地域的代码以及前一级地域的编码;
行政地域编码确定单元622,用于将最后确定的所述第一子部中的根级地域的编码确定为所述行政地域编码。
如图8所示,在一些实施例中,所述行政地域编码确定模块620包括:
行政地域编码逐级确定单元621′,用于按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码,其中,所述第一子部中的每一级地域的编码为本级地域的代码;
行政地域编码合成单元622′,用于将所述第一子部中的各级地域的编码按照地域的级别顺序合成所述行政地域编码。
如图9所示,在一些实施例中,所述行政地域编码确定模块620包括:
地域代码确定单元623,用于对所述第一子部中的各级行政地域信息从句首开始进行逐字判断,每确定出一个地域级别关键字段,则在所述地域代码库中的与所述地域级别关键字段相应的地域级别代码子库中进行检索,尝试获取与所述地域级别关键字段匹配的地域代码;
地域代码修正单元624,用于当先后获取到与第一地域级别关键字段对应的第一地域代码和与第二地域级别关键字段对应的第二地域代码、且所述第二地域级别关键字段中的地域级别大于所述第一级别关键字段中的地域级别时,将所述第一地域级别关键字段确定为无效地域字段、丢弃对应的第一地域代码。
如图10所示,在一些实施例中,所述行政地域编码逐级确定单元621(621′)包括:
缺失地域确定组件6211,用于当所述第一子部中所包含的各级地域的地域级别之间存在缺失的地域级别时,根据所述第一子部中所包含的各地域确定所缺失的地域;
缺失地域编码确定组件6212,用于按照地域代码库,确定所述缺失的地域的编码。
在一些实施例中,所述缺失地域确定组件包括:
上级管辖地域确定元件,用于确定所述缺失的地域的上级行政地域所管辖的多个行政地域;
缺失地域确定元件,用于确定所述多个行政地域中包含所述缺失的地域的下级行政地域的行政地域为所述缺失的地域。
在一些实施例中,物流单号生成装置还包括:
用户信息编码确定模块,用于对订单用户信息进行编码以确定用户信息编码,所述订单用户信息包括用户联系电话和/或用户姓名;所述至少基于所述用户地址编码生成物流单号为:基于所述用户地址编码和用户信息编码生成物流单号。
本发明实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块。
另一方面,本发明实施例提供一种存储介质,所述存储介质中存储有一个或多个包括执行指令的程序,所述执行指令能够被电子设备(包括但不限于计算机,服务器,或者网络设备等)读取并执行,以用于执行上述方法实施例中的相关步骤,例如:
将用户地址信息划分为第一子部和第二子部,所述第一子部包括各级行政地域信息,所述第二子部包括所述各级行政地域信息中的根级地域下的终级地址信息;利用地域代码库确定对应于所述第一子部的行政地域编码;利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址编码对应于表示同一地址的多种表述形式的终级地址信息;根据所确定的行政地域编码和终级地址编码确定完整地址编码,基于所述完整地址编码生成物流单号。
另一方面,本发明实施例还公开一种电子设备,其包括:
至少一个处理器,以及
与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:
将订单中的用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;
利用地域代码库确定对应于所述第一子部的行政地域编码;
利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中, 所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
图11是本申请另一实施例提供的执行物流单号生成方法的电子设备的硬件结构示意图,如图11所示,该设备包括:
一个或多个处理器1110以及存储器1120,图11中以一个处理器1110为例。
执行物流单号生成方法的设备还可以包括:输入装置1130和输出装置1140。
处理器1110、存储器1120、输入装置1130和输出装置1140可以通过总线或者其他方式连接,图11中以通过总线连接为例。
存储器1120作为一种存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的物流单号生成方法对应的程序指令/模块。处理器1110通过运行存储在存储器1120中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例物流单号生成方法。
存储器1120可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据物流单号生成装置的使用所创建的数据等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器1120可选包括相对于处理器1110远程设置的存储器,这些远程存储器可以通过网络连接至物流单号生成装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置1130可接收输入的数字或字符信息,以及产生与物流单号生成装置的用户设置以及功能控制有关的信号。输出装置1140可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器1120中,当被所述一个或者多个处理器1110执行时,执行上述任意方法实施例中的物流单号生成 方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (15)

  1. 一种物流单号生成方法,用于服务器,包括:
    将订单中的用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;
    利用地域代码库确定对应于所述第一子部的行政地域编码;
    利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
    根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
  2. 根据权利要求1所述的方法,其中,还包括:确定与订单中的用户名称信息对应的用户名称编码,
    至少基于所述用户地址编码和附加区别码生成物流单号包括:基于所述用户地址编码、用户名称编码和附加区别码生成物流单号。
  3. 根据权利要求1所述的方法,其中,所述附加区别码用于统计对应于同一用户地址编码的订单下单次数。
  4. 根据权利要求1所述的方法,其中,在生成物流单号后,还包括:
    将所述物流单号与订单中的用户联系电话建立关联,以允许与所述服务器匹配的终端通过向所述服务器呼叫所述物流单号的网络寻呼方式,而与所述用户联系电话建立移动通信连接。
  5. 根据权利要求1所述的方法,其中,所述利用地域代码库确定对应于所述第一子部的行政地域编码包括:
    按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码,其中,最先确定的第一级地域的编码为第一级地域的代码, 之后顺序确定的各级地域的编码包括本级地域的代码以及前一级地域的编码;
    将最后确定的所述第一子部中的根级地域的编码确定为所述行政地域编码。
  6. 根据权利要求1所述的方法,其中,所述利用地域代码库确定对应于所述第一子部的行政地域编码包括:
    按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码,其中,所述第一子部中的每一级地域的编码为本级地域的代码;
    将所述第一子部中的各级地域的编码按照地域的级别顺序合成所述行政地域编码。
  7. 根据权利要求5或6所述的方法,其中,所述按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码包括:
    当所述第一子部中所包含的各级地域的地域级别之间存在缺失的地域级别时,根据所述第一子部中所包含的各地域确定所缺失的地域;
    按照地域代码库,确定所述缺失的地域的编码。
  8. 根据权利要求5或6所述的方法,其中,所述按照地域代码库,根据行政地域的大小级别逐级确定第一子部中包含的各级地域的编码包括:
    检测用户在下拉列表中逐级选择的属于所述第一子部的各行政地域的地域名称,并逐级确定与被选择的各级行政地域的地域名称关联设置的代码。
  9. 根据权利要求1-6中任一项所述的方法,其中,所述地域代码库中存储有与所述第一子部的各行政地域的地域名称关联设置的代码,且定期更新与所述第一子部的各行政地域的地域名称关联设置的代码。
  10. 根据权利要求1-6中任一项所述的方法,其中,利用地域代码库确定对应于所述第一子部的行政地域编码包括:
    对所述第一子部中的各级行政地域信息从句首开始进行逐字判断,每确定出一个地域级别关键字段,则在所述地域代码库中的与所述地域级别关键字段相应的地域级别代码子库中进行检索,尝试获取与所述地域级别关键字段匹配的地域代码;
    当先后获取到与第一地域级别关键字段对应的第一地域代码和与第二地域级别关键字段对应的第二地域代码、且所述第二地域级别关键字段中的地域级别大于所述第一级别关键字段中的地域级别时,将所述第一地域级别关键字段确定为无效地域字段、丢弃对应的第一地域代码。
  11. 一种物流单号生成方法,用于服务器,包括:
    将订单中的用户地址信息划分为第一子部、物流站点地址信息子部和第二子部;其中,所述物流站点为所述第一子部所代表的行政地域所辖范围内的多个物流站点之一,所述第二子部所代表的终极地址信息为所述物流站点配送范围内的配送地址的地址信息;
    利用地域代码库确定对应于所述第一子部的行政地域编码;
    利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
    根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
  12. 一种电子设备,包括:
    至少一个处理器,以及
    与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:
    将订单中的用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;
    利用地域代码库确定对应于所述第一子部的行政地域编码;
    利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
    根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
  13. 一种存储介质,所述存储介质中存储有一个或多个包括执行指令的程序,所述执行指令能够被电子设备读取并执行,以用于执行:
    将订单中的用户地址信息划分为第一子部和第二子部,所述第一子部为各级行政地域信息,所述第二子部为所述各级行政地域信息中的根级地域下的终级地址信息;
    利用地域代码库确定对应于所述第一子部的行政地域编码;
    利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
    根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
  14. 一种电子设备,包括:
    至少一个处理器,以及
    与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:
    将订单中的用户地址信息划分为第一子部、物流站点地址信息子部和第二子部;其中,所述物流站点为所述第一子部所代表的行政地域所辖范围内的多个物流站点之一,所述第二子部所代表的终极地址信息为所述物流站点配送范围内的配送地址的地址信息;
    利用地域代码库确定对应于所述第一子部的行政地域编码;
    利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
    根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
  15. 一种存储介质,所述存储介质中存储有一个或多个包括执行指令的程序,所述执行指令能够被电子设备读取并执行,以用于执行:
    将订单中的用户地址信息划分为第一子部、物流站点地址信息子部和第二子部;其中,所述物流站点为所述第一子部所代表的行政地域所辖范围内的多个物流站点之一,所述第二子部所代表的终极地址信息为所述物流站点配送范围内的配送地址的地址信息;
    利用地域代码库确定对应于所述第一子部的行政地域编码;
    利用终级地址代码库确定对应于所述第二子部的终级地址编码,其中,所述终级地址代码库中每一个终级地址编码对应有表示同一地点的多种终级地址信息;
    根据所确定的行政地域编码和终级地址编码确定对应于所述用户地址信息的用户地址编码,至少基于所述用户地址编码和附加区别码生成物流单号,其中,所述附加区别码用于确保对应于不同订单的物流单号不同。
PCT/CN2018/075577 2017-02-09 2018-02-07 物流单号生成方法 WO2018145636A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710071315.9A CN106777377A (zh) 2017-02-09 2017-02-09 物流单号生成方法及装置
CN201710071315.9 2017-02-09

Publications (1)

Publication Number Publication Date
WO2018145636A1 true WO2018145636A1 (zh) 2018-08-16

Family

ID=58955611

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075577 WO2018145636A1 (zh) 2017-02-09 2018-02-07 物流单号生成方法

Country Status (2)

Country Link
CN (1) CN106777377A (zh)
WO (1) WO2018145636A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777377A (zh) * 2017-02-09 2017-05-31 辛国臣 物流单号生成方法及装置
CN107480113A (zh) * 2017-07-04 2017-12-15 宁夏东睿建筑科技有限公司 一种信息化云服务平台产品编码方法
CN108921754A (zh) * 2018-04-27 2018-11-30 巢包物联网科技(上海)有限公司 基于定位系统的社区门户编码方法
CN110363461A (zh) * 2019-05-28 2019-10-22 菜鸟智能物流控股有限公司 物流对象派送方法、装置和电子设备
CN111932170A (zh) * 2020-07-06 2020-11-13 福建工程学院 一种生成快递单信息的方法和系统
CN113298454A (zh) * 2020-09-29 2021-08-24 阿里巴巴集团控股有限公司 物流信息处理方法、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493846A (zh) * 2009-02-27 2009-07-29 孙群 地址编码方法以及应用该方法的定位系统
US20120232945A1 (en) * 2011-03-10 2012-09-13 Hong Kong R&D Centre for Logistics and Supply Chain Management Enabling Technologies Lightweight privacy protection protocol, methods, and systems for rfid and sensor based logistics track and trace data sharing over business subcontracting relationships
CN104463529A (zh) * 2014-11-26 2015-03-25 浙江工业大学 一种基于二维码和加密技术的物流配送单生成方法
CN104794600A (zh) * 2015-03-17 2015-07-22 王宝东 物流运输方法
CN105719120A (zh) * 2016-04-25 2016-06-29 成都蓉科联创科技有限责任公司 一种加密快递单隐私信息的方法
CN106777377A (zh) * 2017-02-09 2017-05-31 辛国臣 物流单号生成方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866441A (zh) * 2009-04-20 2010-10-20 胡甜 一种自动发送快件派送通知的装置
CN103440312B (zh) * 2013-08-27 2019-01-22 深圳市华傲数据技术有限公司 一种通信地址查询邮政编码的系统及终端
CN104537062A (zh) * 2014-12-29 2015-04-22 北京牡丹电子集团有限责任公司数字电视技术中心 一种地址信息抽取方法及系统
CN104933539A (zh) * 2015-04-03 2015-09-23 浙江工业大学 一种基于rfid技术的快递配送单生成方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493846A (zh) * 2009-02-27 2009-07-29 孙群 地址编码方法以及应用该方法的定位系统
US20120232945A1 (en) * 2011-03-10 2012-09-13 Hong Kong R&D Centre for Logistics and Supply Chain Management Enabling Technologies Lightweight privacy protection protocol, methods, and systems for rfid and sensor based logistics track and trace data sharing over business subcontracting relationships
CN104463529A (zh) * 2014-11-26 2015-03-25 浙江工业大学 一种基于二维码和加密技术的物流配送单生成方法
CN104794600A (zh) * 2015-03-17 2015-07-22 王宝东 物流运输方法
CN105719120A (zh) * 2016-04-25 2016-06-29 成都蓉科联创科技有限责任公司 一种加密快递单隐私信息的方法
CN106777377A (zh) * 2017-02-09 2017-05-31 辛国臣 物流单号生成方法及装置

Also Published As

Publication number Publication date
CN106777377A (zh) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2018145636A1 (zh) 物流单号生成方法
US11550826B2 (en) Method and system for generating a geocode trie and facilitating reverse geocode lookups
WO2020228706A1 (zh) 基于围栏地址的坐标数据处理方法、装置和计算机设备
US9311334B2 (en) Geospatial database integration using business models
CN101988961B (zh) 地理位置数据采集系统
CN104484790A (zh) 一种物流业务的地址匹配方法及装置
JP2019512764A (ja) ユーザ地理的ロケーションのタイプを識別するための方法および装置
USRE48213E1 (en) Techniques for synchronized address coding and print sequencing
CN112988788A (zh) 国土空间规划空间数据突变检查方法、应用系统及云平台
KR20140097805A (ko) 좌표(x, y)위치 값을 이용한 체계적인 블록번호 생성 및 그 이용한 주소매칭 서비스 방법
CN110232104A (zh) 一种数据显示方法、装置、存储介质及计算机设备
CN111770447A (zh) 生成电子围栏的方法、装置及服务器
CN110990520A (zh) 一种地址编码方法、装置、电子设备和存储介质
Lorenzi et al. Utilizing social media to improve local government responsiveness
KR102184048B1 (ko) Gis 기반 토지 이용 계획 검토 시스템 및 방법
CN109408781A (zh) 一种基于行政区划的寄递地址编码方法
CN115605903A (zh) 用于快速组成、启动和配置具有内置审计和监测结构的可定制的第二层级转移结构的系统及其方法
CN105069665A (zh) 多渠道站外广告报表数据的排序展示方法及装置
CN106599241A (zh) 一种gis软件中针对大数据的可视化管理方法
KR101310420B1 (ko) 사용자가 정의 가능한 업무 절차 기반 도시 계획 관리 시스템 및 이를 위한 기록매체
CN111401051B (zh) 快递信息解析方法及系统
CN103455910B (zh) 业务应用的工作语境
CN107133391A (zh) 施工图纸的生成方法和系统
CN111949639A (zh) 品牌库创建方法及系统、品牌查询与分析平台
CN111475742A (zh) 一种地址提取方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18750956

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18750956

Country of ref document: EP

Kind code of ref document: A1