Region identification method and device
By performing binary encoding processing and thermal area calculation of the latitude and longitude coordinates of the target area, combined with the site selection strategy, the problem of high cost and low efficiency of traditional site selection methods is solved, efficient area identification and site selection is achieved, and multiple query needs are supported. Reduce site selection costs and improve efficiency.
Patent Information
- Application Number
- CN202111080088.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-09-15
AI Technical Summary
The traditional site selection method requires a lot of time and manpower to conduct research, resulting in high cost and low efficiency, making it difficult to quickly optimize area identification and site selection.
By performing binary encoding of the latitude and longitude coordinates of the target area, a geographical interval is formed, feature data is obtained from the preset storage unit, thermal areas are calculated, and store candidate addresses are determined in combination with site selection strategies, supporting a variety of query volume and accuracy requirements.
It realizes the ability to optimize area identification using online data, reduces site selection costs, improves efficiency, supports high-precision query to district and county level, simplifies user interaction, and provides support for offline channel expansion.
Smart Images

Figure CN113792107B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a region recognition method and device. Background Art
[0002] To some extent, the address determines the amount of customer flow, the size of customer purchasing power, the customer's consumption structure, the degree of attraction to potential customers, and the strength of competitiveness. Proper site selection will occupy the advantage of "geographical advantage", so site selection plays an important role in business operations. At present, enterprises in different industries select sites according to different site selection principles. For example, the catering industry generally chooses a location with convenient transportation and large traffic. The logistics industry selects a location based on transportation distance, transportation time, and radiation range. The above traditional site selection methods require a lot of time and manpower to conduct research in the early stage, which not only increases costs, but also has low efficiency. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a region identification method and device, which optimizes the region identification capability by using online data, improves the identification efficiency by converting the longitude and latitude coordinates of the target area into binary codes, and supports different query volumes and accuracies; after determining the thermal area, based on a preset site selection strategy, candidate store addresses can be determined from the thermal area, which provides strong support for offline channel expansion, does not require a lot of manpower and time for site selection research, reduces costs, and improves efficiency.
[0004] To achieve the above object, according to one aspect of an embodiment of the present invention, a region recognition method is provided, comprising:
[0005] Obtaining a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region;
[0006] Parsing the address information of the target area to obtain a plurality of target longitude and latitude coordinates of the target area, performing binary coding processing on the target longitude and latitude coordinates of the target area respectively, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographical interval by the plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;
[0007] Obtaining target feature data corresponding to the target statistical indicator within the geographic interval from a preset storage unit; the preset storage unit stores historical data in the form of a key-value pair, the historical data including a historical address and historical feature data, the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a key;
[0008] The target characteristic data is calculated, and a thermal region in the target region is determined based on the calculation result.
[0009] Optionally, the region identification request further includes a coding length;
[0010] The binary encoding processing is respectively performed on the target longitude and latitude coordinates of the target area, comprising: based on the encoding length, the binary encoding processing is respectively performed on the target longitude and latitude coordinates of the target area;
[0011] Calculating the target characteristic data and determining the thermal area in the target area based on the calculation results includes: determining a grid width and height corresponding to the coding length; gridding the target area based on the grid width and height; for each grid in the target area, calculating the target characteristic data in the grid, and determining the thermal area in the target area based on the calculation results.
[0012] Optionally, the region identification request further includes a thermal threshold;
[0013] Calculating the target characteristic data within the grid and determining the thermal area in the target area based on the calculation result includes: performing aggregation calculation on the target characteristic data within the grid to determine the thermal value of the grid; determining the grid whose thermal value is greater than or equal to the thermal threshold as the thermal area in the target area.
[0014] Optionally, the method also includes: obtaining store site selection conditions; wherein the store site selection conditions include one or more of the following: site selection target positioning requirements, a maximum distance from an intersection not greater than a distance threshold and within a preset area range; determining a grid that meets the site selection conditions from the thermal area, and using the location of the grid that meets the site selection conditions as a candidate address for the store.
[0015] Optionally, obtaining the region identification request includes: receiving a name and a target statistical indicator of the target region input by a user through the first interactive interface; and generating a region identification request based on the name and the target statistical indicator of the target region.
[0016] Optionally, obtaining an area identification request includes: receiving a target statistical indicator input by a user through a second interactive interface; in response to a user's area drawing operation on a map, determining multiple longitude and latitude coordinates of the area drawn by the user; and generating an area identification request based on the multiple longitude and latitude coordinates of the area drawn by the user and the target statistical indicator.
[0017] Optionally, the target statistical indicator includes multiple target categories, and the target characteristic data is target characteristic data of each target category;
[0018] The method further includes: determining a color corresponding to each target category;
[0019] For each grid in the target area, the target feature data in the grid is calculated, and the thermal area in the target area is determined based on the calculation result, including: for each grid in the target area, the target feature data of the target category in the grid is aggregated and calculated to determine the target category with the highest sales volume or total transaction amount in the grid; based on the color corresponding to the target category with the highest sales volume or total transaction amount, the grid is rendered, and the rendered grid is used as the thermal area.
[0020] To achieve the above object, according to another aspect of an embodiment of the present invention, a region identification device is provided, comprising:
[0021] An acquisition module, used to acquire a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region;
[0022] a transcoding module, for parsing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, performing binary encoding processing on the target longitude and latitude coordinates of the target area respectively, and determining a binary code corresponding to each target longitude and latitude coordinate; and a geographical interval composed of a plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;
[0023] A data query module, used to obtain target feature data corresponding to the target statistical indicator within the geographical interval from a preset storage unit; the preset storage unit stores historical data in the form of key-value pairs, the historical data includes a historical address and historical feature data, and the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a key;
[0024] The identification module is used to calculate the target characteristic data and determine the thermal area in the target area based on the calculation result.
[0025] Optionally, the region identification request further includes a coding length;
[0026] The transcoding module is further used to: perform binary encoding processing on the target latitude and longitude coordinates of the target area based on the encoding length;
[0027] The identification module is also used to: determine the grid width and height corresponding to the coding length; grid the target area based on the grid width and height; calculate the target feature data in the grid for each grid in the target area, and determine the thermal area in the target area based on the calculation result.
[0028] Optionally, the region identification request further includes a thermal threshold;
[0029] The identification module is also used to: perform aggregation calculation on the target feature data in the grid to determine the thermal value of the grid; and determine that the grid whose thermal value is greater than or equal to the thermal threshold is the thermal area in the target area.
[0030] Optionally, the device also includes a site selection module, which is used to: obtain store site selection conditions; wherein the store site selection conditions include one or more of the following: site selection target positioning requirements, a maximum distance from the intersection not greater than a distance threshold and within a preset area range; determine a grid that meets the site selection conditions from the thermal area, and use the location of the grid that meets the site selection conditions as a candidate address for the store.
[0031] Optionally, the acquisition module is further used to: receive the name and target statistical indicators of the target area input by the user through the first interactive interface; and generate an area identification request based on the name and target statistical indicators of the target area.
[0032] Optionally, the acquisition module is further used to: receive a target statistical indicator input by a user through a second interactive interface; in response to a user's area drawing operation on a map, determine a plurality of latitude and longitude coordinates of the area drawn by the user;
[0033] Based on the multiple latitude and longitude coordinates of the area drawn by the user and the target statistical indicators, an area identification request is generated.
[0034] Optionally, the target statistical indicator includes multiple target categories, and the target characteristic data is target characteristic data of each target category;
[0035] The device also includes a color determination module for determining a color corresponding to each target category;
[0036] The recognition module is also used to: for each grid in the target area, respectively aggregate the target feature data of the target category in the grid to determine the target category with the highest sales volume or total transaction amount in the grid; render the grid based on the color corresponding to the target category with the highest sales volume or total transaction amount, and use the rendered grid as the thermal area.
[0037] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the area recognition method of an embodiment of the present invention.
[0038] To achieve the above objective, according to one aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the region recognition method of the embodiment of the present invention is implemented.
[0039] An embodiment of the above invention has the following advantages or beneficial effects: by obtaining a region identification request, the region identification request includes the address information of the target region and the target statistical index; parsing the address information of the target region, obtaining multiple target longitude and latitude coordinates, and determining the binary code corresponding to each target longitude and latitude coordinate; forming a geographical interval by multiple binary codes corresponding to the multiple target longitude and latitude coordinates; obtaining target feature data corresponding to the target statistical index within the geographical interval from a preset storage unit; calculating the target feature data, and determining the technical means of the thermal area in the target region based on the calculation result, thereby realizing the optimization of region identification capability by using online data; by encoding the longitude and latitude coordinates of the target region Processing, obtain the corresponding binary code, the binary code constitutes a geographical interval, and then obtain the target feature data within the geographical interval. When encoding the longitude and latitude coordinates, different address code lengths can be selected according to different display needs, so as to adapt to various query volumes and accuracy requirements. It can support users to conduct high-precision queries to the community, and also support queries with slightly lower accuracy but coverage to the district and county level. Efficient user interactive queries can be achieved through address coding. After identifying the thermal area, combined with the site selection strategy, the candidate store address can be determined from the thermal area, which provides strong support for offline channel expansion. It does not need to spend a lot of manpower and time on research, reduces costs, and improves efficiency.
[0040] 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
[0041] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0042] Figure 1 is a schematic diagram of the main process of the region identification method according to an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of a target area of a region recognition method according to an embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of a target area of a region recognition method according to another embodiment of the present invention;
[0045] Figure 4 is a schematic diagram of main modules of a region identification device according to an embodiment of the present invention;
[0046] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0047] Figure 6 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
[0048] 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.
[0049] The region identification method of the embodiment of the present invention can identify the thermal region in the specified area (i.e., the target area), so that the regional distribution of relevant business data (such as sales data) can be observed. The method uses the stored online data and the user-defined thermal value calculation method to calculate the thermal value of the midpoint of the target area, and draws a thermal map based on the thermal value to identify the thermal region in the target area. In an optional embodiment, in the thermal map, the larger the thermal value, the darker the color. Figure 1 FIG. 1 is a flow chart of the main steps of the region identification method according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0050] Step S101: obtaining a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region;
[0051] Step S102: parsing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, performing binary coding processing on the target longitude and latitude coordinates of the target area respectively, determining a binary code corresponding to each target longitude and latitude coordinate; and forming a geographical interval by the plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;
[0052] Step S103: acquiring target feature data corresponding to the target statistical indicator within the geographic interval from a preset storage unit; the preset storage unit stores historical data in the form of a key-value pair, the historical data including a historical address and historical feature data, the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a key;
[0053] Step S104: Calculate the target characteristic data, and determine the thermal region in the target region based on the calculation result.
[0054] For step S101, the region identification request includes the address information of the target region and the target statistical index. The address information of the target region may be the name of the target region, such as XX city or Y county of XX city. In an embodiment of the present invention, the name of the target region may be the name of a province, city or county divided according to administrative regions, or the name of a region divided in other ways, such as the North China region and the Northeast region divided according to geography. In an optional embodiment, the address information of the target region may also be the latitude and longitude information of the target region.
[0055] The target statistical indicator is used to calculate the thermal value of the midpoint of the target area. In an optional embodiment, the thermal value of the midpoint of the target area can be calculated using online sales data. Therefore, the target statistical indicator can include target categories, historical sales periods, and business indicators. Business indicators can be sales volume, GMV (Gross Merchandise Volume, total transaction amount, including payment amount and unpaid amount), etc. It is worth noting that in actual applications, the granularity of the target category can be flexibly set, and can support multiple granularity configurations of multi-level categories and single items (sku).
[0056] In this embodiment, the region identification request defines the business requirement, that is, the sales distribution of the target item in the region that the user wants to view in the past period of time can be determined through the region identification request.
[0057] In an optional embodiment, a regional identification request can be obtained through the following process: receiving the name of the target area and the target statistical indicators input by the user through the first interactive interface; generating a regional identification request based on the name of the target area and the target statistical indicators. Specifically, the user can select or fill in the name of the area to be viewed through the visual interactive interface, such as xx district or xx county in xx city. The target category, historical sales period, and business indicator can also be selected through the visual interactive interface. For example, if the item category is electronic products, the historical sales period is 2020-2021, and the business indicator is sales volume.
[0058] In other optional embodiments, the area identification request can also be obtained through the following process: receiving the target statistical indicator input by the user through the second interactive interface; in response to the user's area drawing operation on the map, determining multiple longitude and latitude coordinates of the area drawn by the user; based on the multiple longitude and latitude coordinates of the area drawn by the user and the target statistical indicator, generating an area identification request. Specifically, the user can select or fill in the required target statistical indicator through the visual interactive interface. The user's area drawing operation on the map can be a polygonal area drawn by the user on the map (the polygonal area is defined by a series of coordinate point columns), or it can be a circular area drawn by selecting the center point and setting the coverage radius. The drawn polygonal area can be as follows: Figure 2As shown, the circular area drawn can be Figure 3 shown.
[0059] The method of the embodiment of the present invention supports multiple modes of selecting a target area, which is flexible and convenient.
[0060] For step S102, the embodiment of the present invention performs encoding processing by parsing the address information of the target area to obtain multiple target longitude and latitude coordinates of the target area. Encoding processing is performed for each target longitude and latitude coordinate, and a binary code corresponding to each target longitude and latitude coordinate is determined, and the binary code forms a geographical interval. The geographical interval limits the range of obtaining target feature data. In an optional embodiment, the area identification request also includes a coding length. When encoding the target longitude and latitude coordinates, the target longitude and latitude coordinates can be encoded based on the coding length to obtain a binary code with a length equal to the coding length. In this embodiment, the target area can be gridded, and the size of the grid can be determined according to the coding length. Furthermore, different address coding lengths can be selected for different display requirements, so as to adapt to a variety of query volumes and accuracy requirements, and can support users to perform high-precision queries to the cell level, and can also support queries with slightly lower precision but coverage to the county level. Efficient user interactive queries can be achieved through address coding. As a specific example, the target longitude and latitude coordinates of the target area can be Geohash encoded. Geohash encoding is an address encoding method that can encode two-dimensional spatial longitude and latitude data into a string. Geohash encoding has three steps: first, convert the longitude and latitude into binary; second, merge the longitude and latitude; and finally encode according to Base32. Base32 encoding is a scheme that uses 32 printable characters (letters A-Z and numbers 2-7) to encode any byte data. The encoded string is not case-sensitive and excludes easily confused characters, which can be easily used by humans and processed by computers.
[0061] An example of the Geohash encoding process is as follows:
[0062] For example, the latitude range of the point (39.923201, 116.390705) is (-90, 90), and its middle value is 0. For the latitude 39.923201, it is in the interval (0, 90), so a 1 is obtained; the middle value of the interval (0, 90) is 45 degrees, and the latitude 39.923201 is less than 45, so a 0 is obtained. By calculating in sequence, we can get the binary representation of the latitude, 10111000110001111001. Similarly, the binary representation of longitude 116.390705 is: 11010010110001000100, longitude occupies even digits, latitude occupies odd digits, and longitude and latitude are combined: 11100 11101 0010001111 00000 01101 01011 00001. According to Base32 encoding, 5 binary bits are converted into a base32 code to obtain the code: w64g0ec1.
[0063] In this embodiment, different code lengths correspond to grids of different sizes. The longer the code length, the smaller the range represented and the more accurate the position. The grid lengths corresponding to different code lengths are shown in Table 1 below:
[0064] Table 1:
[0065] Code length Grid Width Grid Height 1 5009.4km 4992.6km 2 1252.3km 624.1km 3 156.5km 156km 4 39.1km 19.5km 5 4.9km 4.9km 6 1.2km 609.4m 7 152.9m 152.4m 8 38.2m 19m 9 4.8m 4.8m 10 1.2m 59.5cm 11 14.9cm 14.9cm 12 3.7cm 1.9cm
[0066] For step S103, the historical data may be historical order data, the historical address may be a historical delivery address, and the historical feature data may be sales volume or GMV. To further improve the efficiency of regional identification, the historical order data may be processed and encoded in advance and stored in a storage unit such as a database, thereby improving the efficiency of data query. When encoding the historical order data, different encoding lengths may be set. The embodiment of the present invention processes and encodes a large amount of historical order data and stores it in a database, and supports efficient query through a specific encoding design. Specifically, the embodiment of the present invention uses the Geohash algorithm to grid the order and establish an index based on the latitude and longitude information of the delivery address carried by the historical order data, that is, to find a spatial curve that fills the entire surface of the earth within a specified accuracy range, and the index of each point is determined according to the order on the curve. The use of Geohash encoding allows encoding throughout the country to follow the same specification. At the same time, since different encoding lengths correspond to different accuracy, Geohash can support flexible retrieval of multiple accuracy. After the encoding is completed, aggregated data with Geohash grid as the smallest unit can be obtained, and the index corresponding to the grid is the Geohash code (binary code), and the smallest unit of storage and query is converted from the order granularity to the grid.
[0067] For step S104, parsing the area identification request can also obtain the coding length and thermal threshold. The coding length can be used to determine the width and height of the grid (see Table 1 above), and the target area can be gridded according to the width and height. After the target area is gridded, for each grid, the target feature data (sales volume or GMV) in the grid is aggregated, that is, the target feature data in the grid is summed to obtain the thermal value. Then, the grids with thermal values greater than the thermal threshold are used as the thermal areas of the target area. For thermal areas, different colors can be rendered according to the size of the thermal value.
[0068] The area identification method of the embodiment of the present invention obtains an area identification request, wherein the area identification request includes address information of a target area and target statistical indicators; parses the address information of the target area to obtain multiple target longitude and latitude coordinates, and determines a binary code corresponding to each target longitude and latitude coordinate; forms a geographical interval by multiple binary codes corresponding to the multiple target longitude and latitude coordinates; obtains target feature data corresponding to the target statistical indicators within the geographical interval from a preset storage unit; calculates the target feature data, and determines a technical means of a thermal area in the target area based on the calculation result, thereby realizing the optimization of area identification capability by using online data; obtains the target area by encoding the longitude and latitude coordinates of the target area. The corresponding binary code is obtained, and the binary code is used to form a geographical interval. Then, the target feature data within the geographical interval is obtained. When encoding the longitude and latitude coordinates, different address code lengths can be selected according to different display needs, so as to adapt to various query volumes and accuracy requirements. It can support users to conduct high-precision queries to the community, and also support queries with slightly lower precision but coverage to the district and county level. Efficient user interactive queries can be achieved through address coding. After identifying the thermal area, combined with the site selection strategy, the candidate store address can be determined from the thermal area, which provides strong support for offline channel expansion. It does not require a lot of manpower and time for research, reduces costs, and improves efficiency.
[0069] The embodiments of the present invention can flexibly adapt to various query volumes and accuracy requirements by encoding the delivery addresses of historical order data. For example, it can support users to conduct high-precision queries to the cell level, and can also support queries with slightly lower precision but coverage to the district and county level. Efficient user interactive queries can be achieved by using geohash codes of different lengths for calculations at the bottom layer.
[0070] After identifying the thermal area of the target area, the area identification method of the embodiment of the present invention can also perform site selection, such as selecting a candidate address that meets the requirements from the thermal area according to a specific site selection strategy. Specifically, the process may include:
[0071] Acquire store location conditions; wherein the store location conditions include one or more of the following: location target positioning requirements, a maximum distance from the intersection not greater than a distance threshold, and within a preset area range;
[0072] A grid that meets the site selection condition is determined from the thermal area, and the location of the grid that meets the site selection condition is used as a candidate address for the store.
[0073] Among them, the site selection target positioning requirements refer to the functional positioning of the store and the requirements for achieving this function. For example, the functional positioning of the store can be promotion and display, and the requirement for achieving this function is that the candidate address is in the business circle (the range of the business circle can be pre-set). The functional positioning of the store can also be zero, and the requirement for achieving this function can be that the candidate address is within the scope of the living community (the range of multiple living communities can be pre-set). For the condition that the maximum distance to the intersection is not greater than the distance threshold, since the store is to provide convenient services to the target user group, the store is selected at a location close to the intersection. For the condition of being within the preset area, it can be flexibly set according to the store size and cost.
[0074] The region identification method of the embodiment of the present invention can not only be used to identify hot areas for site selection, but also to recommend hot-selling products to offline stores. The specific process can be as follows:
[0075] Receive a target area identification request, which includes the address information of the target area, target statistical indicators and code length; wherein the target statistical indicators include multiple target categories, historical sales periods and business indicators. Business indicators may be sales volume, GMV, etc.;
[0076] Parsing the address information of the target area to obtain a plurality of target longitude and latitude coordinates of the target area; performing binary encoding processing on the target longitude and latitude coordinates of the target area based on the encoding length to determine a binary code corresponding to each target longitude and latitude coordinate; forming a geographical interval from the plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;
[0077] Obtaining target feature data corresponding to the target statistical indicator within the geographic interval from a preset storage unit; the preset storage unit stores historical data in the form of a key-value pair, the historical data including a historical address and historical feature data, the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a key;
[0078] Determining a grid width and height corresponding to the code length;
[0079] Based on the grid width and height, the target area is gridded;
[0080] Determine the color corresponding to each target category; wherein the color can be configured in advance for all categories, or the color of each target category can be customized through the interactive interface when the user defines the target area;
[0081] For each grid in the target area, aggregate and calculate the target feature data of the target category in the grid to determine the target category with the highest sales volume or total transaction amount in the grid;
[0082] The grid is rendered based on the color corresponding to the target category with the highest sales volume or total transaction amount, and the rendered grid is used as the thermal area.
[0083] This embodiment can determine the sales distribution of items of the target category in the target area, and can provide data support for store distribution and recommend hot-selling items.
[0084] The regional identification method of the embodiment of the present invention can not only use online accumulation to divert offline traffic and expand offline channels to achieve omni-channel layout, but also rely on the accumulation of fixed-point regional data to recommend hot-selling products to designated stores, help stores accurately select products and distribute goods, enable stores to have better sales, form a virtuous circle, and strengthen online and offline channel layout.
[0085] Figure 4 4 is a schematic diagram of main modules of a region identification device 400 according to an embodiment of the present invention.
[0086] like Figure 4 As shown, the region identification device 400 includes:
[0087] An acquisition module 401 is used to acquire a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region;
[0088] The transcoding module 402 is used to parse the address information of the target area, obtain multiple target longitude and latitude coordinates of the target area, perform binary encoding processing on the target longitude and latitude coordinates of the target area respectively, and determine the binary code corresponding to each target longitude and latitude coordinate; the geographical interval composed of the multiple binary codes corresponding to the multiple longitude and latitude coordinates;
[0089] The data query module 403 is used to obtain the target feature data corresponding to the target statistical indicator in the geographical interval from a preset storage unit; the preset storage unit stores historical data in the form of key-value pairs, the historical data includes a historical address and historical feature data, and the preset storage unit uses the binary code corresponding to the historical address as a key and the historical feature data as a key;
[0090] The identification module 404 is used to calculate the target characteristic data and determine the thermal area in the target area based on the calculation result.
[0091] Optionally, the region identification request further includes a coding length;
[0092] The transcoding module 402 is further used to: perform binary encoding processing on the target latitude and longitude coordinates of the target area based on the encoding length;
[0093] The identification module 404 is also used to: determine the grid width and height corresponding to the coding length; grid the target area based on the grid width and height; calculate the target feature data in the grid for each grid in the target area, and determine the thermal area in the target area based on the calculation result.
[0094] Optionally, the region identification request further includes a thermal threshold;
[0095] The identification module 404 is also used to: perform aggregation calculation on the target feature data in the grid to determine the thermal value of the grid; and determine the grid whose thermal value is greater than or equal to the thermal threshold as the thermal area in the target area.
[0096] Optionally, the device also includes a site selection module, which is used to: obtain store site selection conditions; wherein the store site selection conditions include one or more of the following: site selection target positioning requirements, a maximum distance from the intersection not greater than a distance threshold and within a preset area range; determine a grid that meets the site selection conditions from the thermal area, and use the location of the grid that meets the site selection conditions as a candidate address for the store.
[0097] Optionally, the acquisition module 401 is further used to: receive the name and target statistical indicators of the target area input by the user through the first interactive interface; and generate an area identification request based on the name and target statistical indicators of the target area.
[0098] Optionally, the acquisition module 401 is further used to: receive a target statistical indicator input by a user through a second interactive interface; in response to a user's region drawing operation on a map, determine a plurality of latitude and longitude coordinates of the region drawn by the user;
[0099] Based on the multiple latitude and longitude coordinates of the area drawn by the user and the target statistical indicators, an area identification request is generated.
[0100] Optionally, the target statistical indicator includes multiple target categories, and the target characteristic data is target characteristic data of each target category;
[0101] The device also includes a color determination module for determining a color corresponding to each target category;
[0102] The identification module 404 is also used to: for each grid in the target area, respectively aggregate the target feature data of the target category in the grid to determine the target category with the highest sales volume or total transaction amount in the grid; render the grid based on the color corresponding to the target category with the highest sales volume or total transaction amount, and use the rendered grid as the thermal area.
[0103] The area identification device of the embodiment of the present invention optimizes the area identification capability by using online data; by encoding the longitude and latitude coordinates of the target area, a corresponding binary code is obtained, a geographic interval is composed of the binary code, and then the target feature data within the geographic interval is obtained. When encoding the longitude and latitude coordinates, different address code lengths can be selected according to different display requirements, so as to adapt to various query volumes and accuracy requirements, and can support users to perform high-precision queries to the community, and can also support queries with slightly lower precision but coverage to the district and county level. Efficient user interactive queries can be achieved through address coding; after identifying the thermal area, combined with the site selection strategy, candidate store addresses can be determined from the thermal area, providing strong support for offline channel expansion, without spending a lot of manpower and time on research, reducing costs, and improving efficiency.
[0104] The above device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0105] Figure 5 An exemplary system architecture 500 is shown to which the region identification method or region identification apparatus according to the embodiment of the present invention can be applied.
[0106] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0107] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0108] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0109] The server 505 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. 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 and product information) to the terminal device.
[0110] It should be noted that the region identification method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the region identification device is generally disposed in the server 505 .
[0111] It should be understood that Figure 5 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.
[0112] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 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.
[0113] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0114] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0115] 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 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0116] 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.
[0117] 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.
[0118] 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 a limitation on the unit itself. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0119] 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:
[0120] Obtaining a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region;
[0121] Parsing the address information of the target area to obtain a plurality of target longitude and latitude coordinates of the target area, performing binary coding processing on the target longitude and latitude coordinates of the target area respectively, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographical interval by the plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;
[0122] Obtaining target feature data corresponding to the target statistical indicator within the geographic interval from a preset storage unit; the preset storage unit stores historical data in the form of a key-value pair, the historical data including a historical address and historical feature data, the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a key;
[0123] The target characteristic data is calculated, and a thermal region in the target region is determined based on the calculation result.
[0124] The technical solution of the embodiment of the present invention realizes the optimization of regional identification capability by using online data; by encoding the longitude and latitude coordinates of the target area, the corresponding binary code is obtained, the binary code is used to form a geographical interval, and then the target feature data within the geographical interval is obtained. When encoding the longitude and latitude coordinates, different address code lengths can be selected according to different display requirements, so as to adapt to various query volumes and accuracy requirements, and can support users to perform high-precision queries to the community, and can also support queries with slightly lower precision but coverage to the district and county level. Efficient user interactive queries can be achieved through address coding; after identifying the thermal area, combined with the site selection strategy, the candidate store addresses can be determined from the thermal area, which provides strong support for offline channel expansion, does not require a lot of manpower and time for research, reduces costs, and improves efficiency.
[0125] 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 region recognition method, characterized in that: include: Obtaining a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region; The region identification request also includes a code length; Parsing the address information of the target area to obtain a plurality of target longitude and latitude coordinates of the target area, performing binary encoding processing on the target longitude and latitude coordinates of the target area respectively, and determining a binary code corresponding to each target longitude and latitude coordinate; A geographical interval is formed by a plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates; Acquire target characteristic data corresponding to the target statistical indicator within the geographical interval from a preset storage unit; The preset storage unit stores historical data in the form of a key-value pair, the historical data including a historical address and historical feature data, the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a value; Calculating the target characteristic data, and determining a thermal region in the target region based on the calculation result; Calculating the target characteristic data and determining the thermal area in the target area based on the calculation results includes: determining a grid width and height corresponding to the coding length; gridding the target area based on the grid width and height; for each grid in the target area, calculating the target characteristic data in the grid, and determining the thermal area in the target area based on the calculation results.
2. The method according to claim 1, characterized in that: Performing binary encoding processing on the target longitude and latitude coordinates of the target area respectively includes: performing binary encoding processing on the target longitude and latitude coordinates of the target area respectively based on the encoding length.
3. The method according to claim 2, characterized in that The region identification request also includes a thermal threshold; Calculating the target characteristic data in the grid and determining the thermal region in the target region based on the calculation result includes: Performing aggregation calculation on target characteristic data in the grid to determine the thermal value of the grid; Determine that a grid whose thermal value is greater than or equal to the thermal threshold is a thermal area within the target area.
4. The method according to claim 3, characterized in that The method further comprises: Acquire store location conditions; wherein the store location conditions include one or more of the following: location target positioning requirements, a maximum distance from the intersection not greater than a distance threshold, and within a preset area range; A grid that meets the site selection condition is determined from the thermal area, and the location of the grid that meets the site selection condition is used as a candidate address for the store.
5. The method according to claim 1, characterized in that The Get Region Identification request includes: Receiving the name of the target area and the target statistical index input by the user through the first interactive interface; Based on the name of the target area and the target statistical indicator, a region identification request is generated.
6. The method according to claim 1, characterized in that The Get Region Identification request includes: Receiving target statistical indicators input by the user through the second interactive interface; In response to a user's area drawing operation on a map, determining a plurality of latitude and longitude coordinates of the area drawn by the user; Based on the multiple latitude and longitude coordinates of the area drawn by the user and the target statistical indicators, an area identification request is generated.
7. The method according to claim 2, characterized in that The target statistical indicators include multiple target categories, and the target characteristic data are target characteristic data of each target category; The method further includes: determining a color corresponding to each target category; For each grid in the target area, the target characteristic data in the grid is calculated, and the thermal area in the target area is determined based on the calculation result, including: For each grid in the target area, aggregate and calculate the target feature data of the target category in the grid to determine the target category with the highest sales volume or total transaction amount in the grid; The grid is rendered based on the color corresponding to the target category with the highest sales volume or total transaction amount, and the rendered grid is used as the thermal area.
8. A region recognition device, characterized in that: include: An acquisition module, used to acquire a region identification request, wherein the region identification request includes address information and target statistical indicators of a target region; The region identification request also includes a code length; A transcoding module, used for parsing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, performing binary encoding processing on the target longitude and latitude coordinates of the target area respectively, and determining a binary code corresponding to each target longitude and latitude coordinate; A geographical interval consisting of a plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates; A data query module, used for acquiring target characteristic data corresponding to the target statistical indicator within the geographical interval from a preset storage unit; The preset storage unit stores historical data in the form of a key-value pair, the historical data including a historical address and historical feature data, the preset storage unit uses a binary code corresponding to the historical address as a key and the historical feature data as a value; an identification module, configured to calculate the target characteristic data and determine a thermal region in the target region based on the calculation result; Calculating the target characteristic data and determining the thermal area in the target area based on the calculation results includes: determining a grid width and height corresponding to the coding length; gridding the target area based on the grid width and height; for each grid in the target area, calculating the target characteristic data in the grid, and determining the thermal area in the target area based on the calculation results.
9. An electronic device, 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 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
