Geo-fence identification method and system, computer readable storage medium

文档序号:1020954 发布日期:2020-10-27 浏览:11次 中文

阅读说明:本技术 地理围栏识别方法和系统、计算机可读存储介质 (Geo-fence identification method and system, computer readable storage medium ) 是由 张伟 刘旻 杜盼盼 于 2020-01-17 设计创作,主要内容包括:本发明提供了一种地理围栏识别方法和系统、计算机可读存储介质,其中,地理围栏识别方法包括:接收针对地图界面的操作指令,根据操作指令在地图界面上确定至少一个备选地理围栏;按照预设规则对备选地理围栏进行排序,以得到备选地理围栏序列;展示备选地理围栏序列。应用了本发明提供的技术方案,通过根据用户的操作指令确定一个或多个备选地理围栏,并根据契合度或优先级等预设规则对备选地理围栏进行排序,按照排序后的序列展示给用户,便于用户选择。无需用户沿建筑物边界或道路等地图元素手动勾画区域,降低了用户操作难度。同时根据操作指令“预测”用户的目标地理围栏,并提供备选项共用户选择,极大地提高了地理围栏识别率。(The invention provides a geo-fence identification method and system and a computer-readable storage medium, wherein the geo-fence identification method comprises the following steps: receiving an operation instruction aiming at the map interface, and determining at least one alternative geo-fence on the map interface according to the operation instruction; sequencing the alternative geo-fences according to a preset rule to obtain an alternative geo-fence sequence; an alternative geo-fence sequence is presented. By applying the technical scheme provided by the invention, one or more alternative geo-fences are determined according to the operation instruction of the user, the alternative geo-fences are sorted according to preset rules such as the degree of engagement or priority, and the sorted alternative geo-fences are displayed to the user according to the sorted sequence, so that the user can conveniently select the alternative geo-fences. The user does not need to manually draw the area along the boundary of the building or the map elements such as roads, and the operation difficulty of the user is reduced. Meanwhile, the target geo-fence of the user is 'predicted' according to the operation instruction, and alternative items are provided for selection of the user, so that the geo-fence identification rate is greatly improved.)

1. A geo-fence identification method, comprising:

receiving an operation instruction aiming at a map interface, and determining at least one alternative geo-fence on the map interface according to the operation instruction;

sequencing the alternative geo-fences according to a preset rule to obtain an alternative geo-fence sequence;

presenting the alternative geo-fence sequence.

2. The method according to claim 1, wherein the operation instruction comprises a click operation instruction, and the step of determining at least one alternative geo-fence on the map interface according to the operation instruction specifically comprises:

determining a positioning point on the map interface according to the clicking operation instruction;

determining that the localization point falls into any geo-fence in a geo-fence library, or determining that the shortest distance between any geo-fence and the localization point is less than or equal to a preset distance, and determining the geo-fence as the alternative geo-fence.

3. The method according to claim 2, wherein the operation instruction comprises a frame selection operation instruction, and the step of determining at least one alternative geo-fence on the map interface according to the operation instruction specifically comprises:

determining a frame selection starting point and a frame selection end point according to the frame selection operation instruction, and dividing a rectangular first geographical area on the map interface according to the frame selection starting point and the frame selection end point;

determining, in the geofence library, that any of the geofences intersects the first geographic area, or that a minimum distance of any of the geofences from the geographic area is less than or equal to the preset distance, determining the geofence as the alternate geofence.

4. The method according to claim 2, wherein the operation instruction comprises a smearing operation instruction, and the step of determining at least one alternative geo-fence on the map interface according to the operation instruction specifically comprises:

determining a smearing track on the map interface according to the smearing operation instruction;

determining, in the geo-fence library, that the scribble trajectory passes any of the geo-fences, the geo-fence being determined to be the alternate geo-fence.

5. The geofence identification method according to any of claims 1 to 4, wherein the step of ranking the alternative geofences according to a preset rule specifically comprises:

determining first characteristic information of the alternative geo-fence, and determining a first weight value corresponding to the first characteristic information;

sorting the geofences according to the first weight to obtain a first alternative geofence sequence.

6. The method of claim 5, wherein the step of ranking the alternative geo-fences according to a preset rule further comprises:

determining a historical operation record corresponding to the operation instruction, determining second characteristic information corresponding to the operation instruction according to the historical operation record, and determining a second weight value corresponding to the second characteristic information;

and sorting the geo-fences according to the second weight value to obtain a second alternative geo-fence sequence.

7. The geofence identification method of claim 6, further comprising:

determining the alternative geo-fence sequence from the first alternative geo-fence sequence and the second alternative geo-fence sequence.

8. The geo-fence identification method of any of claims 2-4, further comprising:

receiving a geofence creation instruction, dividing a creation area on the map interface according to the geofence creation instruction, and determining the creation area as a newly-added geofence;

updating the geo-fence library according to the newly added geo-fence.

9. A geo-fence identification system, comprising:

a memory configured to store a computer program;

a processor configured to execute the computer program to implement the geo-fence identification method of any one of claims 1 to 8.

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

Technical Field

The invention relates to the technical field of geo-fence identification, in particular to a geo-fence identification method, a geo-fence identification system and a computer-readable storage medium.

Background

In the related art, when a user selects a geo-fence (geo-reference, which is used to indicate a geographic location area and may correspondingly trigger a corresponding geo-fence event when entering or leaving the area), the user is required to manually delineate an area along a map element such as a building boundary or a road, and the system identifies whether the area is a geo-fence according to the area delineated by the user, so that on one hand, the user is inconvenient to operate, and on the other hand, the geo-fence identification success rate is low.

Disclosure of Invention

The present invention is directed to solving at least one of the problems of the prior art or the related art.

To this end, the first aspect of the invention provides a geo-fence identification method.

A second aspect of the invention proposes a geo-fence identification system.

A third aspect of the invention proposes a computer-readable storage medium.

In view of the above, a first aspect of the present invention provides a geo-fence identification method, including: receiving an operation instruction aiming at the map interface, and determining at least one alternative geo-fence on the map interface according to the operation instruction; sequencing the alternative geo-fences according to a preset rule to obtain an alternative geo-fence sequence; an alternative geo-fence sequence is presented.

In the technical scheme, a sequence containing one or more alternative geo-fence options is obtained by receiving an operation instruction of a user for a map interface, determining at least one alternative geo-fence for the user to select according to the received operation instruction, and sequencing the determined alternative geo-fences according to a preset rule, so that the user can select the alternative geo-fences.

By applying the technical scheme provided by the invention, when the geo-fence selected by the user is identified, one or more alternative geo-fences are determined according to the operation instruction of the user, the alternative geo-fences are sequenced according to preset rules such as the degree of engagement or priority, and the sequenced geo-fences are displayed to the user, so that the user can conveniently select the geo-fences. The operation instruction can be a simple click instruction, a frame selection instruction or a smearing instruction and the like, the user does not need to manually outline the area along the boundary of the building or the map elements such as roads and the like, and the operation difficulty of the user is reduced. Meanwhile, the target geo-fence of the user is 'predicted' according to the operation instruction, and alternative items are provided for selection of the user, so that the geo-fence identification rate is greatly improved.

In addition, the geo-fence identification method in the above technical solution provided by the present invention may further have the following additional technical features:

in the above technical solution, the operation instruction includes a click operation instruction, and the step of determining at least one alternative geo-fence on the map interface according to the operation instruction specifically includes: determining a positioning point on a map interface according to the clicking operation instruction; determining that the positioning point falls into any geo-fence in the geo-fence library, or determining that the shortest distance between any geo-fence and the positioning point is less than or equal to a preset distance, and determining the geo-fence as an alternative geo-fence.

In the technical scheme, the operation instruction is a click operation instruction, and specifically, a user marks a 'point' on a map interface in a 'click' or 'mouse click' mode and the like. At this time, the system traverses the stored geo-fence library, and searches whether one or more geo-fences exist in the geo-fence library, so that the positioning point can be within the range of the geo-fence. If so, the geofence that satisfies the condition is determined to be an alternate geofence.

Further, in order to expand the candidate range, if one or more geo-fences exist in the geo-fence library, if the shortest distance between the geo-fence and the anchor point is less than or equal to a preset distance, the geo-fence meeting the condition is also determined as the candidate geo-fence.

Specifically, when determining whether the shortest distance between the positioning point and the geo-fence is less than or equal to the preset distance, a circle may be drawn with the positioning point as the center of the circle and the preset distance as the radius. And if the obtained circle is intersected with any geo-fence, determining that the shortest distance between the geo-fence and the positioning point is less than or equal to a preset distance.

The alternative geo-fences are determined according to the clicking operation of the user, so that the operation difficulty of the user can be reduced on one hand, and the recognition success rate of the geo-fences can be effectively improved on the other hand.

In any of the above technical solutions, the operation instruction includes a frame selection operation instruction, and the step of determining at least one alternative geo-fence on the map interface according to the operation instruction specifically includes: determining a frame selection starting point and a frame selection end point according to the frame selection operation instruction, and dividing a rectangular first geographical area on a map interface according to the frame selection starting point and the frame selection end point; determining that any geo-fence intersects the first geographical area in the geo-fence library, or determining that the minimum distance of any geo-fence from the geographical area is less than or equal to a preset distance, determining the geo-fence as an alternative geo-fence.

In the technical scheme, the operation instruction is a frame selection instruction, and specifically, a rectangular first geographical area is marked off on a map by a user in a mode of 'long press by touch' and 'drag', or 'long press by mouse' and 'drag', and the like.

Specifically, when the user operates, a point where a mouse pointer is located when a mouse button of the user is pressed down, or a first contact point of a finger when the finger touches the mouse button, is used as a frame selection starting point, a point where the mouse pointer is located when the user releases a mouse case, or a touch termination point where the finger lifts off a touch area is used as a frame selection end point, a straight line segment is determined between the frame selection starting point and the frame selection end point, a rectangular frame is drawn by taking the straight line segment as a diagonal line, and an area covered by the rectangular frame is a first geographical area.

After determining the first geographic area, the system traverses the stored geo-fence library, looking up in the geo-fence library whether one or more geo-fences exist that can satisfy the intersection of the geo-fence with the first geographic area. If so, the geofence that satisfies the condition is determined to be an alternate geofence.

Further, to expand the candidate range, if one or more geo-fences exist in the geo-fence library, if the shortest distance between the geo-fence and the first geographic area is less than or equal to a preset distance, determining the geo-fence meeting the condition as the candidate geo-fence.

When determining whether the shortest distance between the first geographic area and any one of the geo-fences is less than or equal to a preset distance, calculating a straight-line distance between the boundary of the first geographic area and the boundary of any one of the geo-fences, and when the straight-line distance is less than or equal to the preset distance, determining that the shortest distance between the geo-fence and the positioning point is less than or equal to the preset distance.

The alternative geo-fences are determined according to the frame selection operation of the user, so that the operation difficulty of the user can be reduced on one hand, and the recognition success rate of the geo-fences can be effectively improved on the other hand.

In any of the above technical solutions, the operation instruction includes a daubing operation instruction, and the step of determining at least one alternative geo-fence on the map interface according to the operation instruction specifically includes: determining a smearing track on a map interface according to the smearing operation instruction; determining that the smearing track passes through any geo-fence in the geo-fence library, and determining the geo-fence as an alternative geo-fence.

In the technical scheme, the operation instruction is a smearing operation instruction, specifically, a moving track of a touch point or a mouse pointer is left on a map interface by a user in a mode of long-time pressing of a touch key or a mouse key, and the moving track is superposed on the map interface in an image mode and covers at least part of a map area. At this point, the system traverses the geo-fence library, looks up in the geo-fence library whether there are one or more geo-fences that are traversed by the scribble trail, and determines the geo-fence traversed by the scribble trail as the alternate geo-fence.

The alternative geo-fence is determined according to the smearing operation of the user, so that the operation difficulty of the user can be reduced on one hand, and the recognition success rate of the geo-fence can be effectively improved on the other hand.

In any of the above technical solutions, the step of sorting the alternative geo-fences according to a preset rule specifically includes: determining first characteristic information of the alternative geo-fence, and determining a first weight value corresponding to the first characteristic information; the geofences are sorted by a first weight to obtain a first alternative geofence sequence.

In the technical scheme, after the alternative geo-fences are determined, the multiple alternative geo-fences are sorted according to a preset rule. Specifically, after all of the candidate geo-fences are determined, first characteristic information of each of the candidate geo-fences is determined, respectively. The first feature information may be POI (Point Of interest, which refers to any non-geographically meaningful area on a map, such as a store, a gas station, a hospital, and other public facilities) information or geographic information (such as a city, a mountain, and a river), and further obtain a first weight value corresponding to the first feature information, where the first weight value reflects the importance Of different geographic areas.

For example, if the first feature information is POI information, different first weight values may be assigned to different geographic areas according to importance levels of functions of the geographic areas, for example, a higher weight value may be assigned to a civil public facility such as "hospital" or "station", and a lower weight value may be assigned to a service location such as "store" or "bar".

Different weighted values are distributed to different geo-fences according to the first characteristic information of the geo-fences, and the alternative geo-fences are sequenced according to the weighted values, so that the finally obtained alternative geo-fence sequence can better meet the actual needs of users, and the reliability of geo-fence identification is further improved.

In any of the above technical solutions, the step of sorting the alternative geo-fences according to a preset rule further includes: determining a historical operation record corresponding to the operation instruction, determining second characteristic information corresponding to the operation instruction according to the historical operation record, and determining a second weight value corresponding to the second characteristic information; sorting the geofences by a second weight to obtain a second alternative geofence sequence.

In the technical scheme, after the alternative geo-fences are determined, the multiple alternative geo-fences are sorted according to a preset rule. Specifically, after all the alternative geo-fences are determined, a historical operation record corresponding to the operation instruction is obtained, that is, the historical operation record of the current user is determined, corresponding second characteristic information is determined according to the historical operation record of the user, and a second weight value corresponding to the second characteristic information is determined.

Wherein the second characteristic information may be usage habits accumulated by the user in long-term use. Places where the user frequently visits, such as the user's home, company, etc., have a higher weight value, or types of public places where the user frequently visits, such as the user likes drinking, bar-like places also have a higher weight value. And for places which are not visited, if the user never visits the beauty service places, the places are assigned with lower weight values.

Different weighted values are distributed to different geo-fences according to the historical operation records of the user, and the alternative geo-fences are sequenced according to the weighted values, so that the finally obtained alternative geo-fence sequence is more suitable for the use habits of the user, and the reliability of geo-fence identification is further improved.

In any of the above technical solutions, the geo-fence identification method further includes: an alternative geo-fence sequence is determined from the first alternative geo-fence sequence and the second alternative geo-fence sequence.

In the technical scheme, the first alternative geo-fence sequence and the second alternative geo-fence sequence are combined, and the final alternative geo-fence sequence is determined, so that on one hand, the actual needs of the user can be accurately predicted, on the other hand, the obtained alternative geo-fence sequence can conform to the use habits of the user, the accuracy of geo-fence identification is further improved, and the user experience is effectively improved.

In any of the above technical solutions, the geo-fence identification method further includes: receiving a geofence creation instruction, dividing a creation area on a map interface according to the geofence creation instruction, and determining the creation area as a newly-added geofence; updating the geo-fence library according to the newly added geo-fence.

In the technical scheme, a user can divide a creation area on a map interface through a geofence creation instruction and mark the creation area as a new geofence. Adding the new geo-fence into the geo-fence library can realize the real-time update of the geo-fence library.

Specifically, in the using process of the user, there may not be pre-stored geo-fence data in a geographical area such as a newly opened storefront or a fresh known map area, and the user may mark the geographical area as a newly added geo-fence in a manual demarcation manner, thereby implementing maintenance of the geo-fence library.

A second aspect of the present invention provides a geo-fence identification system comprising: a memory configured to store a computer program; a processor configured to execute a computer program to implement the method for geofence identification provided in any of the above-mentioned technical solutions, and therefore, the system for geofence identification includes all the beneficial effects of the method for geofence identification provided in any of the above-mentioned technical solutions, which are not described herein again.

A third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for geofence identification provided in any of the above technical solutions, and therefore, the computer-readable storage medium includes all the beneficial effects of the method for geofence identification provided in any of the above technical solutions, which are not described herein again.

Drawings

The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

FIG. 1 shows a flow diagram of a geo-fence identification method according to one embodiment of the present invention;

FIG. 2 illustrates another flow diagram of a geo-fence identification method according to one embodiment of the present invention;

FIG. 3 illustrates an operational diagram of a click instruction in a geo-fence identification method according to one embodiment of the present invention;

FIG. 4 illustrates yet another flow diagram of a geo-fence identification method according to an embodiment of the present invention;

FIG. 5 illustrates an operational diagram of a framing instruction in a geo-fence identification method according to one embodiment of the present invention;

FIG. 6 illustrates yet another flow diagram of a geo-fence identification method according to an embodiment of the present invention;

fig. 7 illustrates an operational diagram of smearing instructions in a geo-fence identification method according to one embodiment of the present invention;

FIG. 8 illustrates yet another flow diagram of a geo-fence identification method according to an embodiment of the present invention;

FIG. 9 illustrates yet another flow diagram of a geo-fence identification method according to an embodiment of the present invention;

FIG. 10 illustrates yet another flow diagram of a geo-fence identification method according to an embodiment of the present invention;

FIG. 11 shows a flow diagram of a geo-fence identification method according to another embodiment of the present invention;

fig. 12 shows a block diagram of a geofence identification system, according to another embodiment of the present invention.

Detailed Description

In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.

The geofence identification method, the geofence identification system, and the computer-readable storage medium according to some embodiments of the present invention are described below with reference to fig. 1-12.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:应用程序管理方法及装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类