Electronic fence generation method and device, equipment, storage medium and program product

By aggregating and processing the location information of electronic fences at outlets, electronic fences at the transfer center are automatically generated, which solves the problems of manual drawing errors and untimely updates, improves the real-time and accuracy of electronic fences, and thereby improves the efficiency and accuracy of logistics distribution. .

CN118803564APending Publication Date: 2024-10-18SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410859749.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, generating electronic fences for transfer centers and management areas requires manual maintenance and drawing, and there are drawing errors. Moreover, when the electronic fences at outlets change, they cannot be updated in time, resulting in low real-time performance of the electronic fences.

Method used

By obtaining the fence position information of multiple network electronic fences associated with the target transfer center, aggregating them to form a polygon set to be fused, performing expansion, fusion and contraction processing, and automatically generating the electronic fence of the transfer center, improving the real-time performance and accuracy of the electronic fence.

Benefits of technology

It realizes the automatic, accurate and efficient generation of electronic fences for the transfer center based on the electronic fences of the outlets, which improves the efficiency and accuracy of logistics distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803564A_ABST
    Figure CN118803564A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic fence generation method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring fence position information corresponding to a plurality of branch electronic fences associated with a target transfer center; obtaining a to-be-fused polygon set based on aggregation of the multiple pieces of fence position information, performing expansion fusion on the multiple to-be-fused polygons according to a first expansion parameter to obtain a to-be-processed polygon set, and determining a to-be-contracted polygon set and a target expansion parameter based on a preset fusion threshold value and the to-be-processed polygon set; determining a target shrinkage parameter based on the target expansion parameter, and shrinking each polygon to be shrunk in the polygon set to be shrunk according to the target shrinkage parameter to obtain a target polygon set; and determining at least one transfer center electronic fence corresponding to the target transfer center based on the target polygon set. According to the technical scheme, the effect of automatically, accurately and efficiently generating the corresponding transfer center electronic fence based on the branch electronic fence is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an electronic fence generation method, device, equipment, storage medium and program product. Background Art

[0002] Geographic Information System (GIS) is a computer system used to capture, store, manage, analyze and display geographic spatial data. The application of GIS technology in the express delivery industry is becoming more and more extensive, resulting in an increasing reliance on geospatial data. Among them, geographic electronic fences are areas composed of polygons, which are used to divide the scope and boundaries of different areas. In the express delivery industry, geographic electronic fences are used to identify outlets, delivery areas, and collection areas, etc., to help express delivery companies carry out fast and accurate logistics distribution.

[0003] In the related art, the generation of electronic fences of the transfer center and the management area requires manual maintenance and drawing, and is manually drawn according to the electronic fences of the network points. However, when generating electronic fences based on the above method, there may be drawing errors caused by manual work, or when the electronic fences of the network points change, the electronic fences of the transfer center and the management area cannot be updated in time, that is, the real-time performance of the electronic fence is not high. Summary of the invention

[0004] The present invention provides an electronic fence generation method, device, equipment, storage medium and program product to achieve the effect of automatically, accurately and efficiently generating a corresponding transfer center electronic fence based on a network point electronic fence, and improve the real-time and accuracy of the electronic fence. Furthermore, by applying the generated transfer center electronic fence, the distribution efficiency and distribution accuracy of logistics are improved.

[0005] According to one aspect of the present invention, a method for generating an electronic fence is provided, the method comprising:

[0006] Obtain fence location information of multiple network point electronic fences associated with the target transfer center;

[0007] A polygon set to be fused is obtained based on the aggregation of fence position information corresponding to the multiple network point electronic fences, wherein the polygon set to be fused is a set of multi-polygon types composed of multiple polygons to be fused;

[0008] Perform expansion and fusion processing on each of the polygons to be fused according to a preset first expansion parameter to obtain a polygon set to be processed, and determine a polygon set to be shrunk and a target expansion parameter based on a preset fusion threshold and the polygon set to be processed; wherein the number of polygons to be shrunk included in the polygon set to be shrunk is less than the number of polygons to be fused included in the polygon set to be fused; and the number of polygons to be shrunk included in the polygon set to be shrunk is not greater than the preset fusion threshold;

[0009] Determine a target shrinkage parameter based on the target expansion parameter, and perform shrinkage processing on each of the to-be-shrinked polygons in the to-be-shrinked polygon set according to the target shrinkage parameter to obtain a target polygon set;

[0010] At least one transfer center electronic fence corresponding to the target transfer center is determined based on the target polygon set.

[0011] According to another aspect of the present invention, there is provided an electronic fence generation device, the device comprising:

[0012] A location information acquisition module, used to acquire fence location information of multiple network point electronic fences associated with a target transfer center;

[0013] A location information aggregation module, used for aggregating the fence location information corresponding to the multiple network point electronic fences to obtain a set of polygons to be merged, wherein the set of polygons to be merged is a set of multi-polygon types composed of multiple polygons to be merged;

[0014] A polygon expansion module, used for performing expansion and fusion processing on each of the to-be-fused polygons according to a preset first expansion parameter to obtain a to-be-processed polygon set, and determining a to-be-contracted polygon set and a target expansion parameter based on a preset fusion threshold and the to-be-processed polygon set; wherein the number of to-be-contracted polygons included in the to-be-contracted polygon set is less than the number of to-be-contracted polygons included in the to-be-fused polygon set; and the number of to-be-contracted polygons included in the to-be-contracted polygon set is not greater than the preset fusion threshold;

[0015] A polygon contraction module, used for determining a target contraction parameter based on the target expansion parameter, and performing contraction processing on each of the to-be-contracted polygons in the to-be-contracted polygon set according to the target contraction parameter, to obtain a target polygon set;

[0016] The electronic fence determination module is used to determine at least one transfer center electronic fence corresponding to the target transfer center based on the target polygon set.

[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the electronic fence generation method described in any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the electronic fence generation method described in any embodiment of the present invention when executed.

[0022] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the electronic fence generation method described in any embodiment of the present invention is implemented.

[0023] The technical solution of the embodiment of the present invention obtains fence position information corresponding to multiple network point electronic fences associated with the target transfer center, and then obtains a set of polygons to be fused based on the fence position information corresponding to the multiple network point electronic fences, wherein the set of polygons to be fused is a set of multi-polygon types composed of multiple polygons to be fused, and then, expands and fuses the multiple polygons to be fused according to a preset first expansion parameter to obtain a set of polygons to be processed, and determines a set of polygons to be shrunk and a target expansion parameter based on a preset fusion threshold and the set of polygons to be processed, and then determines a target shrinkage parameter based on the target expansion parameter, and respectively processes the polygons to be shrunk according to the target shrinkage parameter. Each of the polygons to be shrunk in the set is shrunk to obtain a target polygon set, and then at least one transfer center electronic fence corresponding to the target transfer center is determined based on the target polygon set, thereby solving the problem of manual drawing errors in the related art when manually drawing electronic fences, or the inability to timely update the electronic fences of the transfer center and the management area when the electronic fences of the outlets change, and achieving the effect of automatically, accurately and efficiently generating the corresponding transfer center electronic fences based on the outlet electronic fences, and improving the real-time and accuracy of the electronic fences. Furthermore, by applying the generated transfer center electronic fences, the logistics distribution efficiency and distribution accuracy are improved.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 is a flow chart of a method for generating an electronic fence according to Embodiment 1 of the present invention;

[0027] Figure 2 is a structural schematic diagram of an electronic fence generating device provided according to Embodiment 2 of the present invention;

[0028] Figure 3 It is a schematic diagram of the structure of an electronic device for implementing the electronic fence generation method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Before introducing the present technical solution, the application scenario can be explained first. The technical solution can be applied to any scenario that requires the generation of a geographic electronic fence. For example, in actual applications, since the distribution area corresponding to the outlets is small, it is relatively simple to generate the electronic fence of the outlets, and the generated electronic fence of the outlets has a high accuracy. Usually, the electronic fence is only applied at the outlets, and there is a lack of electronic fences for the transfer center and the express management area. In addition, a transfer center includes multiple outlets, and the electronic fence of each outlet is composed of irregular polygons. If the electronic fence of the transfer center is manually drawn according to the electronic fence of the outlet when generating the electronic fence, there may be drawing errors caused by human factors, and the electronic fence of the transfer center cannot be updated in time when the electronic fence of the outlet changes.

[0032] At this time, based on the technical solution of the embodiment of the present disclosure, when generating the transfer center electronic fence corresponding to the target transfer center, the fence position information of multiple network point electronic fences associated with the target transfer center can be obtained. Furthermore, multiple network point electronic fences can be expanded, fused and shrunk based on the fence position information, and then, at least one transfer center electronic fence corresponding to the target transfer center can be generated. Thereby, the effect of automatically, accurately and efficiently generating the corresponding transfer center electronic fence based on the network point electronic fence is achieved, and the real-time and accuracy of the electronic fence are improved. Furthermore, by applying the generated transfer center electronic fence, the logistics distribution efficiency and distribution accuracy are improved.

[0033] Embodiment 1

[0034] Figure 1 1 is a flow chart of an electronic fence generation method provided by the first embodiment of the present invention. This embodiment is applicable to the case of generating a geographic electronic fence of any area. The method can be executed by an electronic fence generation device. The electronic fence generation device can be implemented in the form of hardware and / or software. The electronic fence generation device can be configured in a terminal and / or a server. Figure 1 As shown, the method includes:

[0035] S110, obtaining fence location information of multiple network point electronic fences associated with the target transfer center.

[0036] Among them, the target transfer center can be any transfer center for which the electronic fence is to be generated. It can be understood that the transfer center is a device that plays a key role in the logistics system and is used to undertake the task of transferring goods. The transfer center refers to a logistics facility that realizes the combined (relay) transportation of different modes of transportation or the same mode of transportation. The electronic fence of the outlet can be understood as the electronic fence corresponding to the outlet. In the field of logistics, the outlet usually refers to the node in the logistics network, which can be the place where goods are stored, sorted, and distributed, and is the basic unit of the logistics network. In the geographic information system, the electronic fence is an area composed of polygons, which is used to divide the scope and boundaries of different areas. That is to say, the electronic fence is presented in the form of a polygonal area on the map. In the field of logistics, the electronic fence is used to identify outlets, delivery areas, and collection areas, etc., so as to carry out accurate logistics distribution of express delivery. Taking the logistics and transportation industry as an example, when the electronic fence of the outlet is determined, the electronic fence function of the vehicle-mounted detection platform can be used to record in real time when the vehicle enters and leaves the outlet, as well as the information such as the stay time at the outlet, so as to facilitate logistics companies to more effectively manage and dispatch transportation vehicles. In this embodiment, the electronic fence of the outlet can be an area formed by enclosing the distribution area corresponding to the outlet with a polygon. From the map, the electronic fence of the network point can be a closed polygon formed by multiple coordinate points, and the area enclosed by the polygon is the distribution area corresponding to the network point. The fence location information can be information representing the geographical location of the electronic fence. The fence location information can be location information in any form. Optionally, in the case where the electronic fence of the network point is a closed polygon formed by multiple coordinate points, the fence location information can be the latitude and longitude information of the multiple coordinate points.

[0037] Generally speaking, in the field of logistics, the interconnected organizations and facilities in the logistics process under any express management area can be characterized based on the logistics network relationship information. The logistics network can include at least three levels, namely the express management area, the transfer center and the outlets. Among them, the conversion center belongs to the express management area, and the outlets belong to the transfer center. In this embodiment, multiple transfer centers associated with the express management area can be determined based on the logistics network relationship information, and any transfer center can be used as the target transfer center. Afterwards, multiple outlets associated with the target transfer center can be determined based on the logistics network relationship information. Furthermore, the fence location information corresponding to the outlet electronic fences of multiple outlets can be obtained.

[0038] Based on this, on the basis of the above-mentioned technical solutions, it also includes: determining multiple outlets associated with the target transfer center based on the pre-acquired logistics network relationship information; obtaining the initial fence position information of the outlet electronic fences corresponding to the multiple outlets; for multiple outlets, performing data simplification processing on the initial fence position information of the outlet electronic fences corresponding to the outlets to obtain the fence position information of the outlet electronic fences corresponding to the outlets.

[0039] The logistics network relationship information is used to indicate the relationship between the transshipment center and the outlets. The outlets belong to the transshipment center. The logistics network relationship information can be understood as the information that characterizes the relationship between the nodes in the logistics network. The initial fence position information can be understood as the fence position information that has not been processed after data collection.

[0040] It should be noted that the initial fence location information is composed of the longitude and latitude information of multiple coordinate points that constitute the electronic fence. Generally, the longitude and latitude of the collected coordinate points have high accuracy, resulting in a long data length of longitude and latitude, which will affect the performance in the subsequent algorithm application process. Therefore, it is necessary to streamline the accuracy of the coordinate points. In addition, since the network point electronic fence is small, the density of the coordinate points is large (the interval between points is small), and the area of ​​the transfer center is large, the precision of the network point level is not required. Furthermore, in order to improve the operating performance of the subsequent algorithm and reduce the complexity and storage space of the data, the initial fence location information can be simplified.

[0041] As an optional implementation of this embodiment, the logistics network relationship information corresponding to the target transfer center can be obtained from the target database. Furthermore, multiple outlets associated with the target transfer center can be determined based on the logistics network relationship information. Further, the initial fence position information of the outlet electronic fence corresponding to the multiple outlets can be obtained from the target database. Afterwards, for multiple outlets, the initial fence position information of the outlet electronic fence corresponding to the outlet can be simplified according to a preset data simplification algorithm. Furthermore, the simplified position information can be used as the fence position information corresponding to the outlet electronic fence.

[0042] S120, obtaining a set of polygons to be fused based on the aggregation of fence position information corresponding to multiple network point electronic fences; wherein the set of polygons to be fused is a set of multi-polygon types composed of multiple polygons to be fused.

[0043] In this embodiment, the polygon set to be fused may be a set consisting of multiple polygons to be fused, and the set type of the set is a multi-polygon type. It can be understood that in a geographic information system (GIS), a multi-polygon may be a geometric object consisting of multiple polygons, which may be independent or have shared boundaries. Multi-polygons are suitable for representing complex geographical areas consisting of multiple discontinuous areas. It should be noted that although the polygon list is also a set consisting of multiple polygons, there is a certain difference between the polygon list and the multi-polygon, and the difference is that there is no topological relationship between the polygons included in the polygon list, and they are all independent of each other. The multiple polygons included in the multi-polygon may have a certain topological relationship, and a complex area can be represented based on the multiple polygons. In addition, the polygon list is composed of multiple Polygon objects, each of which is an independent geometric entity with its own vertices and attributes. In short, the polygon list is a simple set, and each element in the set is an independent Polygon object. A multipolygon is a more complex geometric object. It is itself a Polygon, but it is composed of multiple independent Polygon objects. These Polygon objects can share boundaries but do not intersect.

[0044] In this embodiment, when fence position information corresponding to multiple network point electronic fences is obtained, multiple fence position information can be processed. Then, a polygon list can be determined based on the multiple fence position information. Further, the polygon list can be processed to determine a polygon set to be merged based on the polygon list.

[0045] Optionally, a set of polygons to be fused is obtained by aggregating fence position information corresponding to electronic fences of multiple network points, including: parsing and processing multiple fence position information according to a preset geometric object processing algorithm to obtain a list of polygons to be processed, wherein the list of polygons to be processed is a set of multiple polygons to be processed and is a single polygon type; sorting multiple polygons to be processed in the list of polygons to be processed according to the position information corresponding to the multiple polygons to be processed, and obtaining a target polygon list; processing the target polygon list according to the preset geometric object set algorithm to obtain the set of polygons to be fused.

[0046] Among them, the geometric object processing algorithm can be an algorithm for processing geometric objects in geospatial data. Exemplarily, the geometric object processing algorithm can be the WKT Reader and Precision Model in the Java Topology Suite (JTS). The multiple polygons to be processed included in the polygon list to be processed are all independent single polygon (Polygon) objects. Those skilled in the art can understand that the multiple polygons included in the polygon list of a single polygon type are all independent geometric objects and cannot be merged into a geometric object representing a larger area. The polygon set of the multiple polygon list is a geometric object, and then, the multiple polygons included in the set can be merged into a larger polygon. The geometric object aggregation algorithm can be an algorithm for aggregating multiple independent geometric objects into one geometric object. Alternatively, the geometric object aggregation algorithm can also be an algorithm for converting the polygon type from a single polygon type to a multiple polygon type. Exemplarily, the geometric object aggregation algorithm can be the GeometryCollection in JTS.

[0047] As an optional implementation of the present embodiment, when the fence position information of multiple network point electronic fences is obtained, the multiple fence position information can be read and parsed in sequence based on the geometric object processing algorithm. And, during the parsing process, when it is detected that any network point electronic fence is an unclosed geometric figure based on the fence position information, the network point electronic fence is regarded as an abnormal electronic fence, and the abnormal electronic fence is eliminated. After the parsing is completed, a list of polygons to be processed can be obtained. Furthermore, the list of polygons to be processed can be processed based on the geometric object aggregation algorithm, and then, a set of polygons to be fused of multiple polygon types can be obtained. Among them, the preset direction can be any direction. Optionally, the preset direction can be clockwise or counterclockwise, etc.

[0048] In this embodiment, in order to make the subsequent fusion results of polygons more accurate and to make the final generated transfer center electronic fence closer to the expected effect, the multiple polygons to be processed included in the polygon list to be processed can be sorted, so as to determine the polygon set to be fused based on the sorted polygon list to be processed.

[0049] Based on this, on the basis of the above technical solutions, it also includes: sorting multiple polygons to be processed in the polygon list according to their corresponding position information, and determining the set of polygons to be merged based on the sorted polygon list.

[0050] The position information corresponding to the polygon to be processed may be information representing the location of the polygon to be processed in geographic space. The position information may be coordinate information of any coordinate point on the polygon to be processed. Optionally, the position information may be the longitude and latitude information of the center point of the polygon to be processed.

[0051] As an optional implementation of this embodiment, after obtaining the list of polygons to be processed, the multiple polygons to be processed can be sorted in a preset direction according to the position information of the polygons to be processed, so that the sorted list of polygons to be processed is ordered in space, and the sorted list of polygons to be processed is obtained. Then, the sorted list of polygons to be processed can be processed based on the geometric object aggregation algorithm, and then a set of polygons to be fused of multiple polygon types can be obtained.

[0052] S130, performing expansion and fusion processing on a plurality of polygons to be fused according to a preset first expansion parameter to obtain a set of polygons to be processed, and determining a set of polygons to be shrunk and a target expansion parameter based on a preset fusion threshold and the set of polygons to be processed.

[0053] Among them, the first expansion parameter can be a predetermined expansion parameter applied in the polygon expansion and fusion process. The set of polygons to be processed can be a set composed of multiple polygons to be processed and is a multi-polygon category. The number of polygons to be processed included in the set of polygons to be processed is less than the number of polygons to be fused included in the set of polygons to be fused. The preset fusion threshold can be a predetermined parameter used to determine whether the polygon fusion standard is met. The preset fusion threshold can be expressed based on the number of polygons. Optionally, the preset fusion threshold can be 1, 2 or 3, etc. The number of polygons to be shrunk included in the set of polygons to be shrunk is less than or equal to the number of polygons to be processed included in the set of polygons to be processed. And, the number of polygons to be shrunk included in the set of polygons to be shrunk is not greater than the preset fusion threshold. The target expansion parameter can be understood as the expansion parameter used when the number of polygons included in the polygon set obtained after expansion and fusion meets the preset fusion threshold.

[0054] It should be noted that the target expansion parameter is greater than or equal to the first expansion parameter. When the number of the to-be-processed polygons included in the to-be-processed polygon set is less than or equal to the preset fusion threshold, the target expansion parameter is the first expansion parameter; when the number of the to-be-processed polygons included in the to-be-processed polygon set is greater than the preset fusion threshold, the first expansion parameter can be continuously increased, and the expansion fusion can be continued until the number of polygons included in the final polygon set is less than or equal to the preset fusion threshold, and the expansion parameter used at this time is used as the target expansion parameter.

[0055] In this embodiment, each polygon to be fused in the set of polygons to be fused can be expanded according to a preset first expansion parameter by using a geometric object expansion algorithm. During the expansion process, when the boundary of any polygon to be fused contacts the boundary of other polygons to be fused, a new polygon can be fused. Furthermore, after all the polygons to be fused are expanded, a set of polygons to be processed can be obtained. Furthermore, the set of polygons to be processed can be compared with a preset fusion threshold, and the set of polygons to be shrunk and the target expansion parameter can be determined based on the comparison result. Among them, the geometric object expansion algorithm can be an algorithm that can realize the expansion processing of geometric objects. Exemplarily, the geometric object expansion algorithm can be Geometry.buffer(distance) in JTS.

[0056] In this embodiment, when the set of polygons to be shrunk and the target expansion parameter are determined based on the preset fusion threshold and the set of polygons to be processed, the determination is made based on the number comparison result between the number of polygons to be processed included in the set of polygons to be processed and the preset fusion threshold. The number comparison result may include that the number of polygons to be processed included in the set of polygons to be processed is not greater than the preset fusion threshold, and that the number of polygons to be processed included in the set of polygons to be processed is greater than the preset fusion threshold. The process of determining the set of polygons to be shrunk and the target expansion parameter under the two results may be described below.

[0057] Optionally, the set of polygons to be shrunk and the target expansion parameter are determined based on a preset fusion threshold and the set of polygons to be processed, including: when the number of polygons to be processed included in the set of polygons to be processed is not greater than the preset fusion threshold, the set of polygons to be processed is used as the set of polygons to be shrunk, and the first expansion parameter is used as the target expansion parameter.

[0058] As an optional implementation of this embodiment, after obtaining the polygon set to be processed, the number of polygons to be processed included in the polygon set to be processed can be determined, and the number can be compared with a preset fusion threshold. Further, when it is determined that the number is not greater than the preset fusion threshold, it can be determined that the obtained polygon set to be processed meets the expansion fusion standard. At this time, the polygon set to be processed can be used as the polygon set to be shrunk, and the first expansion parameter can be used as the target expansion parameter.

[0059] Optionally, the set of polygons to be shrunk and the target expansion parameter are determined based on a preset fusion threshold and the set of polygons to be processed, including: when the number of polygons to be processed included in the set of polygons to be processed is greater than the preset fusion threshold, the first expansion parameter is increased, and the increased first expansion parameter is used as the first expansion parameter, and the step of expanding and fusing multiple polygons to be fused according to the first expansion parameter is repeated to obtain the set of polygons to be processed; when the number of polygons to be processed included in the set of polygons to be processed is not greater than the preset fusion threshold, the step of increasing the first expansion parameter is stopped, and the set of polygons to be processed is used as the set of polygons to be shrunk, and the first expansion parameter is used as the target expansion parameter.

[0060] As an optional implementation of this embodiment, when the number of to-be-processed polygons included in the to-be-processed polygon set is greater than the preset fusion threshold, it can be determined that the obtained to-be-processed polygon set does not meet the expansion fusion standard, and the fusion between the polygons is not sufficient. Then, the first expansion parameter can be incremented according to the preset value, so that the first expansion parameter is added to the preset value, and the incremented first expansion parameter is obtained. Further, the incremented first expansion parameter can be used as the first expansion parameter, and the step of performing expansion and fusion processing on multiple to-be-fused polygons according to the first expansion parameter to obtain the to-be-processed polygon set can be repeatedly performed. Further, until it is finally determined that the number of to-be-processed polygons included in the to-be-processed polygon set is not greater than the preset fusion threshold, the step of incrementing the first expansion parameter can be stopped, and the to-be-processed polygon set obtained at this time is used as the to-be-contracted polygon set, and the first expansion parameter based on which the to-be-processed polygon set is obtained is used as the target expansion parameter.

[0061] S140 , determining a target shrinkage parameter based on the target expansion parameter, and performing shrinkage processing on each to-be-shrinked polygon in the to-be-shrinked polygon set according to the target shrinkage parameter to obtain a target polygon set.

[0062] In this embodiment, the target shrinkage parameter can be understood as the shrinkage parameter based on which the polygon is shrunk.

[0063] As an optional implementation of this embodiment, when the target expansion parameter and the set of polygons to be shrunk are determined, the target shrinkage parameter can be equal to the target expansion parameter. Furthermore, a geometric object shrinkage algorithm can be used to shrink each polygon to be shrunk according to the target shrinkage parameter. Then, the polygon set obtained after the polygon shrinkage can be used as the target polygon set. Among them, the geometric object shrinkage algorithm can be an algorithm for shrinking geometric objects. Exemplarily, the geometric object shrinkage algorithm can be Geometry.buffer(-distance) in JTS.

[0064] It should be noted that the benefits of determining the target shrinkage parameters based on the target expansion parameters and shrinking the polygons obtained after expansion fusion based on the target shrinkage parameters are to ensure that the outer contour size of the final shrunk polygon is similar to the outer contour size of the original polygon before expansion, so that the final polygon maintains the original contour size; correct the error caused by expansion. The expansion operation may introduce some minor errors due to the accuracy of numerical calculations, causing the expanded polygon contour to slightly deviate from the expected shape. The shrinkage operation can partially correct these errors and make the result closer to the original shape.

[0065] S150. Determine at least one transfer center electronic fence corresponding to the target transfer center based on the target polygon set.

[0066] The electronic fence of the transfer center can be understood as the area formed by enclosing the logistics transportation area corresponding to the transfer center with a polygon. From the map, the electronic fence of the transfer center can be a closed polygon formed by multiple coordinate points, and the area enclosed by the polygon is the logistics transportation area corresponding to the transfer center.

[0067] In this embodiment, after obtaining the target polygon set, an electronic fence can be generated according to at least one target polygon included in the target polygon set, and the generated electronic fence can be used as the transfer center electronic fence.

[0068] Optionally, at least one transfer center electronic fence corresponding to the transfer center to be processed is determined based on the target polygon set, including: obtaining polygon position information corresponding to at least one target polygon included in the target polygon set; for at least one target polygon, generating an electronic fence based on the polygon position information corresponding to the target polygon, and using the electronic fence as the transfer center electronic fence corresponding to the target transfer center.

[0069] The polygon location information may be information representing the polygon outline and geographical location. Optionally, the polygon location information may be coordinate information (eg, longitude and latitude information) of a plurality of coordinate points constituting the polygon.

[0070] As an optional implementation of this embodiment, when the target polygon set is determined, polygon position information corresponding to at least one target polygon included in the set can be determined based on the target polygon set. Further, for at least one target polygon, an electronic fence can be generated based on the polygon position information corresponding to the target polygon. Then, the electronic fence can be used as the electronic fence of the transfer center corresponding to the target transfer center. Thus, at least one transfer center electronic fence corresponding to the target transfer center can be obtained.

[0071] In this embodiment, in order to enable the user to observe the generated transfer center electronic fence more intuitively and clearly, when the transfer center electronic fence corresponding to the target transfer center is obtained, the transfer center electronic fence can be visualized.

[0072] Based on this, on the basis of the above-mentioned technical solutions, it also includes: for at least one transfer center electronic fence, rendering is performed according to the fence position information corresponding to the transfer center electronic fence, and the transfer center electronic fence is displayed on the map display page corresponding to the target transfer center.

[0073] The map display page can be understood as a map page including the target transfer center. It should be noted that in order to more intuitively observe the inclusion relationship between the transfer center and the outlets, the map display page can also include multiple outlet electronic fences associated with the target transfer center.

[0074] As an optional implementation of this embodiment, for at least one transfer center electronic fence, the transfer center electronic fence can be rendered according to the fence position information of the transfer center electronic fence. Then, the transfer center electronic fence can be displayed on the map display page corresponding to the target transfer center.

[0075] The technical solution of the embodiment of the present invention obtains fence position information corresponding to multiple network point electronic fences associated with the target transfer center, and then obtains a set of polygons to be fused based on the fence position information corresponding to the multiple network point electronic fences, wherein the set of polygons to be fused is a set of multi-polygon types composed of multiple polygons to be fused, and then, expands and fuses the multiple polygons to be fused according to a preset first expansion parameter to obtain a set of polygons to be processed, and determines a set of polygons to be shrunk and a target expansion parameter based on a preset fusion threshold and the set of polygons to be processed, and then determines a target shrinkage parameter based on the target expansion parameter, and respectively processes the polygons to be shrunk according to the target shrinkage parameter. Each of the polygons to be shrunk in the set is shrunk to obtain a target polygon set, and then at least one transfer center electronic fence corresponding to the target transfer center is determined based on the target polygon set, thereby solving the problem of manual drawing errors in the related art when manually drawing electronic fences, or the inability to timely update the electronic fences of the transfer center and the management area when the electronic fences of the outlets change, and achieving the effect of automatically, accurately and efficiently generating the corresponding transfer center electronic fences based on the outlet electronic fences, and improving the real-time and accuracy of the electronic fences. Furthermore, by applying the generated transfer center electronic fences, the logistics distribution efficiency and distribution accuracy are improved.

[0076] Embodiment 2

[0077] Figure 2 Schematic diagram of the structure of an electronic fence generation device provided by the second embodiment of the present invention. Figure 2 As shown, the device includes: a location information acquisition module 210, a location information aggregation module 220, a polygon expansion module 230, a polygon contraction module 240 and an electronic fence determination module 250.

[0078] Among them, the location information acquisition module 210 is used to obtain the fence location information of multiple network point electronic fences associated with the target transfer center; the location information aggregation module 220 is used to obtain a set of polygons to be fused based on the fence location information corresponding to the multiple network point electronic fences, wherein the set of polygons to be fused is a set of multi-polygon types composed of multiple polygons to be fused; the polygon expansion module 230 is used to perform expansion and fusion processing on each of the polygons to be fused according to a preset first expansion parameter to obtain a set of polygons to be processed, and determine a set of polygons to be shrunk and a target expansion parameter based on a preset fusion threshold and the set of polygons to be processed; wherein the number of polygons to be shrunk included in the set of polygons to be shrunk is less than the number of polygons to be fused included in the set of polygons to be fused; the number of polygons to be shrunk included in the set of polygons to be shrunk is not greater than the preset fusion threshold; the polygon contraction module 240 is used to determine a contraction parameter based on the target expansion parameter, and perform contraction processing on each of the polygons to be shrunk in the set of polygons to be shrunk according to the contraction parameter to obtain a target polygon set; the electronic fence determination module 250 is used to determine at least one transfer center electronic fence corresponding to the target transfer center based on the target polygon set.

[0079] The technical solution of the embodiment of the present invention obtains fence position information corresponding to multiple network point electronic fences associated with the target transfer center, and then obtains a set of polygons to be fused based on the fence position information corresponding to the multiple network point electronic fences, wherein the set of polygons to be fused is a set of multi-polygon types composed of multiple polygons to be fused, and then, expands and fuses the multiple polygons to be fused according to a preset first expansion parameter to obtain a set of polygons to be processed, and determines a set of polygons to be shrunk and a target expansion parameter based on a preset fusion threshold and the set of polygons to be processed, and then determines a target shrinkage parameter based on the target expansion parameter, and respectively processes the polygons to be shrunk according to the target shrinkage parameter. Each of the polygons to be shrunk in the set is shrunk to obtain a target polygon set, and then at least one transfer center electronic fence corresponding to the target transfer center is determined based on the target polygon set, thereby solving the problem of manual drawing errors in the related art when manually drawing electronic fences, or the inability to timely update the electronic fences of the transfer center and the management area when the electronic fences of the outlets change, and achieving the effect of automatically, accurately and efficiently generating the corresponding transfer center electronic fences based on the outlet electronic fences, and improving the real-time and accuracy of the electronic fences. Furthermore, by applying the generated transfer center electronic fences, the logistics distribution efficiency and distribution accuracy are improved.

[0080] Optionally, the device further includes: a network point determination module, an initial location information acquisition module and an information simplification module.

[0081] An outlet determination module is used to determine multiple outlets associated with a target transfer center based on pre-acquired logistics network relationship information corresponding to the target transfer center; wherein the logistics network relationship information is used to indicate the association relationship between the target transfer center and the outlets; the outlets belong to the transfer center; an initial position information acquisition module is used to obtain the initial fence position information of the outlet electronic fences corresponding to the multiple outlets; an information simplification module is used to perform data simplification processing on the initial fence position information of the outlet electronic fences corresponding to the multiple outlets, so as to obtain the fence position information of the outlet electronic fences corresponding to the outlets.

[0082] Optionally, the location information aggregation module 220 includes: an information parsing unit and a polygon set determination unit.

[0083] An information parsing unit, used for parsing the plurality of fence position information according to a preset geometric object processing algorithm to obtain a list of polygons to be processed, wherein the list of polygons to be processed is a collection of a plurality of polygons to be processed and is a single polygon type;

[0084] The polygon set determination unit is used to process the to-be-processed polygon list according to a preset geometric object set algorithm to obtain a to-be-fused polygon set.

[0085] Optionally, the device further includes: a polygon sorting module.

[0086] The polygon sorting module is used to sort the multiple to-be-processed polygons in the to-be-processed polygon list according to the position information corresponding to the multiple to-be-processed polygons, and determine the to-be-merged polygon set based on the sorted to-be-processed polygon list.

[0087] Optionally, the polygon expansion module 230 includes: an expansion parameter first determination unit, an expansion parameter increment unit and an expansion parameter second determination unit.

[0088] a first expansion parameter determination unit, configured to, when the number of the to-be-processed polygons included in the to-be-processed polygon set is not greater than a preset fusion threshold, use the to-be-processed polygon set as a to-be-contracted polygon set and use the first expansion parameter as a target expansion parameter; and

[0089] an expansion parameter increasing unit, configured to increase the first expansion parameter when the number of the polygons to be processed included in the polygon set to be processed is greater than a preset fusion threshold, and use the increased first expansion parameter as the first expansion parameter, and repeatedly perform the step of performing expansion and fusion processing on the plurality of polygons to be fused according to the first expansion parameter to obtain the polygon set to be processed;

[0090] The second expansion parameter determination unit is used to stop executing the step of increasing the first expansion parameter when the number of the to-be-processed polygons included in the to-be-processed polygon set is not greater than a preset fusion threshold, and use the to-be-processed polygon set as the to-be-processed polygon set and the first expansion parameter as the target expansion parameter.

[0091] Optionally, the electronic fence determination module 250 includes: a polygon position information acquisition unit and an electronic fence generation unit.

[0092] A polygon position information acquisition unit, used to acquire polygon position information corresponding to at least one target polygon included in the target polygon set;

[0093] The electronic fence generation unit is used to generate an electronic fence for the at least one target polygon according to the polygon position information corresponding to the target polygon, and use the electronic fence as the transfer center electronic fence corresponding to the transfer center to be processed.

[0094] Optionally, the device further includes: an electronic fence rendering module.

[0095] The electronic fence rendering module is used to render the electronic fence of the transfer center according to the fence position information corresponding to the electronic fence of the transfer center, and display the electronic fence of the transfer center on the map display page corresponding to the target transfer center.

[0096] The electronic fence generation device provided in the embodiment of the present invention can execute the electronic fence generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0097] Embodiment 3

[0098] Figure 3A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0099] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0100] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0101] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as an electronic fence generation method.

[0102] In some embodiments, the electronic fence generation method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the electronic fence generation method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the electronic fence generation method in any other appropriate manner (for example, by means of firmware).

[0103] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0104] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0105] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0106] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0108] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0110] 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 can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating an electronic fence, characterized in that: include: Obtain fence location information corresponding to multiple network point electronic fences associated with the target transfer center; A polygon set to be fused is obtained based on the aggregation of fence position information corresponding to the multiple network point electronic fences, wherein the polygon set to be fused is a set of multi-polygon types composed of multiple polygons to be fused; Perform expansion and fusion processing on the plurality of polygons to be fused according to a preset first expansion parameter to obtain a polygon set to be processed, and determine a polygon set to be shrunk and a target expansion parameter based on a preset fusion threshold and the polygon set to be processed; wherein the number of polygons to be shrunk included in the polygon set to be shrunk is not greater than the preset fusion threshold; Determine a target shrinkage parameter based on the target expansion parameter, and perform shrinkage processing on each of the to-be-shrinked polygons in the to-be-shrinked polygon set according to the target shrinkage parameter to obtain a target polygon set; At least one transfer center electronic fence corresponding to the target transfer center is determined based on the target polygon set.

2. The method for generating an electronic fence according to claim 1, characterized in that: Also includes: Determine multiple outlets associated with the target transshipment center based on pre-acquired logistics network relationship information corresponding to the target transshipment center; wherein the logistics network relationship information is used to indicate the association relationship between the target transshipment center and the outlets; the outlets belong to the transshipment center; Obtaining initial fence position information of network point electronic fences corresponding to multiple network points; For the plurality of network points, data simplification processing is performed on the initial fence position information of the network point electronic fences corresponding to the network points to obtain the fence position information of the network point electronic fences corresponding to the network points.

3. The electronic fence generation method according to claim 1, characterized in that: The obtaining of a set of polygons to be fused based on the aggregation of fence position information corresponding to the multiple network point electronic fences includes: The plurality of fence position information are parsed and processed according to a preset geometric object processing algorithm to obtain a list of polygons to be processed, wherein the list of polygons to be processed is a collection of a single polygon type consisting of a plurality of polygons to be processed; The to-be-processed polygon list is processed according to a preset geometric object set algorithm to obtain a to-be-fused polygon set.

4. The method for generating an electronic fence according to claim 3, characterized in that: Also includes: The plurality of to-be-processed polygons in the to-be-processed polygon list are sorted according to position information corresponding to the plurality of to-be-processed polygons, and a set of polygons to be merged is determined based on the sorted to-be-processed polygon list.

5. The electronic fence generation method according to claim 1, characterized in that: The step of determining the polygon set to be shrunk and the target expansion parameter based on the preset fusion threshold and the polygon set to be processed includes: When the number of the to-be-processed polygons included in the to-be-processed polygon set is not greater than a preset fusion threshold, the to-be-processed polygon set is used as a to-be-contracted polygon set, and the first expansion parameter is used as a target expansion parameter; and When the number of the to-be-processed polygons included in the to-be-processed polygon set is greater than a preset fusion threshold, the first expansion parameter is incremented, and the incremented first expansion parameter is used as the first expansion parameter, and the step of performing expansion and fusion processing on the plurality of to-be-fused polygons according to the first expansion parameter to obtain the to-be-processed polygon set is repeatedly performed; When the number of the to-be-processed polygons included in the to-be-processed polygon set is not greater than a preset fusion threshold, the step of increasing the first expansion parameter is stopped, and the to-be-processed polygon set is used as the to-be-processed polygon set, and the first expansion parameter is used as the target expansion parameter.

6. The electronic fence generation method according to claim 1, characterized in that: The step of determining at least one transfer center electronic fence corresponding to the transfer center to be processed based on the target polygon set includes: Acquire polygon position information corresponding to at least one target polygon included in the target polygon set; For the at least one target polygon, an electronic fence is generated according to the polygon position information corresponding to the target polygon, and the electronic fence is used as the transfer center electronic fence corresponding to the transfer center to be processed.

7. The method for generating an electronic fence according to claim 1, characterized in that: Also includes: For the at least one transfer center electronic fence, the transfer center electronic fence is rendered according to the fence position information corresponding to the transfer center electronic fence, and the transfer center electronic fence is displayed on the map display page corresponding to the target transfer center.

8. An electronic fence generation device, characterized in that: include: A location information acquisition module, used to acquire fence location information of multiple network point electronic fences associated with a target transfer center; A location information aggregation module, used for aggregating the fence location information corresponding to the multiple network point electronic fences to obtain a set of polygons to be merged, wherein the set of polygons to be merged is a set of multi-polygon types composed of multiple polygons to be merged; A polygon expansion module, used for performing expansion and fusion processing on each of the to-be-fused polygons according to a preset first expansion parameter to obtain a to-be-processed polygon set, and determining a to-be-contracted polygon set and a target expansion parameter based on a preset fusion threshold and the to-be-processed polygon set; wherein the number of to-be-contracted polygons included in the to-be-contracted polygon set is less than the number of to-be-contracted polygons included in the to-be-fused polygon set; and the number of to-be-contracted polygons included in the to-be-contracted polygon set is not greater than the preset fusion threshold; A polygon contraction module, used for determining a target contraction parameter based on the target expansion parameter, and performing contraction processing on each of the to-be-contracted polygons in the to-be-contracted polygon set according to the target contraction parameter, to obtain a target polygon set; The electronic fence determination module is used to determine at least one transfer center electronic fence corresponding to the target transfer center based on the target polygon set.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the electronic fence generation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the electronic fence generation method according to any one of claims 1 to 7 when executed.

11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the electronic fence generation method according to claims 1-7 is implemented.