WO2019020082A1 - Geo-fence generating method and device thereof - Google Patents

Geo-fence generating method and device thereof Download PDF

Info

Publication number
WO2019020082A1
WO2019020082A1 PCT/CN2018/097275 CN2018097275W WO2019020082A1 WO 2019020082 A1 WO2019020082 A1 WO 2019020082A1 CN 2018097275 W CN2018097275 W CN 2018097275W WO 2019020082 A1 WO2019020082 A1 WO 2019020082A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate
coordinates
joining
distance
current
Prior art date
Application number
PCT/CN2018/097275
Other languages
French (fr)
Chinese (zh)
Inventor
李靖
唐毅力
吕玮
黎旭荣
Original Assignee
阿里巴巴集团控股有限公司
李靖
唐毅力
吕玮
黎旭荣
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司, 李靖, 唐毅力, 吕玮, 黎旭荣 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019020082A1 publication Critical patent/WO2019020082A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Navigation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present application discloses a geo-fence generating method and a device thereof. The method comprises: receiving a plurality of coordinate sets in a coordinate list, wherein the plurality of coordinate sets comprises current coordinates; determining reference coordinates of the current coordinates; determining whether a distance between the current coordinates and the reference coordinates is greater than or equal to an additional distance, wherein the additional distance determines whether the current coordinates are confirmed to be a measure of additional coordinates in terms of distance; if the distance between the reference coordinates and the current coordinates is greater than or equal to the additional distance, determining the current coordinates to be additional coordinates for forming a geo-fence; and generating a geo-fence by means of the determined additional coordinates.

Description

地理围栏生成方法及其设备Geofence generation method and device thereof 技术领域Technical field
本申请涉及计算机领域,特别涉及一种地理围栏生成方法及其设备。The present application relates to the field of computers, and in particular, to a method and device for generating a geofence.
背景技术Background technique
随着移动通信技术的发展和计算机技术的普及,基于位置的服务(LBS,Location-Based Service)技术正在走进人们的生活。利用LBS技术,可以通过对移动终端进行定位来获取移动终端的位置,进而为移动终端提供与其所处的位置相关的服务。With the development of mobile communication technology and the popularity of computer technology, Location-Based Service (LBS) technology is entering people's lives. With the LBS technology, the location of the mobile terminal can be obtained by locating the mobile terminal, thereby providing the mobile terminal with a service related to the location with which it is located.
近年来,随着LBS技术的飞速发展,基于LBS技术的新应用也层出不穷。地理围栏(Geo-fencing)技术作为LBS技术的一种新应用,越来越受到人们的关注。地理围栏技术可以用一个虚拟的栅栏围出一个地理围栏区域。当移动终端在该地理围栏区域中或者在该地理围栏区域附近活动时,便可以接收该地理围栏区域对应的通知和提醒。In recent years, with the rapid development of LBS technology, new applications based on LBS technology have emerged in an endless stream. As a new application of LBS technology, Geo-fencing technology has attracted more and more attention. Geofence technology can enclose a geofence area with a virtual fence. When the mobile terminal is active in the geofence area or in the vicinity of the geofence area, the notification and reminder corresponding to the geofence area can be received.
而在利用形成地理围栏的围栏坐标绘制并高亮显示某一区域时,边界信息通常包含大量坐标信息,如果不对坐标信息进行处理直接利用坐标信息进行显示,会导致明显的性能问题,影响使用体验。When a certain area is drawn and highlighted by the fence coordinates forming the geofence, the boundary information usually contains a large amount of coordinate information. If the coordinate information is not processed directly, the coordinate information is used for display, which may cause obvious performance problems and affect the use experience. .
因此,现有技术需要一种对地理围栏的坐标进行筛选的技术方案。Therefore, the prior art requires a technical solution for screening the coordinates of the geofence.
上述信息仅作为背景信息被呈现以帮助理解本公开。至于任何上述信息是否可应用为针对本公开的现有技术,尚未做出决定,也未做出声明。The above information is presented as background information only to assist in understanding the present disclosure. As to whether any of the above information is applicable as prior art to the present disclosure, no decision has been made and no statement has been made.
发明内容Summary of the invention
本说明书一个或多个实施例的主要目的在于提供一种地理围栏生成方法及其设备,旨在解决上述的坐标筛选问题。The main purpose of one or more embodiments of the present specification is to provide a method for generating a geofence and an apparatus thereof, which are directed to solving the above-mentioned coordinate screening problem.
本说明书一个或多个实施例的一方面提供一种地理围栏生成方法,所述方法包 括:接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标;确定当前坐标的基准坐标;判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量;若大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标。利用确定的加入坐标,生成地理围栏。An aspect of one or more embodiments of the present specification provides a geofence generating method, the method comprising: receiving a plurality of coordinates in a coordinate list, wherein the plurality of coordinates includes a current coordinate; determining a reference coordinate of the current coordinate Determining whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be added coordinates in the distance; if the distance is greater than or equal to the joining distance, determining the current coordinate to form a geofence Join the coordinates. A geofence is generated using the determined join coordinates.
可选地,所述方法还包括:计算筛选概率,所述筛选概率是在概率上判断当前坐标是否被确定为加入坐标的度量;若当前坐标与基准坐标之间的距离小于加入距离,通过筛选概率确定当前坐标是否为加入坐标。Optionally, the method further includes: calculating a screening probability, where the screening probability is a metric that determines whether the current coordinate is determined to be a joining coordinate; if the distance between the current coordinate and the reference coordinate is less than the joining distance, screening The probability determines whether the current coordinate is a join coordinate.
本说明书一个或多个实施例的另一方面提供一种地理围栏生成设备,所述设备包括:接收单元,接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标;确定基准坐标单元,确定当前坐标的基准坐标;距离判断单元,判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量;第一确定单元,响应于距离判断单元判断出当前坐标与基准坐标之间的距离大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标;生成单元,利用确定的加入坐标,生成地理围栏。Another aspect of one or more embodiments of the present specification provides a geofence generating apparatus, the apparatus comprising: a receiving unit that receives a plurality of coordinates in a coordinate list, wherein the plurality of coordinates include current coordinates; determining a reference a coordinate unit that determines a reference coordinate of the current coordinate; a distance determining unit that determines whether a distance between the current coordinate and the reference coordinate is greater than or equal to a joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be a joining coordinate in the distance; The first determining unit determines, according to the distance determining unit, that the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, determining that the current coordinate is the joining coordinate forming the geofence; and the generating unit generates the geofence by using the determined joining coordinates.
可选地,所述设备还包括:计算筛选概率单元,计算筛选概率,所述筛选概率是在概率上判断当前坐标是否被确定为加入坐标的度量;第二确定单元,通过筛选概率确定是否加入当前坐标。Optionally, the device further includes: calculating a screening probability unit, and calculating a screening probability, where the screening probability is a metric that determines whether the current coordinate is determined as a joining coordinate by using a probability; and the second determining unit determines whether to join by using the screening probability Current coordinates.
本说明书一个或多个实施例的另一方面提供一种地理围栏设备,所述设备包括:处理器;以及Another aspect of one or more embodiments of the present specification provides a geofence device, the device comprising: a processor;
被安排成存储计算机课执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标;确定当前坐标的基准坐标;判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量;若大于等于加入距离,确定当前坐标为形成地理围栏的加入 坐标。利用确定的加入坐标,生成地理围栏。Arranging to store a computer class execution instruction memory, the executable instructions, when executed, causing the processor to: receive a plurality of coordinates in a coordinate list, wherein the plurality of coordinates include current coordinates; determining The reference coordinate of the current coordinate; determining whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be added coordinates in the distance; if the distance is greater than or equal to the joining distance, determining the current The coordinates are the joining coordinates that form the geofence. A geofence is generated using the determined join coordinates.
与现有技术相比,根据本说明书一个或多个实施例利用加入距离对坐标列表中的多个坐标进行筛选来确定形成地理围栏的加入坐标,从而能够在保留区域形状的同时减少地理围栏的坐标显示数量。更进一步地,根据本说明书另一实施例在利用加入距离对坐标进行筛选的基础上利用筛选概率对利用加入距离无法加入的坐标进行进一步筛选,这样可在保持地区的完整形状的同时,丰富了地区的细节信息。Compared with the prior art, according to one or more embodiments of the present specification, the joining distance is used to filter a plurality of coordinates in the coordinate list to determine the joining coordinates of forming the geofence, thereby being able to reduce the geofence while retaining the shape of the area. The number of coordinates displayed. Further, according to another embodiment of the present specification, the screening probability is used to further filter the coordinates that cannot be added by using the joining distance based on the screening of the coordinates by using the joining distance, so that the full shape of the region can be preserved while enriching Details of the area.
附图说明DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是示出根据本说明书一个或多个实施例的地理围栏的示图;1 is a diagram showing a geofence in accordance with one or more embodiments of the present specification;
图2是示出根据本说明书一个或多个实施例的地理围栏生成方法的流程图;2 is a flow chart showing a method of generating a geofence in accordance with one or more embodiments of the present specification;
图3是示出根据本说明书另一实施例的地理围栏生成方法的流程图;3 is a flow chart showing a method of generating a geofence according to another embodiment of the present specification;
图4A至图4F是示出根据本说明书一个或多个实施例的确定坐标的示图;4A through 4F are diagrams illustrating determining coordinates in accordance with one or more embodiments of the present specification;
图5是示出根据本说明书一个或多个实施例的地理围栏生成设备的框图;FIG. 5 is a block diagram showing a geofence generating device in accordance with one or more embodiments of the present specification;
图6是示出根据本说明书一个或多个实施例的执行地理围栏生成方法的电子设备的框图;6 is a block diagram showing an electronic device that performs a geofence generation method in accordance with one or more embodiments of the present specification;
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described in the following with reference to the specific embodiments of the present application and the corresponding drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
在下文中,将参照附图更详细地描述实施例。相同的标号始终表示相同的元件。Hereinafter, embodiments will be described in more detail with reference to the accompanying drawings. The same reference numerals will always be used to refer to the same elements.
图1是示出根据本说明书一个或多个实施例的地理围栏的示图。FIG. 1 is a diagram showing a geofence in accordance with one or more embodiments of the present specification.
如图1所述,可利用地理围栏技术将形成地理围栏的坐标顺序连接,形成如图1所述的郑州市的地理围栏,并将该地理围栏显示在显示器上。可以明显看出,形成地理围栏的坐标越多,则显示的区域轮廓越清晰,但同时形成地理围栏的坐标越多,对显示设备的要求越高。此外,在很多情况下,显示设备仅需要显示地理围栏的大致轮廓,不需要显示太过细节的轮廓信息。基于以上考虑,本申请提出了一种地理围栏生成方法。As shown in FIG. 1, the geofence technology can be used to connect the geofences forming the geofences to form a geofence of Zhengzhou City as shown in FIG. 1, and the geofence is displayed on the display. It can be clearly seen that the more coordinates that form the geofence, the clearer the outline of the displayed area, but the more coordinates that form the geofence at the same time, the higher the requirements on the display device. In addition, in many cases, the display device only needs to display the outline of the geofence, and does not need to display outline information that is too detailed. Based on the above considerations, the present application proposes a geofence generation method.
图2是示出根据本说明书一个或多个实施例的地理围栏生成方法的流程图。2 is a flow chart showing a geofence generation method in accordance with one or more embodiments of the present specification.
如图2所示,在步骤S210,接收坐标列表中的多个坐标。具体来说,所述坐标列表可包括已形成某特定区域(例如,图1中的郑州市)的地理围栏的多个坐标的列表,也就是说,所述坐标列表中的坐标是根据地理围栏算法已确定的多个坐标的集合。本领域技术人员应理解:所有根据现有的地理围栏算法可获取与特定区域对应的坐标列表的方法均可应用与本申请。As shown in FIG. 2, in step S210, a plurality of coordinates in the coordinate list are received. Specifically, the coordinate list may include a list of a plurality of coordinates of a geofence that has formed a specific region (eg, Zhengzhou City in FIG. 1), that is, coordinates in the coordinate list are based on a geofence A set of multiple coordinates that the algorithm has determined. Those skilled in the art will appreciate that all methods for obtaining a list of coordinates corresponding to a particular region based on an existing geofence algorithm can be applied to the present application.
随后,针对当前坐标可执行以下步骤,应理解,当前坐标可包括属于坐标列表并正在遍历的坐标,也就是说,正在对其进行判断以确定是否将其加入到地理围栏的坐标为当前坐标。应注意,在本说明书一个或多个实施例中提到的“加入”可以是将坐标确定为最终的围栏数据,换言之,若可加入某一坐标,则该坐标确定为可在显示器上显示的坐标。Subsequently, the following steps can be performed for the current coordinates, it being understood that the current coordinates can include coordinates that belong to the list of coordinates and are traversing, that is, the decision being made to determine whether to add it to the geofence is the current coordinate. It should be noted that the "joining" mentioned in one or more embodiments of the present specification may be to determine the coordinates as the final fence data, in other words, if a certain coordinate can be added, the coordinates are determined to be displayable on the display. coordinate.
在步骤S220,确定当前坐标的基准坐标。基准坐标是在时间上距当前坐标最近的加入坐标,其中,加入坐标可以是其最终被加入到地理围栏并可在显示器上显示的坐标。可选地,若确定不存在基准坐标,则将当前坐标确定为加入坐标。例如,在对坐标列表中的第一坐标进行操作时,不存在在时间上距当前坐标最近的加入坐标,则将第一坐标确定为加入坐标,这样在对第二坐标进行操作时,第一坐标可作为第二坐标的基准坐标。At step S220, the reference coordinates of the current coordinates are determined. The reference coordinates are the join coordinates that are closest in time to the current coordinates, where the join coordinates may be the coordinates that are ultimately added to the geofence and displayable on the display. Optionally, if it is determined that there is no reference coordinate, the current coordinate is determined as the joining coordinate. For example, when the first coordinate in the coordinate list is operated, there is no joining coordinate closest to the current coordinate in time, and the first coordinate is determined as the joining coordinate, so that when the second coordinate is operated, the first The coordinates can be used as the reference coordinates of the second coordinate.
接着,在步骤S230,判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量。具体来说,加入距离是通过坐标列表中的多个坐标之间的距离和与根据加入距离确定的加入坐标的预定最大数量计算得到的。具体公式如下所示:Next, in step S230, it is determined whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be the joining coordinate in the distance. Specifically, the joining distance is calculated by the distance between the plurality of coordinates in the coordinate list and the predetermined maximum number of joining coordinates determined according to the joining distance. The specific formula is as follows:
D=∑ n m=1D m/Count max D=∑ n m=1 D m /Count max
其中,∑ n m=1D m表示坐标列表中的多个坐标之间的距离和,可指示相邻的两个坐标之间的距离之和,所述距离可包括用于度量两个坐标在空间上的长度的任何距离算法,例如,可包括欧几里得距离、曼哈顿距离和切比雪夫距离等。在本申请中,优选采用曼哈顿距离,坐标(x 1,y 1)与坐标(x 2,y 2)之间的曼哈顿距离为d=│x 1-x 2│+│y 1-y 2│。Count max是根据加入距离确定的加入坐标的预定最大数量,加入坐标的预定最大数量可指示可在屏幕上显示的坐标数量的最大值,这通常是由用户根据显示设备的显示性能以及经验预先设定的。 Where ∑ n m=1 D m represents the sum of the distances between the plurality of coordinates in the coordinate list, and may indicate the sum of the distances between the adjacent two coordinates, the distance may include Any distance algorithm for the length of the space, for example, may include Euclidean distance, Manhattan distance, and Chebyshev distance. In the present application, the Manhattan distance is preferably used, and the Manhattan distance between the coordinates (x 1 , y 1 ) and the coordinates (x 2 , y 2 ) is d=│x 1 -x 2 │+│y 1 -y 2 │ . Count max is a predetermined maximum number of joining coordinates determined according to the joining distance, and the predetermined maximum number of joining coordinates may indicate the maximum number of coordinates that can be displayed on the screen, which is usually preset by the user according to the display performance and experience of the display device. Fixed.
在步骤S240,若判断得出,当前坐标与基准坐标之间的距离大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标。由以上分析可以看出,距离和是固定不变的,由此可以看出,可通过动态设置Count max,控制动态加入坐标的数量。 In step S240, if it is determined that the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, the current coordinate is determined to be the joining coordinate forming the geofence. It can be seen from the above analysis that the distance sum is fixed, and it can be seen that the number of dynamically added coordinates can be controlled by dynamically setting Count max .
随后,在步骤S250,利用确定的加入坐标,生成地理围栏。Subsequently, in step S250, a geofence is generated using the determined joining coordinates.
可选地,可按照坐标列表中的多个坐标形成的闭合轮廓的顺时针方向或逆时针方向,确定当前坐标的下一坐标是否为形成地理围栏的加入坐标,按照这种方式,确定多个坐标中的每个坐标是否为形成地理围栏的加入坐标。在坐标列表中的多个坐标均完成确定步骤后,可利用确定的加入坐标,生成地理围栏。Optionally, determining whether the next coordinate of the current coordinate is a joining coordinate forming a geofence according to a clockwise direction or a counterclockwise direction of the closed contour formed by the plurality of coordinates in the coordinate list, in this manner, determining multiple Whether each coordinate in the coordinates is the joining coordinate that forms the geofence. After the plurality of coordinates in the coordinate list have completed the determining step, the determined joining coordinates can be used to generate the geofence.
如上所述,根据本说明书一个或多个实施例的地理围栏生成方法利用加入距离对坐标列表中的多个坐标进行筛选来确定形成地理围栏的加入坐标,从而能够保留区域形状的同时减少了坐标显示数量,提高了显示性能。As described above, the geofence generation method according to one or more embodiments of the present specification utilizes the addition distance to filter a plurality of coordinates in the coordinate list to determine the joining coordinates forming the geofence, thereby being able to retain the shape of the region while reducing the coordinates. The number of displays increases display performance.
此外,若在步骤S230判断得出当前坐标与基准坐标之间的距离小于加入距离,还可对当前坐标进行进一步处理,以下将参照图3对这部分进行详细描 述。Further, if it is judged in step S230 that the distance between the current coordinate and the reference coordinate is smaller than the joining distance, the current coordinate can be further processed, which will be described in detail below with reference to FIG.
图3是示出根据本说明书另一实施例的地理围栏生成方法的流程图。由于步骤S210至步骤S230与步骤S310至步骤330相同,在此将不对步骤S310至步骤330进行详细描述。FIG. 3 is a flow chart showing a method of generating a geofence according to another embodiment of the present specification. Since steps S210 to S230 are the same as steps S310 to 330, steps S310 to 330 will not be described in detail herein.
若在步骤S330判断得出当前坐标与基准坐标之间的距离小于加入距离,则在步骤S340,计算筛选概率,所述筛选概率是在概率上判断当前坐标是否被确定为加入坐标的度量,所述筛选概率通过加入坐标的预定期望数量、加入坐标的实际数量以及坐标列表中的多个坐标的数量来确定的,所述筛选概率的公式如下所示:If it is determined in step S330 that the distance between the current coordinate and the reference coordinate is less than the joining distance, then in step S340, a screening probability is calculated, and the screening probability is a metric that determines whether the current coordinate is determined to be a joining coordinate in terms of probability. The screening probability is determined by adding a predetermined desired number of coordinates, the actual number of added coordinates, and the number of coordinates in the coordinate list, the formula of which is as follows:
P=(Count E-Count Max)/Count All P=(Count E- Count Max )/Count All
其中,Count E表示加入坐标的预定期望数量,即,在屏幕上显示的坐标的期望数量,Count Max表示根据加入距离加入的加入坐标的实际数量的最大值,即,坐标列表中的多个坐标均执行完地理围栏生成方法之后确定为加入坐标的数量的最大值,Count E和Count Max均可由用户在执行本说明书一个或多个实施例的围栏生成算法之前预先确定,可选地,用户可根据显示设备的显示性能以及经验来预先确定Count E和Count Max,Count All表示坐标列表中的多个坐标的数量。 Wherein, Count E represents a predetermined desired number of added coordinates, that is, a desired number of coordinates displayed on the screen, and Count Max represents a maximum value of the actual number of joined coordinates added according to the joining distance, that is, a plurality of coordinates in the coordinate list. After performing the geofence generation method, the maximum number of join coordinates is determined. Count E and Count Max may be predetermined by the user before executing the fence generation algorithm of one or more embodiments of the present specification. Alternatively, the user may Count E and Count Max are predetermined according to the display performance and experience of the display device, and Count All represents the number of coordinates in the coordinate list.
随后,在步骤S350,通过筛选概率确定是否加入当前坐标。具体来说,利用随机数分配算法,向当前坐标分配随机数,其中,随机数的取值范围在0到1之间;若向当前坐标分配的随机数小于筛选概率,则判断当前坐标为加入坐标。在实施过程中,用户可直接调用已封装的随机数分配算法的接口来向当前坐标分配随机数。Subsequently, in step S350, it is determined by screening probability whether or not to join the current coordinates. Specifically, the random number allocation algorithm is used to allocate a random number to the current coordinate, wherein the random number ranges from 0 to 1; if the random number assigned to the current coordinate is smaller than the screening probability, the current coordinate is determined to be joined. coordinate. In the implementation process, the user can directly call the interface of the encapsulated random number allocation algorithm to assign a random number to the current coordinates.
若在步骤S350通过筛选概率判断得出加入当前坐标,则在步骤S360确定当前坐标为形成地理围栏的加入坐标,反之,若在在步骤S350通过筛选概率判断得出不加入当前坐标,则当前坐标不能作为加入坐标。If it is determined in step S350 that the current coordinates are added by the screening probability, then the current coordinates are determined to be the joining coordinates of the geofence formed in step S360, and if the current coordinates are not added by the screening probability in step S350, the current coordinates are obtained. Cannot be used as a join coordinate.
随后,可在S370,根据确定的加入坐标,生成地理围栏。Subsequently, at S370, a geofence may be generated based on the determined joining coordinates.
假设通过加入距离确定的加入坐标的数量为Count a,通过筛选概率确定的加入坐标的数量为Count p,而在对多个坐标进行处理后获得的加入坐标的数量为Count R,加入坐标的数量的期望值为E(Count R),则E(Count R)=Count a+Count p。由以上分析可知,Count p是对多个坐标中除了大于加入距离而被确定为加入坐标之外的坐标进行判断后确定的加入坐标,所以Count p=P*(Count All-Count a)。 Assume that the number of joining coordinates determined by the joining distance is Count a , the number of joining coordinates determined by the screening probability is Count p , and the number of joining coordinates obtained after processing a plurality of coordinates is Count R , and the number of added coordinates The expected value is E(Count R ), then E(Count R )=Count a +Count p . It can be seen from the above analysis that Count p is a joining coordinate determined after determining the coordinates other than the joining coordinates that are determined to be added coordinates in addition to the joining distance, so Count p = P * (Count All - Count a ).
根据筛选概率的公式可以得出:Count Max+P*Count All=Count EAccording to the formula for screening probability: Count Max + P * Count All = Count E .
因此,E(Count R)=Count a+P*(Count All-Count a)<Count Max+P*Count All=Count E。由此可以看出,E(Count R)<Count E,即加入坐标的数量的期望值会小于加入坐标的预定期望数量。此外,根据Count Max的定义,Count Max可表示为距离和与加入距离D的比值,由以上分析可知,最后生成的地理围栏中的加入坐标之间的平均距离D AvgR必然必然小于等于加入距离D,所以可得出,Count R=距离和/D AvgR>距离和/D=Count Max,即,Count R>Count Max。以上根据设置的筛选概率推导出的大小,可有助于用户预先设置各种参数(例如,Count E、Count Max)。 Therefore, E(Count R )=Count a +P*(Count All -Count a )<Count Max +P*Count All =Count E . It can be seen that E(Count R )<Count E , that is, the expected value of the number of added coordinates will be less than the predetermined expected number of added coordinates. Further, according to the definition of Count Max, Count Max can be expressed as a distance and a ratio of the distance D is added, From the above analysis, the average distance D between the added coordinate AVGR geofence last generated necessarily must be smaller than the distance D equal to join , so it can be concluded that Count R = distance and /D AvgR > distance and /D = Count Max, ie, Count R > Count Max . The size derived above based on the set screening probability can help the user to preset various parameters (for example, Count E , Count Max ).
如上所述,根据本说明书一个或多个实施例的地理围栏生成方法在利用加入距离对坐标进行筛选的基础上利用筛选概率对利用加入距离无法加入的坐标进行进一步筛选,这样可在保持地区的完整形状的同时,丰富了地区的细节信息。举例来说,对于东西部轮廓差异较大的区域,也就是说,西部轮廓平滑而东部轮廓曲折,若仅采用加入距离对坐标进行筛选,则可能会导致东部轮廓被过度平滑,这种情况下,利用筛选概率进行进一步筛选,则可增加形成东部轮廓的坐标,从而丰富了东部的细节信息。As described above, the geofence generation method according to one or more embodiments of the present specification utilizes the screening probability to further filter the coordinates that cannot be added by using the joining distance on the basis of the screening by using the joining distance, so that the area can be maintained in the holding area. The complete shape enriches the details of the area. For example, for a region with a large difference between the east and west contours, that is, the western contour is smooth and the eastern contour is tortuous. If only the addition distance is used to filter the coordinates, the eastern contour may be excessively smoothed. Further screening by using the screening probability can increase the coordinates of the eastern contour, thus enriching the details of the eastern part.
以下将结合图4A至图4F中示出的示图来描述根据本说明书一个或多个实施例的确定坐标的方法。A method of determining coordinates according to one or more embodiments of the present specification will be described below in conjunction with the diagrams illustrated in FIGS. 4A through 4F.
图4A示出坐标列表中的多个坐标形成的闭合轮廓,为了便于描述,在图4A中对组成坐标列表的坐标的数量进行了简化,实际应用中坐标的数量将远 多于此。Fig. 4A shows a closed contour formed by a plurality of coordinates in a coordinate list. For convenience of description, the number of coordinates constituting the coordinate list is simplified in Fig. 4A, and the number of coordinates in actual application will be much larger than this.
接下来,参照图4B,坐标A作为起始坐标(上文中所述的坐标列表中的第一坐标),不存在在时间上距坐标A最近的加入坐标,所以坐标A不存在基准坐标,因此,坐标A可确定为加入坐标,接着对坐标B进行判断。Next, referring to FIG. 4B, the coordinate A is used as the starting coordinate (the first coordinate in the coordinate list described above), there is no joining coordinate closest to the coordinate A in time, so the coordinate A does not have the reference coordinate, so The coordinate A can be determined as the joining coordinates, and then the coordinate B is judged.
如图4C所示,坐标B的基准坐标为坐标A,可按照图2所述的方法对坐标B进行判断,具体来说,判断坐标A与坐标B之间的距离AB是否大于加入距离,经判断,距离AB大于加入距离,则坐标B可确定为加入坐标。As shown in FIG. 4C, the reference coordinate of the coordinate B is the coordinate A, and the coordinate B can be determined according to the method described in FIG. 2. Specifically, it is determined whether the distance AB between the coordinate A and the coordinate B is greater than the joining distance. It is judged that the distance AB is greater than the joining distance, and the coordinate B can be determined as the joining coordinates.
接着如图4D所示,对坐标C进行判断,坐标C的基准坐标为坐标B,经判断,坐标B与坐标C之间的距离BC小于加入距离,则按照图3中所述的方法,计算筛选概率,并根据筛选概率确定该坐标不加入,则对坐标D进行判断。Next, as shown in FIG. 4D, the coordinate C is determined, and the reference coordinate of the coordinate C is the coordinate B. After determining that the distance BC between the coordinate B and the coordinate C is smaller than the joining distance, the method is calculated according to the method described in FIG. The probability is screened, and if the coordinates are not added according to the screening probability, the coordinate D is judged.
如图4E所示,坐标D的基准坐标为坐标B,经判断,坐标B与坐标D之间的距离BD大于加入距离,则坐标D确定为加入坐标。As shown in FIG. 4E, the reference coordinate of the coordinate D is the coordinate B. It is judged that the distance BD between the coordinate B and the coordinate D is greater than the joining distance, and the coordinate D is determined to be the joining coordinate.
按照这样的顺序,依次对坐标列表中的多个坐标进行判断,从而确定每个坐标是否为形成地理围栏的加入坐标,随后利用确定的加入坐标,生成如图4F地理围栏。In this order, a plurality of coordinates in the coordinate list are sequentially determined to determine whether each coordinate is a joining coordinate forming a geofence, and then the determined joining coordinates are used to generate a geofence as shown in FIG. 4F.
应注意,虽然图4A至图4F示出了按照顺时针对形成地理围栏的轮廓的坐标列表中的每个坐标进行判断,但在实际应用中,也可按照逆时针对形成地理围栏的轮廓的坐标列表中的每个坐标进行判断。It should be noted that although FIG. 4A to FIG. 4F show that each coordinate in the coordinate list for forming the contour of the geofence is judged in time, in actual application, the contour of the geofence may also be formed in reverse time. Each coordinate in the coordinate list is judged.
为了更清楚地明白本说明书一个或多个实施例的发明构思,以下将参照图5描述根据本说明书一个或多个实施例的数据处理设备的框图。本领域普通技术人员将理解:图5中的地理围栏生成设备仅示出了与本示例性实施例相关的组件,在地理围栏生成设备500中还包括除了图5中示出的组件之外的通用组件。In order to more clearly understand the inventive concept of one or more embodiments of the present specification, a block diagram of a data processing apparatus according to one or more embodiments of the present specification will be described below with reference to FIG. Those of ordinary skill in the art will appreciate that the geofence generating device of FIG. 5 only shows components related to the present exemplary embodiment, and that the geofence generating device 500 further includes components other than those shown in FIG. Common components.
图5是示出根据本说明书一个或多个实施例的地理围栏生成设备的框图。如图5所示,地理围栏生成设备500包括接收单元510、确定基准坐标单元520、距离判断单元530、第一确定单元540和生成单元550。FIG. 5 is a block diagram showing a geofence generating device in accordance with one or more embodiments of the present specification. As shown in FIG. 5, the geofence generating apparatus 500 includes a receiving unit 510, a determination reference coordinate unit 520, a distance judging unit 530, a first determining unit 540, and a generating unit 550.
接收单元510接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标。The receiving unit 510 receives a plurality of coordinates in the coordinate list, wherein the plurality of coordinates includes the current coordinates.
确定基准坐标单元520确定当前坐标的基准坐标,其中,基准坐标是在时间上距当前坐标最近的加入坐标。The determination reference coordinate unit 520 determines the reference coordinates of the current coordinates, wherein the reference coordinates are the joined coordinates that are closest in time to the current coordinates.
距离判断单元530判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量。The distance determining unit 530 determines whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be the joining coordinate in the distance.
可选地,距离判断单元530通过坐标列表中的所述多个坐标之间的距离和与加入坐标的预定最大数量计算加入距离。Alternatively, the distance judging unit 530 calculates the joining distance by the distance between the plurality of coordinates in the coordinate list and the predetermined maximum number of joining coordinates.
第一确定单元540响应于距离判断单元判断出当前坐标与基准坐标之间的距离大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标。The first determining unit 540 determines, according to the distance determining unit, that the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, and determines that the current coordinate is the joining coordinate forming the geofence.
生成单元550,根据确定的加入坐标,生成地理围栏。The generating unit 550 generates a geofence according to the determined joining coordinates.
可选地,地理围栏生成设备500还包括计算筛选概率单元(未示出)和第二确定单元(未示出),其中,计算筛选概率单元,计算筛选概率,所述筛选概率是在概率上判断当前坐标是否被确定为加入坐标的度量;第二确定单元响应于距离判断单元判断出当前坐标与基准坐标之间的距离小于加入距离,通过筛选概率确定当前坐标是否为加入坐标。Optionally, the geofence generating apparatus 500 further includes a calculation screening probability unit (not shown) and a second determining unit (not shown), wherein the screening probability unit is calculated, and the screening probability is calculated, and the screening probability is in probability Determining whether the current coordinate is determined as a metric of the added coordinate; the second determining unit determines, according to the distance determining unit, that the distance between the current coordinate and the reference coordinate is less than the joining distance, and determines whether the current coordinate is the joining coordinate by the screening probability.
可选地,第一确定单元确定当前坐标为形成地理围栏的加入坐标之后,按照坐标列表中的多个坐标形成的闭合轮廓的顺时针方向或逆时针方向,确定当前坐标的下一坐标是否为形成地理围栏的加入坐标。Optionally, the first determining unit determines whether the current coordinate is a clockwise or counterclockwise direction of the closed contour formed by the plurality of coordinates in the coordinate list after forming the coordinate of the geofence, and determining whether the next coordinate of the current coordinate is The joining coordinates of the geofence are formed.
可选地,所述设备还包括:第三确定单元,响应于基准坐标单元确定不存在基准坐标,将当前坐标确定为形成地理围栏的加入坐标。Optionally, the device further includes: a third determining unit that determines, in response to the reference coordinate unit, that the reference coordinates are not present, and determines the current coordinates as the joining coordinates forming the geofence.
可选地,计算筛选概率单元通过加入坐标的预定期望数量、加入坐标的实际数量以及坐标列表中的多个坐标的数量计算筛选概率。Optionally, the calculated screening probability unit calculates the screening probability by adding a predetermined desired number of coordinates, the actual number of joined coordinates, and the number of coordinates in the coordinate list.
可选地,第二确定单元利用随机数分配算法,向当前坐标分配随机数,其中,随机数的取值范围在0到1之间;若向当前坐标分配的随机数小于筛选概率,则确定当前坐标为加入坐标。Optionally, the second determining unit allocates a random number to the current coordinate by using a random number allocation algorithm, where the random number ranges from 0 to 1; if the random number assigned to the current coordinate is smaller than the screening probability, then the determining unit determines The current coordinate is the join coordinate.
可选地,所述距离包括曼哈顿距离。Optionally, the distance comprises a Manhattan distance.
因此,可以看出,第一确定单元、第二确定单元、第三确定单元均用于确定当前坐标是否为加入坐标,因此,确定的加入坐标可以是第一确定单元、第二确定单元或第三确定单元所确定的加入坐标。Therefore, it can be seen that the first determining unit, the second determining unit, and the third determining unit are both used to determine whether the current coordinate is a joining coordinate. Therefore, the determined joining coordinate may be the first determining unit, the second determining unit, or the first The third determines the joining coordinates determined by the unit.
如上所述,根据本说明书一个或多个实施例的地理围栏生成设备利用加入距离对坐标列表中的多个坐标进行筛选来确定形成地理围栏的加入坐标,从而能够在保留区域形状的同时减少地理围栏的坐标显示数量。更进一步地,根据本说明书一个或多个实施例的地理围栏生成算法在利用加入距离对坐标进行筛选的基础上利用筛选概率对利用加入距离无法加入的坐标进行进一步筛选,这样可在保持地区的完整形状的同时,丰富了地区的细节信息。As described above, the geofence generating apparatus according to one or more embodiments of the present specification utilizes the joining distance to filter a plurality of coordinates in the coordinate list to determine the joining coordinates forming the geofence, thereby being able to reduce the geography while retaining the shape of the area. The number of coordinates of the fence is displayed. Further, the geo-fence generation algorithm according to one or more embodiments of the present specification uses the screening probability to further filter the coordinates that cannot be added by using the joining distance on the basis of screening the coordinates by using the joining distance, so that the area can be maintained in the holding area. The complete shape enriches the details of the area.
图6示出根据本说明书一个或多个实施例的执行地理围栏生成方法的电子设备的框图。参考图6,在硬件层面,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成的网页截图装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。FIG. 6 illustrates a block diagram of an electronic device that performs a geofence generation method in accordance with one or more embodiments of the present specification. Referring to Figure 6, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, memory, and non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs the web page capture device formed on the logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
本说明书一个或多个实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的电子设备执行时,能够使该电子设备执行图2所示的实施例的方法。One or more embodiments of the present specification also provide a computer readable storage medium storing one or more programs, the one or more programs including instructions that when included in a plurality of applications When the electronic device is executed, the electronic device can be caused to perform the method of the embodiment shown in FIG. 2.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的 改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could clearly distinguish between hardware improvements (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (for process flow improvements). However, as technology advances, many of today's method flow improvements can be seen as direct improvements in hardware circuit architecture. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented by hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system on a single PLD without having to ask the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, today, instead of manually making integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in programming development, but before compiling The original code has to be written in a specific programming language. This is called the Hardware Description Language (HDL). HDL is not the only one, but there are many kinds, such as ABEL (Advanced Boolean Expression Language). AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be apparent to those skilled in the art that the hardware flow for implementing the logic method flow can be easily obtained by simply programming the method flow into the integrated circuit with a few hardware description languages.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形 式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. In the form of logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art will also appreciate that in addition to implementing the controller in purely computer readable program code, the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding. The form of a microcontroller or the like to achieve the same function. Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described separately by function into various units. Of course, the functions of each unit may be implemented in the same software or software and/or hardware when implementing the present application.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个 流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (19)

  1. 一种地理围栏生成方法,包括:A method for generating a geofence includes:
    接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标;Receiving a plurality of coordinates in the coordinate list, wherein the plurality of coordinates includes a current coordinate;
    确定当前坐标的基准坐标;Determining the reference coordinates of the current coordinates;
    判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量;Determining whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be a joining coordinate in the distance;
    若大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标;If it is greater than or equal to the joining distance, it is determined that the current coordinate is the joining coordinate forming the geofence;
    利用确定的加入坐标,生成地理围栏。A geofence is generated using the determined join coordinates.
  2. 如权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    计算筛选概率,所述筛选概率是在概率上判断当前坐标是否被确定为加入坐标的度量;Calculating a screening probability, which is a metric that determines whether the current coordinate is determined to be a joining coordinate by probability;
    若当前坐标与基准坐标之间的距离小于加入距离,通过筛选概率确定当前坐标是否为加入坐标。If the distance between the current coordinate and the reference coordinate is less than the joining distance, it is determined by the screening probability whether the current coordinate is a joining coordinate.
  3. 如权利要求2所述的方法,计算筛选概率包括:通过加入坐标的预定期望数量、加入坐标的实际数量以及坐标列表中的所述多个坐标的数量计算筛选概率。The method of claim 2, calculating the screening probability comprises calculating a screening probability by adding a predetermined desired number of coordinates, an actual number of joining coordinates, and a number of the plurality of coordinates in the coordinate list.
  4. 如权利要求2所述的方法,通过筛选概率确定是否加入当前坐标包括:The method of claim 2, determining whether to join the current coordinates by using a screening probability comprises:
    利用随机数分配算法,向当前坐标分配随机数,其中,随机数的取值范围在0到1之间;Using a random number allocation algorithm, assigning a random number to the current coordinate, wherein the random number ranges from 0 to 1;
    若向当前坐标分配的随机数小于筛选概率,则确定当前坐标为加入坐标。If the random number assigned to the current coordinate is less than the screening probability, it is determined that the current coordinate is the joining coordinate.
  5. 如权利要求1或2所述的方法,确定当前坐标为形成地理围栏的加入坐标之后,还包括:The method of claim 1 or 2, after determining that the current coordinates are the joining coordinates of the geofence, further comprising:
    按照坐标列表中的所述多个坐标形成的闭合轮廓的顺时针方向或逆时针方向,确定当前坐标的下一坐标是否为形成地理围栏的加入坐标。Whether the next coordinate of the current coordinate is the joining coordinate forming the geofence is determined according to the clockwise direction or the counterclockwise direction of the closed contour formed by the plurality of coordinates in the coordinate list.
  6. 如权利要求1所述的方法,基准坐标是在时间上距当前坐标最近的加入坐标。The method of claim 1 wherein the reference coordinates are joining coordinates that are closest in time to the current coordinates.
  7. 如权利要求4所述的方法,若确定当前坐标不存在基准坐标,则将当前坐标确定为形成地理围栏的加入坐标。The method of claim 4, if it is determined that the reference coordinates are not present in the current coordinates, determining the current coordinates as the joining coordinates forming the geofence.
  8. 如权利要求1所述的方法,判断当前坐标与基准坐标之间的距离是否大于等于加入距离包括:通过坐标列表中的所述多个坐标之间的距离和与加入坐标的预定最大数量计算加入距离。The method of claim 1, determining whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance comprises: calculating by using a distance between the plurality of coordinates in the coordinate list and a predetermined maximum number of joining coordinates distance.
  9. 如权利要求8所述的方法,所述距离包括曼哈顿距离。The method of claim 8 wherein the distance comprises a Manhattan distance.
  10. 一种地理围栏生成设备,包括:A geofence generating device includes:
    接收单元,接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标;Receiving unit, receiving a plurality of coordinates in the coordinate list, wherein the plurality of coordinates includes current coordinates;
    确定基准坐标单元,确定当前坐标的基准坐标;Determining a reference coordinate unit to determine a reference coordinate of the current coordinate;
    距离判断单元,判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量;The distance determining unit determines whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be a joining coordinate in the distance;
    第一确定单元,响应于距离判断单元判断出当前坐标与基准坐标之间的距离大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标;The first determining unit determines, according to the distance determining unit, that the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, and determines that the current coordinate is the joining coordinate forming the geofence;
    生成单元,利用确定的加入坐标,生成地理围栏。The generating unit generates a geofence using the determined joining coordinates.
  11. 如权利要求10所述的设备,还包括:The apparatus of claim 10, further comprising:
    计算筛选概率单元,计算筛选概率,所述筛选概率是在概率上判断当前坐标是否被确定为加入坐标的度量;Calculating a screening probability unit, and calculating a screening probability, wherein the screening probability is a metric that determines whether the current coordinate is determined to be a joining coordinate by probability;
    第二确定单元,响应于距离判断单元判断出当前坐标与基准坐标之间的距离小于加入距离,通过筛选概率确定当前坐标是否为加入坐标。The second determining unit determines, according to the distance determining unit, that the distance between the current coordinate and the reference coordinate is less than the joining distance, and determines whether the current coordinate is the joining coordinate by using the screening probability.
  12. 如权利要求10所述的设备,第一确定单元确定当前坐标为形成地理围栏的加入坐标之后,按照坐标列表中的所述多个坐标形成的闭合轮廓的顺时针方向或逆时针方向,确定当前坐标的下一坐标是否为形成地理围栏的加入坐标。The apparatus according to claim 10, wherein the first determining unit determines that the current coordinate is a clockwise or counterclockwise direction of the closed contour formed by the plurality of coordinates in the coordinate list after forming the coordinate of the geofence, Whether the next coordinate of the coordinate is the joining coordinate that forms the geofence.
  13. 如权利要求10所述的设备,基准坐标是在时间上距当前坐标最近的加入坐标。The apparatus of claim 10, wherein the reference coordinates are joining coordinates that are closest in time to the current coordinates.
  14. 如权利要求10所述的设备,还包括:第三确定单元,响应于基准坐标单元确定不存在基准坐标,将当前坐标确定为形成地理围栏的加入坐标。The apparatus according to claim 10, further comprising: a third determining unit that determines the current coordinates to be the joining coordinates forming the geofence in response to the reference coordinate unit determining that the reference coordinates are not present.
  15. 如权利要求10所述的设备,距离判断单元通过坐标列表中的所述多个坐标之间的距离和与加入坐标的预定最大数量计算加入距离。The apparatus according to claim 10, wherein the distance judging unit calculates the joining distance by the distance between the plurality of coordinates in the coordinate list and the predetermined maximum number of the joining coordinates.
  16. 如权利要求11所述的设备,计算筛选概率单元通过加入坐标的预定期望数量、加入坐标的实际数量以及坐标列表中的所述多个坐标的数量计算筛选概率。The apparatus of claim 11, the calculating the screening probability unit calculates the screening probability by adding a predetermined desired number of coordinates, the actual number of joining coordinates, and the number of the plurality of coordinates in the coordinate list.
  17. 如权利要求11所述的设备,第二确定单元利用随机数分配算法,向当前坐标分配随机数,其中,随机数的取值范围在0到1之间;若向当前坐标分配的随机数小于筛选概率,则确定当前坐标为加入坐标。The apparatus according to claim 11, wherein the second determining unit assigns a random number to the current coordinate by using a random number allocation algorithm, wherein the random number ranges from 0 to 1; if the random number assigned to the current coordinate is smaller than To filter the probability, determine the current coordinate as the joining coordinate.
  18. 如权利要求10至17中的任一权利要求所述的设备,所述距离包括曼哈顿距离。The apparatus of any of claims 10 to 17, the distance comprising a Manhattan distance.
  19. 一种地理围栏设备,包括:A geofence device comprising:
    处理器;以及Processor;
    被安排成存储计算机课执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:A memory arranged to store computer class execution instructions that, when executed, cause the processor to perform the following operations:
    接收坐标列表中的多个坐标,其中,所述多个坐标包括当前坐标;Receiving a plurality of coordinates in the coordinate list, wherein the plurality of coordinates includes a current coordinate;
    确定当前坐标的基准坐标;Determining the reference coordinates of the current coordinates;
    判断当前坐标与基准坐标之间的距离是否大于等于加入距离,其中,加入距离是在距离上判断当前坐标是否被确定为加入坐标的度量;Determining whether the distance between the current coordinate and the reference coordinate is greater than or equal to the joining distance, wherein the joining distance is a metric that determines whether the current coordinate is determined to be a joining coordinate in the distance;
    若大于等于加入距离,确定当前坐标为形成地理围栏的加入坐标;If it is greater than or equal to the joining distance, it is determined that the current coordinate is the joining coordinate forming the geofence;
    利用确定的加入坐标,生成地理围栏。A geofence is generated using the determined join coordinates.
PCT/CN2018/097275 2017-07-28 2018-07-26 Geo-fence generating method and device thereof WO2019020082A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710631406.3 2017-07-28
CN201710631406.3A CN107623897B (en) 2017-07-28 2017-07-28 Geography fence generation method and its equipment

Publications (1)

Publication Number Publication Date
WO2019020082A1 true WO2019020082A1 (en) 2019-01-31

Family

ID=61088241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097275 WO2019020082A1 (en) 2017-07-28 2018-07-26 Geo-fence generating method and device thereof

Country Status (3)

Country Link
CN (1) CN107623897B (en)
TW (1) TWI674014B (en)
WO (1) WO2019020082A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623897B (en) * 2017-07-28 2019-10-15 阿里巴巴集团控股有限公司 Geography fence generation method and its equipment
CN108322890B (en) * 2018-05-15 2021-01-08 北京万兔思睿科技有限公司 Electronic fence range generation method and device
CN110324785B (en) * 2019-07-02 2021-03-16 北京百度网讯科技有限公司 Information recommendation method, device, equipment and computer readable storage medium
CN116668951B (en) * 2022-10-26 2024-04-23 荣耀终端有限公司 Method for generating geofence, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314798A (en) * 2010-07-01 2012-01-11 北京四维图新科技股份有限公司 Method and device for automatically simplifying shape points of polygonal surface elements of electronic map
US20130212065A1 (en) * 2012-02-15 2013-08-15 Flybits, Inc. Zone Oriented Applications, Systems and Methods
CN105718465A (en) * 2014-12-02 2016-06-29 阿里巴巴集团控股有限公司 Geofence generation method and device
CN106162544A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of generation method and apparatus of geography fence
CN107623897A (en) * 2017-07-28 2018-01-23 阿里巴巴集团控股有限公司 Geography fence generation method and its equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073981B (en) * 2011-02-23 2012-11-14 中国测绘科学研究院 Point group geographic entity selection method under the restriction of correlated elements
US20140258201A1 (en) * 2013-03-05 2014-09-11 Qualcomm Incorporated Generating a geofence via an analysis of a gps fix utilization distribution
US9874452B2 (en) * 2013-03-14 2018-01-23 Ford Global Technologies, Llc Method and apparatus for enhanced driving experience including dynamic POI identification
CN103533501B (en) * 2013-10-15 2018-12-18 厦门雅迅网络股份有限公司 A kind of geography fence generation method
TWI616766B (en) * 2015-11-27 2018-03-01 Chunghwa Telecom Co Ltd Geographic fence automatic correction method
CN106840139B (en) * 2016-12-29 2020-06-02 南昌黑鲨科技有限公司 Electronic fence acquisition method and device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314798A (en) * 2010-07-01 2012-01-11 北京四维图新科技股份有限公司 Method and device for automatically simplifying shape points of polygonal surface elements of electronic map
US20130212065A1 (en) * 2012-02-15 2013-08-15 Flybits, Inc. Zone Oriented Applications, Systems and Methods
CN105718465A (en) * 2014-12-02 2016-06-29 阿里巴巴集团控股有限公司 Geofence generation method and device
CN106162544A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of generation method and apparatus of geography fence
CN107623897A (en) * 2017-07-28 2018-01-23 阿里巴巴集团控股有限公司 Geography fence generation method and its equipment

Also Published As

Publication number Publication date
TWI674014B (en) 2019-10-01
TW201911889A (en) 2019-03-16
CN107623897B (en) 2019-10-15
CN107623897A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
JP6692561B2 (en) Blockchain consensus method and device
US10545794B2 (en) Blockchain-based data processing method and equipment
CN109076303B (en) Spatial audio resource management and mixing for applications
WO2018177250A1 (en) Block chain based data processing method and device
WO2019020082A1 (en) Geo-fence generating method and device thereof
WO2018177235A1 (en) Block chain consensus method and device
TWI671699B (en) Method and device for processing transaction request
US9848306B2 (en) Contextually aware dynamic group formation
EP3565219A1 (en) Service execution method and device
CN105335389B (en) A kind of business method for visualizing and system
TW201915867A (en) Virtual card opening method and system, payment system, and card issuing system
CN107528885B (en) Service request processing method and device
TWI686758B (en) Data request processing, inquiry message processing method, device and equipment
WO2021239087A1 (en) Data processing method, apparatus and device, and medium
KR20150084192A (en) Apparatus And Method For Providing Sound
CN116719591A (en) Stock right map display method and device, storage system and electronic equipment
TWI685235B (en) Transaction processing method and system
WO2019062692A1 (en) Method and apparatus for determining importance degree of user, and electronic device
WO2020135143A1 (en) Application performance management information display method and apparatus, device and storage medium
WO2020133455A1 (en) Application program management method, device, storage medium and electronic apparatus

Legal Events

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

Ref document number: 18839361

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18839361

Country of ref document: EP

Kind code of ref document: A1