Method and device for determining site to which order address belongs

By determining the regional tiles of the order address in the cache and directly locating the site, the problem of low database query efficiency and high pressure in the existing technology is solved, and efficient site positioning and system stability are achieved.

CN110750602BActive Publication Date: 2024-09-24BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810739148.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-07-06
Publication Date
2024-09-24
Estimated Expiration
2038-07-06

AI Technical Summary

Technical Problem

When the existing technology determines the site to which the order address belongs, it directly relies on database query, which results in large performance impact and low efficiency. Under high concurrency conditions, the database pressure is too high, resulting in poor system stability.

Method used

By obtaining the coordinates of the order address, using geographical drawing tools to divide the regional tiles, and storing the tiles and index values ​​in the cache, the corresponding regional tiles are obtained directly from the cache to determine the site to which the order address belongs, reducing dependence on the database.

Benefits of technology

It greatly improves query efficiency, shortens response time, reduces database pressure, and ensures stable operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110750602B
    Figure CN110750602B
Patent Text Reader

Abstract

The present invention discloses a method and device for determining the site to which an order address belongs, and relates to the field of warehousing and logistics technology. A specific implementation of the method includes: obtaining the coordinates of the order address; obtaining the regional tiles corresponding to the coordinates from the cache; and determining the site to which the order address belongs according to the coordinates and the corresponding regional tiles. This implementation overcomes the technical defects of the prior art of directly querying the database, resulting in low efficiency, high concurrency, and poor stability in determining the site to which the order address belongs, and achieves the technical effect of greatly improving the query efficiency and ensuring the stable operation of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of warehousing logistics, and in particular to a method and device for determining a site to which an order address belongs. Background Art

[0002] In the prior art, the latitude and longitude coordinates of the order address are obtained by calling a third-party map, and then the site information corresponding to the order address is determined in a database according to the latitude and longitude of the order address, so as to achieve the purpose of sorting.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] 1. Directly query the database, and the amount of data stored in the database is large, which has a great impact on the performance of the system, and thus makes it inefficient to determine the site to which the order address belongs;

[0005] 2. In the scenario of determining the site to which the order address belongs, there is high concurrency and a large number of threads directly accessing the database, which causes excessive pressure on the database and poor stability of the entire system.

[0006] 3. It is complicated to determine the site corresponding to the order address and the site cannot be determined quickly. Summary of the invention

[0007] In view of this, an embodiment of the present invention provides a method for determining the site to which an order address belongs, which can overcome the technical defects of the prior art that it needs to rely on querying the database to determine the site, which puts too much pressure on the database, has low query efficiency, and long query response time, thereby achieving the technical effect of greatly improving the query efficiency and ensuring the stable operation of the system.

[0008] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for determining a site to which an order address belongs is provided, comprising:

[0009] Get the coordinates of the order address;

[0010] Obtaining the region tile corresponding to the coordinates from the cache;

[0011] The site to which the order address belongs is determined according to the coordinates and the corresponding regional tiles.

[0012] Optionally, before obtaining the regional tile corresponding to the coordinate from the cache, the method includes:

[0013] Use geographic mapping tools to divide regional tiles;

[0014] Determine the index value of the region tile;

[0015] Obtaining the region tile corresponding to the coordinates from the cache, including:

[0016] According to the coordinates, matching the index value corresponding to the coordinates;

[0017] Determine the region tile corresponding to the order address according to the index value;

[0018] Wherein, the geographic mapping tool includes: a network map, or a GIS.

[0019] Optionally, dividing the regional tiles by using a geographic mapping tool includes:

[0020] Set up north-south and east-west division units;

[0021] According to the geographic drawing tool, the region tiles are divided by the division units.

[0022] Optionally, the determining the index value of the regional tile includes:

[0023] The coordinates of a vertex of the region tile are used as the index value of the region tile;

[0024] Or, the coordinates of the symmetric point of the region tile center are used as the index value of the region tile.

[0025] Optionally, the region tiles and corresponding index values ​​are stored in a Redis cache or a Memcached cache server;

[0026] Site information uses the JSON data exchange format with a Map structure.

[0027] Optionally, the regional tile includes: one or more stations, each station corresponding to a fence of the station's delivery range;

[0028] Determine the site to which the order address belongs according to the coordinates and the corresponding regional tiles, including:

[0029] Draw a ray with the coordinates as the vertex;

[0030] Determine the number of intersections between the ray and the fence where each station is located in the corresponding regional tile;

[0031] When the number of intersections between the ray and a fence is odd, the order address belongs to the site corresponding to the fence.

[0032] According to another aspect of an embodiment of the present invention, there is provided a device for determining a site to which an order address belongs, including:

[0033] A coordinate acquisition module is used to obtain the coordinates of the order address;

[0034] A regional tile determination module, used for acquiring the regional tile corresponding to the coordinates from the cache;

[0035] The site determination module is used to determine the site to which the order address belongs based on the coordinates and the corresponding regional tiles.

[0036] Optionally, it further includes: a regional tile division module, which is used to divide the regional tiles using a geographic mapping tool before obtaining the regional tiles corresponding to the coordinates from the cache; determine the index value of the regional tiles;

[0037] Acquiring the region tile corresponding to the coordinate from the cache, including: matching the index value corresponding to the coordinate according to the coordinate; determining the region tile corresponding to the order address according to the index value;

[0038] Wherein, the geographic mapping tool includes: a network map, or a GIS.

[0039] Optionally, dividing the regional tiles by using a geographic mapping tool includes:

[0040] Set up north-south and east-west division units;

[0041] According to the geographic drawing tool, the region tiles are divided by the division units.

[0042] Optionally, the determining the index value of the regional tile includes:

[0043] The coordinates of a vertex of the region tile are used as the index value of the region tile;

[0044] Or, the coordinates of the symmetric point of the region tile center are used as the index value of the region tile.

[0045] Optionally, the region tiles and corresponding index values ​​are stored in a Redis cache or a Memcached cache server;

[0046] Site information uses the JSON data exchange format with a Map structure.

[0047] Optionally, the regional tile includes: one or more stations, each station corresponding to a fence of the station's delivery range;

[0048] Determine the site to which the order address belongs according to the coordinates and the corresponding regional tiles, including:

[0049] Draw a ray with the coordinates as the vertex;

[0050] Determine the number of intersections between the ray and the fence where each station is located in the corresponding regional tile;

[0051] When the number of intersections between the ray and a fence is odd, the order address belongs to the site corresponding to the fence.

[0052] According to another aspect of an embodiment of the present invention, there is provided an electronic device for determining a site to which an order address belongs, including:

[0053] one or more processors;

[0054] a storage device for storing one or more programs,

[0055] When the one or more programs are executed by the one or more processors, the one or more processors implement the method of the present invention for determining the site to which an order address belongs.

[0056] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method of the present invention for determining the site to which an order address belongs is implemented.

[0057] One embodiment of the above invention has the following advantages or beneficial effects:

[0058] By first determining the regional tile corresponding to the order address in the cache and then determining the specific site, the technical defects of the existing technology that rely on querying the database to determine the site, excessive pressure on the database, low query efficiency and long query response time are overcome, thereby achieving the technical effect of directly locating the regional tile using coordinates, narrowing the scope of the positioning site, greatly improving the query efficiency and ensuring the stable operation of the system.

[0059] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0061] Figure 1 is a schematic diagram of the main process of the method for determining the site to which an order address belongs according to an embodiment of the present invention;

[0062] Figure 2 is a schematic diagram of regional tiles divided according to a method for determining a site to which an order address belongs according to an embodiment of the present invention;

[0063] Figure 3 is a schematic diagram of a Map structure in a method for determining a site to which an order address belongs according to an embodiment of the present invention;

[0064] Figure 4 is a schematic diagram of a specific embodiment of determining a site in a method for determining a site to which an order address belongs according to an embodiment of the present invention;

[0065] Figure 5is a schematic diagram of main modules of an apparatus for determining a site to which an order address belongs according to an embodiment of the present invention;

[0066] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0067] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0069] Figure 1 is a schematic diagram of the main process of the method for determining the site to which an order address belongs according to an embodiment of the present invention. Figure 1 To achieve the above purpose, according to one aspect of an embodiment of the present invention, a method for determining a site to which an order address belongs is provided, including:

[0070] Step S101, obtaining the coordinates of the order address;

[0071] Step S102, obtaining a region tile corresponding to the coordinates from a cache;

[0072] Step S103: Determine the site to which the order address belongs based on the coordinates and the corresponding regional tiles.

[0073] The present invention provides a method for determining the site to which an order address belongs, with the purpose of over-relying on database query and failing to quickly determine the site when the query volume is large when determining the site corresponding to the order address in the prior art, thereby achieving the technical effect of not directly querying data in the database, reducing dependence on the database query function, significantly shortening the response time for determining the site, and significantly improving the throughput.

[0074] When obtaining the coordinates of the order address, the specific longitude and latitude coordinates can be obtained by calling the network map interface, or the coordinates corresponding to the order address can be determined by querying the database, which is not specifically limited here. For example, assuming that the order address is "X", the longitude and latitude coordinates of the address can be obtained by calling the network map interface as (39.843868,116.457481).

[0075] The regional tile refers to a certain area divided into multiple smaller areas according to standards, and each smaller area after the division is called a regional tile. In each regional tile, information about the regional tile is contained, for example, all the sites in the regional tile, and the range covered by each site, etc. Since the regional tile is stored in the cache, when determining the site corresponding to the order address, the corresponding regional tile can be directly determined in the cache, and then the site can be determined based on the information of the regional tile, so as to quickly locate the area corresponding to the site, thereby improving the efficiency of querying the site corresponding to the order address.

[0076] By first determining the regional tile corresponding to the order address in the cache and then determining the specific site, the technical defects of database instability caused by high concurrency and a large number of threads directly accessing the database are avoided. The technical defects of low query efficiency and long query response time in the existing technology are overcome, thereby achieving the technical effect of greatly improving query efficiency and ensuring stable operation of the system.

[0077] Optionally, before obtaining the regional tile corresponding to the coordinate from the cache, the method includes:

[0078] Use geographic mapping tools to divide regional tiles;

[0079] Determine the index value of the region tile;

[0080] Obtaining the region tile corresponding to the coordinates from the cache, including:

[0081] According to the coordinates, matching the index value corresponding to the coordinates;

[0082] Determine the region tile corresponding to the order address according to the index value;

[0083] Wherein, the geographic mapping tool includes: a network map, or a GIS.

[0084] When a certain area does not have a regional tile set, you can use a geographic mapping tool to divide the regional tiles to prepare for the subsequent determination of the regional tile where the order address is located. For example, assuming that the Beijing area has not been divided into regional tiles, you can use a network map to divide the Beijing area into many regional tiles to facilitate the subsequent positioning of the corresponding site. You can also divide the regional tiles according to the Geographic Information System (GIS), which is not specifically limited here.

[0085] At the same time, an index value is set according to the characteristics of each regional tile, and the coverage of the region can be determined according to the index value, which is used to assist in determining the regional tile corresponding to the order address.

[0086] When determining the regional tile corresponding to the order address, the index value corresponding to the coordinates can be first determined based on the coordinates of the order address. Since the index value corresponds to the regional tile, the regional tile corresponding to the order address can be determined by knowing the index value corresponding to the order address. By using the technical means of matching the coordinates with the index value to determine the regional tile, the technical defects of the prior art that the database needs to be queried when determining the site, the query efficiency is low, and the response is slow are overcome, thereby achieving the technical effect of greatly improving the query efficiency and making the response time fast.

[0087] Optionally, dividing the regional tiles by using a geographic mapping tool includes:

[0088] Set up north-south and east-west division units;

[0089] According to the geographic drawing tool, the region tiles are divided by the division units.

[0090] When dividing the regional tiles, the divided area can be divided according to the actual situation. Specifically, when dividing the regional tiles for areas with dense sites or dense population, smaller area units can be used for division, so that the number of sites contained in each regional tile meets the actual needs.

[0091] Optionally, an internationally common longitude and latitude coordinate system may be used to assist in dividing the regional tiles. A coordinate system may also be established according to actual needs to divide the regional tiles, so that the divided regional tiles are more suitable for the technical solution of the present invention.

[0092] For example, Figure 2 As shown, when dividing regional tiles in areas with densely populated sites such as Beijing, the regional tiles can be divided into units of 0.01 degrees longitude coordinates and 0.01 degrees latitude coordinates, so that the size of each regional tile is about one square kilometer. However, when dividing regional tiles in sparsely populated forest areas, the unit area of ​​the division can be appropriately enlarged according to actual conditions. By dividing regional tiles into units of 0.01 degrees longitude coordinates and 0.01 degrees latitude coordinates, the internationally accepted longitude and latitude coordinates can be used for positioning without the need to establish a separate coordinate system, and the area of ​​the regional tiles can cover a small number of sites, which is convenient for the subsequent determination of the specific site corresponding to the order address. Optionally, the purpose of dividing regional tiles can be achieved by dividing regional tiles in units of 1000 meters east-west and 1000 meters north-south.

[0093] Optionally, the determining the index value of the regional tile includes:

[0094] The coordinates of a vertex of the region tile are used as the index value of the region tile;

[0095] Or, the coordinates of the symmetric point of the region tile center are used as the index value of the region tile.

[0096] After the regional tile is determined, the coordinates of a certain point in the regional tile are set as the index value, which can achieve the technical effect of quickly determining the coverage of the regional tile, thereby facilitating the determination of the regional tile by the order address and improving the efficiency of determining the site. Specifically, using a point in the vertex of the regional tile or a central symmetric point as an index value can facilitate the determination of the coverage of the regional tile. Among them, the above method for determining the index value is only a preferred implementation method. Setting other points in the regional tile as index values ​​can also achieve the above beneficial effects, and is also within the protection scope of the present invention.

[0097] Specifically, assuming that the region tile uses the coordinates of the lower left corner as the index value, and the region tile is divided into units of 0.01 degrees of longitude coordinates and 0.01 degrees of latitude coordinates, if the order address falls within the horizontal coordinate and vertical coordinate of a certain index value plus 0.01 degrees, the region tile corresponding to the index value can be obtained.

[0098] Taking the order address "X" as an example, since the longitude and latitude coordinates are determined to be (39.843868, 116.457481), the horizontal coordinate (longitude) of the coordinate is between 39.84-39.85, and the vertical coordinate (latitude) is between 116.45-116.46. And since the regional tile uses the coordinate of the lower left corner as the index value, it can be known that the horizontal and vertical coordinates are both indexed with the minimum value in the value range. The index value corresponding to the order address "X" is (39.84, 116.45), so it can be confirmed that the corresponding regional tile is Figure 2 The region tile in row 2 and column 3.

[0099] Optionally, the region tiles and corresponding index values ​​are stored in a Redis cache or a Memcached cache server;

[0100] Site information uses the JSON data exchange format with a Map structure.

[0101] The index value of the regional tile is stored in the cache. When the order address needs to query the corresponding site, it can be directly queried through the cache instead of directly querying the database, thus reducing the pressure on the database. Figure 3 As shown, the site information is stored in the JSON data exchange format of the Map structure, which facilitates direct subsequent query operations and further improves the query speed. Figure 3 The key is the index value of the region tile.

[0102] Optionally, the regional tile includes: one or more stations, each station corresponding to a fence of the station's delivery range;

[0103] Determine the site to which the order address belongs according to the coordinates and the corresponding regional tiles, including:

[0104] Draw a ray with the coordinates as the vertex;

[0105] Determine the number of intersections between the ray and the fence where each station is located in the corresponding regional tile;

[0106] When the number of intersections between the ray and a fence is odd, the order address belongs to the site corresponding to the fence.

[0107] Since there may be multiple stations in a regional tile, and each station has a different delivery range, that is, each station corresponds to a different fence, it is necessary to determine the relationship between the station and the fence based on the fence in the regional tile. Among them, the information of each station in the regional tile is stored in the regional tile. Because the regional tile is stored in the cache, when querying the order address, there is no need to enter the database query, thereby reducing the pressure on the database and improving the stability of the entire system.

[0108] Specifically, Figure 4 As shown, the relationship between the order address and the fence is determined using the ray method. Figure 4 In the figure, the fence is an area surrounded by dark polygons, and the shape of the fence is determined according to the actual situation. Figure 4 As shown in the order address represented by A or C, draw a ray through A or C at the location of the order address. Since the number of intersections between the ray passing through A or C and the fence is an odd number, the point is on the inside of the fence; Figure 4 As shown in the order address represented by B, if the number of intersections between the ray passing through point B and the fence is an even number, then point B is outside the polygon.

[0109] Optionally, the method for determining the relationship between the fence and the order address also includes: area and discrimination method, angle and discrimination method, etc., which are not specifically limited here.

[0110] Figure 5 is a schematic diagram of main modules of an apparatus for determining a site to which an order address belongs according to an embodiment of the present invention, such as Figure 5 According to another aspect of an embodiment of the present invention, a device 500 for determining a site to which an order address belongs is provided, comprising:

[0111] Module 501, a coordinate acquisition module, is used to acquire the coordinates of the order address;

[0112] Module 502, a regional tile determination module, is used to obtain a regional tile corresponding to the coordinate from a cache;

[0113] Module 503, a site determination module, used to determine the site to which the order address belongs according to the coordinates and the corresponding regional tiles;

[0114] Optionally, it further includes: a regional tile division module, which is used to divide the regional tiles using a geographic mapping tool before obtaining the regional tiles corresponding to the coordinates from the cache; determine the index value of the regional tiles;

[0115] Acquiring the region tile corresponding to the coordinate from the cache, including: matching the index value corresponding to the coordinate according to the coordinate; determining the region tile corresponding to the order address according to the index value;

[0116] Wherein, the geographic mapping tool includes: a network map, or a GIS.

[0117] Optionally, dividing the regional tiles by using a geographic mapping tool includes:

[0118] Set up north-south and east-west division units;

[0119] According to the geographic drawing tool, the region tiles are divided by the division units.

[0120] Optionally, the determining the index value of the regional tile includes:

[0121] The coordinates of a vertex of the region tile are used as the index value of the region tile;

[0122] Or, the coordinates of the symmetric point of the region tile center are used as the index value of the region tile.

[0123] Optionally, the region tiles and corresponding index values ​​are stored in a Redis cache or a Memcached cache server;

[0124] Site information uses the JSON data exchange format with a Map structure.

[0125] Optionally, the regional tile includes: one or more stations, each station corresponding to a fence of the station's delivery range;

[0126] Determine the site to which the order address belongs according to the coordinates and the corresponding regional tiles, including:

[0127] Draw a ray with the coordinates as the vertex;

[0128] Determine the number of intersections between the ray and the fence where each station is located in the corresponding regional tile;

[0129] When the number of intersections between the ray and a fence is odd, the order address belongs to the site corresponding to the fence.

[0130] Figure 6An exemplary system architecture 600 is shown to which the method for determining a site to which an order address belongs or the device for determining a site to which an order address belongs according to an embodiment of the present invention can be applied.

[0131] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0132] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0133] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0134] The server 605 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 601, 602, and 603. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0135] It should be noted that the method for determining the site to which an order address belongs provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for determining the site to which an order address belongs is generally set in the server 605 .

[0136] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0137] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0138] like Figure 7As shown, the computer system 700 includes a central processing module (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0139] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0140] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing module (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0141] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."

[0144] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0145] Get the coordinates of the order address;

[0146] Obtaining the region tile corresponding to the coordinates from the cache;

[0147] The site to which the order address belongs is determined according to the coordinates and the corresponding regional tiles.

[0148] According to the technical solution of the embodiment of the present invention, the following beneficial effects can be achieved:

[0149] By first determining the regional tile corresponding to the order address in the cache and then determining the specific site, the technical defects of the existing technology that rely on querying the database to determine the site, which puts too much pressure on the database, has low query efficiency and long query response time are overcome, thereby achieving the technical effect of directly locating the regional tile using coordinates, narrowing the scope of the positioning site, more directly determining the site, greatly improving the query efficiency and ensuring the stable operation of the system.

[0150] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for determining the site to which an order address belongs, It is characterized in that include: Get the coordinates of the order address; Obtaining the regional tile corresponding to the coordinate from the cache, including: matching the index value corresponding to the coordinate according to the coordinate; determining the regional tile corresponding to the order address according to the index value; wherein the number of index values ​​of the regional tile is only one, and the coordinates of the central symmetric point are used as the index value; dividing the regional tile by using a first preset value of the longitude coordinate and a second preset value of the latitude coordinate as units, and if the coordinate falls within the range of the abscissa of a certain index value plus or minus half of the first preset value and the ordinate plus or minus half of the second preset value, then determining the regional tile corresponding to the index value of the coordinate; According to the coordinates and the corresponding regional tiles, the site to which the order address belongs is determined; wherein the regional tile includes: multiple sites, each site corresponds to the fence of the delivery range of the site; the process of determining the site includes: making a ray with the coordinates as the vertex; determining the number of intersections of the ray with the fence where each site in the corresponding regional tile is located; when the number of intersections between the ray and a fence is an odd number, the order address belongs to the site corresponding to the fence.

2. The method according to claim 1, It is characterized in that Before obtaining the area tile corresponding to the coordinates from the cache, including: Use geographic mapping tools to divide regional tiles; Determine the index value of the region tile; Wherein, the geographic mapping tool includes: a network map, or a GIS.

3. The method according to claim 2, It is characterized in that The method of dividing the regional tiles by using a geographic mapping tool includes: Set up north-south and east-west division units; According to the geographic drawing tool, the region tiles are divided by the division units.

4. The method according to claim 2, It is characterized in that The determining of the index value of the regional tile includes: The coordinates of a vertex of the region tile are used as the index value of the region tile.

5. The method according to claim 4, It is characterized in that The regional tiles and corresponding index values ​​are stored in a Redis cache or a Memcached cache server; Site information uses the JSON data exchange format with a Map structure.

6. The method according to claim 5, It is characterized in that A regional tile contains: A site.

7. A device for determining the site to which an order address belongs, It is characterized in that include: A coordinate acquisition module is used to obtain the coordinates of the order address; A regional tile determination module, used for obtaining the regional tile corresponding to the coordinate from the cache, including: matching the index value corresponding to the coordinate according to the coordinate; determining the regional tile corresponding to the order address according to the index value; wherein the number of index values ​​of the regional tile is only one, and the coordinates of the central symmetric point are used as the index value; the regional tile is divided into units of a first preset value of the longitude coordinate and a second preset value of the latitude coordinate, and if the coordinate falls within the range of a half of the first preset value plus or minus the horizontal coordinate of a certain index value and a half of the second preset value plus or minus the vertical coordinate, then the regional tile corresponding to the index value is determined; The site determination module is used to determine the site to which the order address belongs based on the coordinates and the corresponding regional tiles; wherein the regional tiles include: multiple sites, each site corresponds to the fence of the delivery range of the site; the process of determining the site includes: making a ray with the coordinates as the vertex; determining the number of intersections of the ray with the fence where each site in the corresponding regional tile is located; when the number of intersections between the ray and a fence is an odd number, the order address belongs to the site corresponding to the fence.

8. The device according to claim 7, It is characterized in that Also includes: A regional tile division module, used for dividing the regional tiles using a geographic mapping tool before obtaining the regional tiles corresponding to the coordinates from the cache; Determine the index value of the region tile; Wherein, the geographic mapping tool includes: a network map, or a GIS.

9. The device according to claim 8, It is characterized in that The method of dividing the regional tiles by using a geographic mapping tool includes: Set up north-south and east-west division units; According to the geographic drawing tool, the region tiles are divided by the division units.

10. The device according to claim 8, It is characterized in that The determining of the index value of the regional tile includes: The coordinates of a vertex of the region tile are used as the index value of the region tile.

11. The device according to claim 10, It is characterized in that The regional tiles and corresponding index values ​​are stored in a Redis cache or a Memcached cache server; Site information uses the JSON data exchange format with a Map structure.

12. The device according to claim 11, It is characterized in that A regional tile contains: A site.

13. An electronic device for determining the site to which an order address belongs, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

14. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.