Region identification method and device

文档序号:1963755 发布日期:2021-12-14 浏览:18次 中文

阅读说明:本技术 区域识别方法和装置 (Region identification method and device ) 是由 赵芮 蒋宁宁 康宁轩 李熠鑫 陈莹 祝捷 于 2021-09-15 设计创作,主要内容包括:本发明公开了一种区域识别方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括:获取区域识别请求,区域识别请求包括目标区域的地址信息和目标统计指标;解析目标区域的地址信息,获得多个目标经纬度坐标,确定与每一目标经纬度坐标对应的二进制码;由多个目标经纬度坐标对应的多个二进制码组成地理区间;从预设的存储单元中获取在地理区间内、与目标统计指标对应的目标特征数据;对目标特征数据进行计算,并基于计算结果确定目标区域中的热力区域。该实施方式利用线上数据优化区域识别能力,通过对目标区域的经纬度坐标转换成二进制码提高了识别效率,并支持不同的查询量和精度;结合选址策略,可为线下渠道拓展提供有力的支持。(The invention discloses a region identification method and device, and relates to the technical field of computers. One embodiment of the method comprises: acquiring a region identification request, wherein the region identification request comprises address information of a target region and a target statistical index; analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to a plurality of longitude and latitude coordinates of the target; acquiring target characteristic data corresponding to the target statistical index in a geographic interval from a preset storage unit; the target characteristic data is calculated, and a thermal area in the target area is determined based on the calculation result. The embodiment optimizes the area identification capability by using the online data, improves the identification efficiency by converting the longitude and latitude coordinates of the target area into binary codes, and supports different query quantity and precision; and by combining with an addressing strategy, powerful support can be provided for offline channel expansion.)

1. A method for identifying a region, comprising:

acquiring a region identification request, wherein the region identification request comprises address information of a target region and a target statistical index;

analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to the longitude and latitude coordinates of the plurality of targets;

acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

and calculating the target characteristic data, and determining a thermal area in the target area based on the calculation result.

2. The method of claim 1, wherein the region identification request further comprises a code length;

respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area comprises the following steps: respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area based on the coding length;

calculating the target characteristic data, and determining a thermal area in the target area based on the calculation result comprises:

determining a grid width and height corresponding to the encoding length;

based on the grid width and the height, carrying out gridding division on the target area;

and calculating target characteristic data in the grids aiming at each grid in the target area, and determining a thermal area in the target area based on the calculation result.

3. The method of claim 2, wherein the region identification request further comprises a thermal threshold;

calculating target characteristic data in the grid, and determining a thermal area in the target area based on the calculation result comprises:

performing aggregation calculation on target characteristic data in the grid, and determining a heat value of the grid;

and determining the grids with the thermal force values larger than or equal to the thermal threshold value as the thermal areas in the target area.

4. The method of claim 3, further comprising:

acquiring a store site selection condition; wherein the store site selection condition comprises one or more of the following: the positioning requirement of the site selection target, the maximum distance between the site selection target and the intersection are not more than a distance threshold and within a preset area range;

and determining grids meeting the addressing conditions from the thermal area, and taking the positions of the grids meeting the addressing conditions as candidate addresses of stores.

5. The method of claim 1, wherein obtaining the region-identifying request comprises:

receiving a name and a target statistical index of a target area input by a user through a first interactive interface;

and generating a region identification request based on the name of the target region and the target statistical index.

6. The method of claim 1, wherein obtaining the region-identifying request comprises:

receiving a target statistical index input by a user through a second interactive interface;

determining a plurality of longitude and latitude coordinates of a user-drawn area in response to a user area drawing operation on a map;

and generating a region identification request based on the plurality of longitude and latitude coordinates of the region drawn by the user and the target statistical index.

7. The method of claim 2, wherein the target statistical indicator comprises a plurality of target categories, and the target characteristic data is target characteristic data of each target category;

the method further comprises the following steps: determining a color corresponding to each target category;

for each grid in the target area, calculating target characteristic data in the grid, and determining a thermal area in the target area based on the calculation result comprises:

respectively carrying out aggregation calculation on target characteristic data of target categories in the grids aiming at each grid in the target area, and determining the target category with the highest sales volume or total volume of transaction in the grids;

rendering the grids based on the color corresponding to the target product class with the highest sales volume or total volume, and taking the rendered grids as thermal areas.

8. An area recognition apparatus, comprising:

the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a region identification request, and the region identification request comprises address information of a target region and a target statistical index;

the transcoding module is used for analyzing the address information of the target area, acquiring a plurality of target longitude and latitude coordinates of the target area, respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area, and determining a binary code corresponding to each target longitude and latitude coordinate; a geographic interval consisting of a plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;

the data query module is used for acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

and the identification module is used for calculating the target characteristic data and determining a thermal area in the target area based on the calculation result.

9. An electronic device, comprising:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.

10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.

Technical Field

The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for region identification.

Background

The address determines to some extent the amount of traffic, the purchasing power of the customer, the consumer structure of the customer, the attraction of potential customers, the competitiveness, and the like. The advantage of land utilization is occupied by proper site selection, so that site selection plays an important role in enterprise operation. At present, enterprises in different industries select sites according to different site selection principles. For example, the catering industry typically selects addresses where transportation is convenient and traffic is heavy. The logistics industry can select sites according to transportation distance, transportation time, radiation range and the like. The traditional site selection method needs to spend a large amount of time and manpower for investigation in the earlier stage, so that the cost is increased, and the efficiency is not high.

Disclosure of Invention

In view of this, embodiments of the present invention provide a method and an apparatus for area identification, which utilize online data to optimize area identification capability, improve identification efficiency by converting longitude and latitude coordinates of a target area into binary codes, and support different query volumes and accuracies; after the thermal area is determined, the candidate addresses of the stores can be determined from the thermal area based on a preset addressing strategy, powerful support is provided for off-line channel expansion, a large amount of manpower and time are not needed for researching and addressing, the cost is reduced, and the efficiency is improved.

To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a region identification method including:

acquiring a region identification request, wherein the region identification request comprises address information of a target region and a target statistical index;

analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to the longitude and latitude coordinates of the plurality of targets;

acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

and calculating the target characteristic data, and determining a thermal area in the target area based on the calculation result.

Optionally, the region identification request further includes a code length;

respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area comprises the following steps: respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area based on the coding length;

calculating the target characteristic data, and determining a thermal area in the target area based on the calculation result comprises: determining a grid width and height corresponding to the encoding length; based on the grid width and the height, carrying out gridding division on the target area; and calculating target characteristic data in the grids aiming at each grid in the target area, and determining a thermal area in the target area based on the calculation result.

Optionally, the region identification request further comprises a thermal threshold;

calculating target characteristic data in the grid, and determining a thermal area in the target area based on the calculation result comprises: performing aggregation calculation on target characteristic data in the grid, and determining a heat value of the grid; and determining the grids with the thermal force values larger than or equal to the thermal threshold value as the thermal areas in the target area.

Optionally, the method further comprises: acquiring a store site selection condition; wherein the store site selection condition comprises one or more of the following: the positioning requirement of the site selection target, the maximum distance between the site selection target and the intersection are not more than a distance threshold and within a preset area range; and determining grids meeting the addressing conditions from the thermal area, and taking the positions of the grids meeting the addressing conditions as candidate addresses of stores.

Optionally, the obtaining the area identification request includes: receiving a name and a target statistical index of a target area input by a user through a first interactive interface; and generating a region identification request based on the name of the target region and the target statistical index.

Optionally, the obtaining the area identification request includes: receiving a target statistical index input by a user through a second interactive interface; determining a plurality of longitude and latitude coordinates of a user-drawn area in response to a user area drawing operation on a map; and generating a region identification request based on the plurality of longitude and latitude coordinates of the region drawn by the user and the target statistical index.

Optionally, the target statistical index includes a plurality of target categories, and the target characteristic data is target characteristic data of each target category;

the method further comprises the following steps: determining a color corresponding to each target category;

for each grid in the target area, calculating target characteristic data in the grid, and determining a thermal area in the target area based on the calculation result comprises: respectively carrying out aggregation calculation on target characteristic data of target categories in the grids aiming at each grid in the target area, and determining the target category with the highest sales volume or total volume of transaction in the grids; rendering the grids based on the color corresponding to the target product class with the highest sales volume or total volume, and taking the rendered grids as thermal areas.

To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an area recognition apparatus including:

the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a region identification request, and the region identification request comprises address information of a target region and a target statistical index;

the transcoding module is used for analyzing the address information of the target area, acquiring a plurality of target longitude and latitude coordinates of the target area, respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area, and determining a binary code corresponding to each target longitude and latitude coordinate; a geographic interval consisting of a plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;

the data query module is used for acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

and the identification module is used for calculating the target characteristic data and determining a thermal area in the target area based on the calculation result.

Optionally, the region identification request further includes a code length;

the transcoding module is further configured to: respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area based on the coding length;

the identification module is further configured to: determining a grid width and height corresponding to the encoding length; based on the grid width and the height, carrying out gridding division on the target area; and calculating target characteristic data in the grids aiming at each grid in the target area, and determining a thermal area in the target area based on the calculation result.

Optionally, the region identification request further comprises a thermal threshold;

the identification module is further configured to: performing aggregation calculation on target characteristic data in the grid, and determining a heat value of the grid; and determining the grids with the thermal force values larger than or equal to the thermal threshold value as the thermal areas in the target area.

Optionally, the apparatus further includes an addressing module, configured to: acquiring a store site selection condition; wherein the store site selection condition comprises one or more of the following: the positioning requirement of the site selection target, the maximum distance between the site selection target and the intersection are not more than a distance threshold and within a preset area range; and determining grids meeting the addressing conditions from the thermal area, and taking the positions of the grids meeting the addressing conditions as candidate addresses of stores.

Optionally, the obtaining module is further configured to: receiving a name and a target statistical index of a target area input by a user through a first interactive interface; and generating a region identification request based on the name of the target region and the target statistical index.

Optionally, the obtaining module is further configured to: receiving a target statistical index input by a user through a second interactive interface; determining a plurality of longitude and latitude coordinates of a user-drawn area in response to a user area drawing operation on a map;

and generating a region identification request based on the plurality of longitude and latitude coordinates of the region drawn by the user and the target statistical index.

Optionally, the target statistical index includes a plurality of target categories, and the target characteristic data is target characteristic data of each target category;

the apparatus also includes a color determination module for determining a color corresponding to each target category;

the identification module is further configured to: respectively carrying out aggregation calculation on target characteristic data of target categories in the grids aiming at each grid in the target area, and determining the target category with the highest sales volume or total volume of transaction in the grids; rendering the grids based on the color corresponding to the target product class with the highest sales volume or total volume, and taking the rendered grids as thermal areas.

To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the area identification method according to the embodiment of the present invention.

To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program implementing the area identification method of an embodiment of the present invention when executed by a processor.

One embodiment of the above invention has the following advantages or benefits: acquiring a region identification request, wherein the region identification request comprises address information of a target region and a target statistical index; analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to a plurality of longitude and latitude coordinates of the target; acquiring target characteristic data corresponding to the target statistical index in a geographic interval from a preset storage unit; the technical means of calculating the target characteristic data and determining the thermal area in the target area based on the calculation result realizes the identification capability of optimizing the area by utilizing the on-line data; the longitude and latitude coordinates of a target area are encoded to obtain corresponding binary codes, a geographic interval is formed by the binary codes, target characteristic data in the geographic interval are then obtained, different address coding lengths can be selected according to different display requirements when the longitude and latitude coordinates are encoded, so that the method is suitable for various query quantity and accuracy requirements, a user can be supported to query from high precision to a cell, the query from a coverage range to a county level can be supported, and efficient user interactive query can be realized through the address coding; after the thermal area is identified, the candidate addresses of the stores can be determined from the thermal area by combining an addressing strategy, powerful support is provided for offline channel expansion, a large amount of manpower and time are not needed for research, the cost is reduced, and the efficiency is improved.

Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.

Drawings

The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:

fig. 1 is a schematic view of a main flow of a region identification method according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a target area of the area identification method according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of a target area of a method for area identification according to another embodiment of the present invention;

FIG. 4 is a schematic diagram of the main modules of the area recognition apparatus according to the embodiment of the present invention;

FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;

fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.

Detailed Description

Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

The area identification method of the embodiment of the invention can identify the thermal area in the designated area (namely the target area), thereby observing the regional distribution of the related service data (such as sales data). The method calculates the thermal value of the midpoint of the target area by using the stored on-line data and a user-defined thermal value calculation mode, and draws a thermodynamic diagram according to the thermal value, thereby identifying the thermal area in the target area. In an alternative embodiment, the greater the thermodynamic value, the darker the color in the thermodynamic diagram. Fig. 1 is a flowchart illustrating main steps of a region identification method according to an embodiment of the present invention. As shown in fig. 1, the method includes:

step S101: acquiring a region identification request, wherein the region identification request comprises address information of a target region and a target statistical index;

step S102: analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to the longitude and latitude coordinates of the plurality of targets;

step S103: acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

step S104: and calculating the target characteristic data, and determining a thermal area in the target area based on the calculation result.

For step S101, the area identification request includes address information of the target area and the target statistical index. Wherein the address information of the target area may be a name of the target area, such as XX city or XX city Y county. In the embodiment of the present invention, the name of the target area may be a name of a province, a city and a county divided according to an administrative area, or may be a name of an area divided according to other manners, such as a northward area and a northeast area divided according to geography. In an alternative embodiment, the address information of the target area may also be longitude and latitude information of the target area.

The target statistical index is used for calculating the thermal value of the point in the target area. In an alternative embodiment, the on-line sales data may be used to calculate the thermal value of the point in the target area, and thus the target statistical indicators may include target categories, historical sales periods, and business indicators. The business index may be sales volume, GMV (gross merchandisevvolume, total amount of transaction, including amount of payment and amount of unpaid), and the like. It is worth to be noted that, in practical application, the granularity of the target class can be flexibly set, and multiple granularity configurations of multiple classes and a single item (sku) can be supported.

In the embodiment, the area identification request defines the business requirement, that is, the sales distribution of the target item in the past period of time in the area that the user desires to view can be determined through the area identification request.

In an alternative embodiment, the area identification request may be obtained by the following process: receiving a name and a target statistical index of a target area input by a user through a first interactive interface; and generating a region identification request based on the name of the target region and the target statistical index. Specifically, the user can select or fill in the name of the region to be viewed through the visual interactive interface, such as xx city xx area or xx county. Target categories, historical sale time periods and business indexes can be selected through the visual interactive interface, for example, electronic products are selected according to the categories of the items, the historical sale time periods are 2020 to 2021, and the business indexes are sales volumes.

In other alternative embodiments, the area identification request may also be obtained by the following process: receiving a target statistical index input by a user through a second interactive interface; determining a plurality of longitude and latitude coordinates of a user-drawn area in response to a user area drawing operation on a map; and generating a region identification request based on the plurality of longitude and latitude coordinates of the region drawn by the user and the target statistical index. Specifically, the user may select or fill in the required target statistical index through the visual interactive interface. The user's region drawing operation on the map may be a user drawing a polygonal region (the polygonal region being defined by a series of coordinate point columns) on the map, or a circular region by selecting a center point and setting a coverage radius. The drawn polygonal area may be as shown in fig. 2 and the drawn circular area may be as shown in fig. 3.

The method of the embodiment of the invention supports various modes of selecting the target area, and is flexible and convenient.

For step S102, the embodiment of the present invention performs encoding processing by analyzing the address information of the target area, and obtains a plurality of target longitude and latitude coordinates of the target area. And coding each target longitude and latitude coordinate, determining a binary code corresponding to each target longitude and latitude coordinate, and forming a geographic interval by the binary codes. The geographical region defines a range for acquiring the target feature data. In an alternative embodiment, the region identification request further includes a code length. When encoding the target longitude and latitude coordinates, the target longitude and latitude coordinates may be encoded based on the encoding length to obtain a binary code having a length equal to the encoding length. In this embodiment, the target area may be divided into grids, and the size of the grid may be determined according to the encoding length. Furthermore, different address coding lengths can be selected according to different display requirements, so that the method is suitable for various query volumes and accuracy requirements, not only can support a user to perform query from high precision to a cell, but also can support query from coverage to county level with slightly low precision, and can realize efficient user interactive query through address coding. As a specific example, the target longitude and latitude coordinates of the target area may be Geohash encoded. The Geohash coding is an address coding method, and can code two-dimensional space longitude and latitude data into a character string. The Geohash coding has three steps in total: firstly, converting the longitude and latitude into a binary system; secondly, merging the longitude and latitude; and finally coding according to Base 32. The Base32 code is a scheme for coding any byte data using 32 printable characters (letters a-Z and numbers 2-7), and the coded character string is not case-specific and excludes characters which are easy to be confused, and can be conveniently used by people and processed by a computer.

The Geohash encoding process is exemplified as follows:

for example, the latitude of point (39.923201,116.390705) is (-90, 90), with an intermediate value of 0. For latitude 39.923201, in the interval (0, 90), thus a 1 is obtained; the median value of the interval (0, 90) is 45 degrees, the latitude 39.923201 is less than 45, so a 0 is obtained, and the calculation is carried out sequentially, so that the binary representation of the latitude 10111000110001111001 can be obtained. The same may result in a binary representation of longitude 116.390705 as: 11010010110001000100, longitude takes even number, latitude takes odd number, and longitude and latitude are combined: 1110011101001000111100000011010101100001. coding according to Base32, converting 5 binary bits into a Base32 code to obtain a code: w64g0ec 1.

In this embodiment, different coding lengths correspond to meshes of different sizes, and the longer the coding length is, the smaller the represented range is, and the more accurate the position is. The lengths of the grids corresponding to different code lengths are shown in table 1 below:

table 1:

code length Grid width Height of grid
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

For step S103, the historical data may be historical order data, the historical address may be a historical shipping address, and the historical characteristic data may be sales volume or GMV. In order to further improve the area identification efficiency, historical order data can be processed and coded in advance and stored in a storage unit such as a database, so that the data query efficiency is improved. When encoding the historical order data, different encoding lengths may be set. The embodiment of the invention processes and codes mass historical order data and stores the data in the database, and supports efficient query through specific coding design. Specifically, according to longitude and latitude information of a receiving place carried by historical order data, a Geohash algorithm is adopted to grid the order and establish an index, namely a space curve is searched, the whole earth surface is filled in a specified precision range, and the index is determined according to the sequence of each point on the curve. The Geohash codes are adopted, so that the codes all over the country conform to the same standard, and meanwhile, the Geohash can support flexible retrieval of various precisions due to the fact that different code lengths correspond to different precisions. And after the encoding is finished, aggregated data with the Geohash grid as the minimum unit can be obtained, the corresponding index of the grid is the Geohash code (binary code), and the minimum unit of storage and query is converted into the grid from the order granularity.

For step S104, parsing the region identification request may also result in an encoding length and a thermal threshold. The width and height of the grid (see table 1 above) can be determined by the coding length, and the target area can be gridded and divided according to the width and height. After the target area is gridded and divided, aiming at each grid, carrying out aggregation calculation on target characteristic data (sales volume or GMV) in the grid, namely carrying out summation calculation on the target characteristic data in the grid to obtain a heat value. Then, the grid with the thermal value larger than the thermal threshold value is used as the thermal area of the target area. For the thermal area, different colors can be rendered according to the magnitude of the thermal value.

According to the area identification method, an area identification request is obtained, and the area identification request comprises address information of a target area and a target statistical index; analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to a plurality of longitude and latitude coordinates of the target; acquiring target characteristic data corresponding to the target statistical index in a geographic interval from a preset storage unit; the technical means of calculating the target characteristic data and determining the thermal area in the target area based on the calculation result realizes the identification capability of optimizing the area by utilizing the on-line data; the longitude and latitude coordinates of a target area are encoded to obtain corresponding binary codes, a geographic interval is formed by the binary codes, target characteristic data in the geographic interval are then obtained, different address coding lengths can be selected according to different display requirements when the longitude and latitude coordinates are encoded, so that the method is suitable for various query quantity and accuracy requirements, a user can be supported to query from high precision to a cell, the query from a coverage range to a county level can be supported, and efficient user interactive query can be realized through the address coding; after the thermal area is identified, the candidate addresses of the stores can be determined from the thermal area by combining an addressing strategy, powerful support is provided for offline channel expansion, a large amount of manpower and time are not needed for research, the cost is reduced, and the efficiency is improved.

The embodiment of the invention can flexibly adapt to various query quantity and accuracy requirements by coding the receiving address of historical order data, for example, not only can support the query from high precision to a cell, but also can support the query from slightly lower precision but from coverage to county level, and can realize efficient user interactive query by adopting different lengths of geohash codes at the bottom layer for operation.

After the thermal area of the target area is identified, the area identification method of the embodiment of the present invention may further perform address selection, for example, select a candidate address meeting requirements from the thermal area according to a specific address selection policy, and specifically, the process may include:

acquiring a store site selection condition; wherein the store site selection condition comprises one or more of the following: the positioning requirement of the site selection target, the maximum distance between the site selection target and the intersection are not more than a distance threshold and within a preset area range;

and determining grids meeting the addressing conditions from the thermal area, and taking the positions of the grids meeting the addressing conditions as candidate addresses of stores.

The location target positioning requirement refers to functional positioning of a store and a requirement for achieving the function, for example, the functional positioning of the store can be a promotion display, and the requirement for achieving the function is that a candidate address is in a business circle (the range of the business circle can be preset). The function location of the store can also be zero, and the requirement for achieving the function can be that the candidate address is within the range of the living communities (the range of a plurality of living communities can be preset). For the condition that the maximum distance from the intersection is not greater than the distance threshold, the store is selected to be a position closer to the intersection because the store is to provide a convenient service to the target user group. The condition within the preset area range can be flexibly set according to the size and the cost of the store.

The area identification method provided by the embodiment of the invention can be used for identifying the thermal area to select the address and recommending hot-sold commodities to an offline store. The specific process can be as follows:

receiving a target area identification request, wherein the target area identification request comprises address information, target statistical indexes and coding length of a target area; the target statistical indexes comprise a plurality of target categories, historical sales periods and business indexes. The service index can be sales volume, GMV, etc.;

analyzing the address information of the target area to obtain a plurality of target longitude and latitude coordinates of the target area; respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area based on the coding length, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to the longitude and latitude coordinates of the plurality of targets;

acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

determining a grid width and height corresponding to the encoding length;

based on the grid width and the height, carrying out gridding division on the target area;

determining a color corresponding to each target category; the method comprises the following steps that color configuration can be carried out on all categories in advance, and the colors of all target categories can be customized through an interactive interface when a user defines a target area;

respectively carrying out aggregation calculation on target characteristic data of target categories in the grids aiming at each grid in the target area, and determining the target category with the highest sales volume or total volume of transaction in the grids;

rendering the grids based on the color corresponding to the target product class with the highest sales volume or total volume, and taking the rendered grids as thermal areas.

The method and the device can determine the sales distribution condition of the target articles in the target area, and can provide data support for store cloth and recommend hot-sell commodities.

The area identification method provided by the embodiment of the invention can utilize on-line accumulation to drain down the line and expand off-line channels to realize the full-channel layout, and can also recommend hot-sold commodities to a specified store by relying on fixed-point area data accumulation, help the store to accurately select goods and distribute goods, enable the store to have better movement, form virtuous circle and strengthen the on-line off-line channel layout.

Fig. 4 is a schematic diagram of main blocks of an area recognition apparatus 400 according to an embodiment of the present invention.

As shown in fig. 4, the area recognition apparatus 400 includes:

an obtaining module 401, configured to obtain a region identification request, where the region identification request includes address information of a target region and a target statistical indicator;

a transcoding module 402, configured to analyze address information of the target area, obtain a plurality of target longitude and latitude coordinates of the target area, perform binary coding processing on the target longitude and latitude coordinates of the target area, and determine a binary code corresponding to each target longitude and latitude coordinate; a geographic interval consisting of a plurality of binary codes corresponding to the plurality of target longitude and latitude coordinates;

a data query module 403, configured to obtain, from a preset storage unit, target feature data corresponding to the target statistical indicator in the geographic interval; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

an identification module 404, configured to calculate the target feature data and determine a thermal area in the target area based on a calculation result.

Optionally, the region identification request further includes a code length;

the transcoding module 402 is further configured to: respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area based on the coding length;

the identification module 404 is further configured to: determining a grid width and height corresponding to the encoding length; based on the grid width and the height, carrying out gridding division on the target area; and calculating target characteristic data in the grids aiming at each grid in the target area, and determining a thermal area in the target area based on the calculation result.

Optionally, the region identification request further comprises a thermal threshold;

the identification module 404 is further configured to: performing aggregation calculation on target characteristic data in the grid, and determining a heat value of the grid; and determining the grids with the thermal force values larger than or equal to the thermal threshold value as the thermal areas in the target area.

Optionally, the apparatus further includes an addressing module, configured to: acquiring a store site selection condition; wherein the store site selection condition comprises one or more of the following: the positioning requirement of the site selection target, the maximum distance between the site selection target and the intersection are not more than a distance threshold and within a preset area range; and determining grids meeting the addressing conditions from the thermal area, and taking the positions of the grids meeting the addressing conditions as candidate addresses of stores.

Optionally, the obtaining module 401 is further configured to: receiving a name and a target statistical index of a target area input by a user through a first interactive interface; and generating a region identification request based on the name of the target region and the target statistical index.

Optionally, the obtaining module 401 is further configured to: receiving a target statistical index input by a user through a second interactive interface; determining a plurality of longitude and latitude coordinates of a user-drawn area in response to a user area drawing operation on a map;

and generating a region identification request based on the plurality of longitude and latitude coordinates of the region drawn by the user and the target statistical index.

Optionally, the target statistical index includes a plurality of target categories, and the target characteristic data is target characteristic data of each target category;

the apparatus also includes a color determination module for determining a color corresponding to each target category;

the identification module 404 is further configured to: respectively carrying out aggregation calculation on target characteristic data of target categories in the grids aiming at each grid in the target area, and determining the target category with the highest sales volume or total volume of transaction in the grids; rendering the grids based on the color corresponding to the target product class with the highest sales volume or total volume, and taking the rendered grids as thermal areas.

The area identification device of the embodiment of the invention optimizes the area identification capability by using the online data; the longitude and latitude coordinates of a target area are encoded to obtain corresponding binary codes, a geographic interval is formed by the binary codes, target characteristic data in the geographic interval are then obtained, different address coding lengths can be selected according to different display requirements when the longitude and latitude coordinates are encoded, so that the method is suitable for various query quantity and accuracy requirements, a user can be supported to query from high precision to a cell, the query from a coverage range to a county level can be supported, and efficient user interactive query can be realized through the address coding; after the thermal area is identified, the candidate addresses of the stores can be determined from the thermal area by combining an addressing strategy, powerful support is provided for offline channel expansion, a large amount of manpower and time are not needed for research, the cost is reduced, and the efficiency is improved.

The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.

Fig. 5 illustrates an exemplary system architecture 500 to which the area identification method or the area identification apparatus of the embodiments of the present invention may be applied.

As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.

The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.

The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.

The server 505 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.

It should be noted that the area identification method provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the area identification apparatus is generally disposed in the server 505.

It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.

Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.

As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that 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 section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.

The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 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, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.

In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.

It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not in some cases constitute a limitation on the unit itself, and for example, the sending module may also be described as a "module that sends a picture acquisition request to a connected server".

As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:

acquiring a region identification request, wherein the region identification request comprises address information of a target region and a target statistical index;

analyzing the address information of the target area, obtaining a plurality of target longitude and latitude coordinates of the target area, respectively carrying out binary coding processing on the target longitude and latitude coordinates of the target area, and determining a binary code corresponding to each target longitude and latitude coordinate; forming a geographic interval by a plurality of binary codes corresponding to the longitude and latitude coordinates of the plurality of targets;

acquiring target characteristic data corresponding to the target statistical index in the geographic interval from a preset storage unit; the preset storage unit stores historical data in a key-value pair mode, the historical data comprises historical addresses and historical characteristic data, the binary codes corresponding to the historical addresses are used as keys in the preset storage unit, and the historical characteristic data are used as keys in the preset storage unit;

and calculating the target characteristic data, and determining a thermal area in the target area based on the calculation result.

According to the technical scheme of the embodiment of the invention, the identification capability of the area is optimized by utilizing the online data; the longitude and latitude coordinates of a target area are encoded to obtain corresponding binary codes, a geographic interval is formed by the binary codes, target characteristic data in the geographic interval are then obtained, different address coding lengths can be selected according to different display requirements when the longitude and latitude coordinates are encoded, so that the method is suitable for various query quantity and accuracy requirements, a user can be supported to query from high precision to a cell, the query from a coverage range to a county level can be supported, and efficient user interactive query can be realized through the address coding; after the thermal area is identified, the candidate addresses of the stores can be determined from the thermal area by combining an addressing strategy, powerful support is provided for offline channel expansion, a large amount of manpower and time are not needed for research, the cost is reduced, and the efficiency is improved.

The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:路径规划方法、路径规划系统、机器人及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!