WO2017173476A1 - Application of data structures to geo-fencing applications - Google Patents

Application of data structures to geo-fencing applications Download PDF

Info

Publication number
WO2017173476A1
WO2017173476A1 PCT/AU2017/000065 AU2017000065W WO2017173476A1 WO 2017173476 A1 WO2017173476 A1 WO 2017173476A1 AU 2017000065 W AU2017000065 W AU 2017000065W WO 2017173476 A1 WO2017173476 A1 WO 2017173476A1
Authority
WO
WIPO (PCT)
Prior art keywords
geo
fence
fences
smaller
location
Prior art date
Application number
PCT/AU2017/000065
Other languages
French (fr)
Inventor
Filip ELDIC
Original Assignee
Bluedot Innovation Pty Ltd
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
Priority claimed from AU2016901291A external-priority patent/AU2016901291A0/en
Application filed by Bluedot Innovation Pty Ltd filed Critical Bluedot Innovation Pty Ltd
Priority to CA3015384A priority Critical patent/CA3015384A1/en
Priority to AU2017245932A priority patent/AU2017245932A1/en
Priority to EP17778460.0A priority patent/EP3424244A4/en
Priority to US16/078,619 priority patent/US11082802B2/en
Publication of WO2017173476A1 publication Critical patent/WO2017173476A1/en
Priority to AU2020203554A priority patent/AU2020203554B2/en

Links

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/029Location-based management or tracking services
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S1/00Beacons or beacon systems transmitting signals having a characteristic or characteristics capable of being detected by non-directional receivers and defining directions, positions, or position lines fixed relatively to the beacon transmitters; Receivers co-operating therewith
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the field of the disclosure in this document is geo-fencing in particular ways to calculate the relative distance of a location from a geo-fence and associated central processing unit cycles involved in such calculations.
  • Geo-fencing applications are required to use whatever computational power at its disposal to determine the position within a common datum, e.g. typically a mobile computing device, such as a mobile phone.
  • a mobile computing device such as a mobile phone.
  • one or more location-dependent applications could be running all of which use the considerable computing power of the device to determine whether that device is at a predefined location, crossed a geo-line or is external or internal to a predetermined geo-fenced zone.
  • the applications also need to report entrance, and exit events of the mobile device entering or exiting a geo-fenced area and these use similar computational power and are based on location determination as well.
  • Mechanisms of establishing the location of such a device commonly include cell tower (phone system) triangulation, Wi-Fi triangulation, applications of satellite-based navigation such as GPS, inertial navigation and Low Energy Bluetooth (BLE) signal based trilateration.
  • cell tower phone system
  • Wi-Fi wireless fidelity
  • BLE Low Energy Bluetooth
  • Geo-fencing applications increase the level of (typically) battery power used while establishing their location using one or more of the above mechanisms, with each mechanism having a different battery drain characteristic and accuracy of location determination, where generally the greater the accuracy, the greater the battery power usage (drain) and different applications using one or more of the mechanisms for establishing location at an appropriate time to suit the needs of the particular application.
  • the curvature of the earth is not spherical but ellipsoidal (since the volume of the Earth is oblate, not spherical) the complexity of the calculation increases for long distances and each calculation is done with a selected datum. If the elevation is required, then a geoid model can be used so that some calculations will require an elevation component. Thus when location determination by the device is infrequent or when the geo-fenced area is a simple shape, the number and complexity of calculations performed is modest compared to frequent determinations and more complex geo-fence shapes regardless of the distances involved.
  • Another way of determining distance would be to choose to calculate the distance to all of the vertices of the geo-fenced area, which are readily available, since they can be used to define the geo-fenced area very easily, and assumes that the line segments of the rectangle or square are derived from them anyway.
  • a common practice is to create a minimum bounding frame, typically a square or rectangular shape, which generally has 4 sides, that touches the polygon at a minimum of four locations, effectively replacing the polygon with a rectangular shape that is as small as possible but still contains within it, all geo-locations that comprise the polygon.
  • a minimum bounding frame typically a square or rectangular shape, which generally has 4 sides, that touches the polygon at a minimum of four locations, effectively replacing the polygon with a rectangular shape that is as small as possible but still contains within it, all geo-locations that comprise the polygon.
  • Such a shape as illustrated in Figure 3, then simplifies the relative location calculations greatly by removing the first element in the equation - the number of addressable edges for each geo-fence from, in one example from 2000 to 4.
  • the mobile device will recognize that it has entered the bounding frame (and may be required to perform particular actions when it has entered the polygonal geo-fence it represents), however due to its distance from the actual polygonal geo-fenced area, the action initiated may be unwanted, unnecessary, or in some cases potentially dangerous and considered a false trigger. Therefore, it is not practical to use a bounding frame approach for all polygonal geo- fences.
  • a method to reduce central processor unit cycles of mobile computer device by minimising the number of positioning calculations that the mobile computer device needs to perform in reference to any number of complex polygonal geo-fences at the point of each location update, the method comprising the steps of: applying data structures to a deconstructed geo-fence prior to distance calculations for use in a geo-fencing application, wherein an existing geo-fence, represented as geospatial data, to decomposes the geo-fence into a multiplicity of smaller geo- fences which each represent a portion of the existing geo-fence until the multiplicity of smaller geo- fences are representative of the existing geo-fence; and determining the position of the mobile computing device with reference to the closest smaller geo-fence.
  • step a) where each smaller geo-fence is deconstructed into a further number of yet smaller geo-fences when one of the smaller geo-fences intersects the boundary of the complex polygonal geofence this step being repeated for each of the smaller geo-fences to a level of granularity that is sufficient to replace the complex polygonal geofence with a large number of smaller geo-fences whose combined shape mirrors the complex polygonal geo-fence.
  • spatial indexing is used to identify one or more of the smaller geo-fences of the existing geo-fence.
  • the form of spatial indexing used is Quadtree data structure analysis to identify one or more of the smaller geo-fences of the existing geo-fence.
  • the stored geospatial data is representative of selected complex polygonal geo-fences and those that are decomposed are only those that are in the vicinity of the mobile device.
  • the predetermined data representative of the one or more geospatial data is required to represent the chosen geo-fence as a multitude of smaller geo-fences with a simpler geometry that when grouped, closely mirror the shape of the complex polygonal geo- fence and then applying the principles of Quadtree data structures on the subset of geo-fences until only the closest smaller geo-fence is located and using that smaller geo-fence for a positioning calculation.
  • Figure 1 depicts a spherical earth representation having a point to point distance displayed
  • Figure 2 depicts a sample set of formulae for calculating distance between two points on a sphere for small angles
  • Figure 3 depicts a prior art approach to simplifying the determination of distance of a mobile device from a polygonal geo-fence by surrounding the polygon with a minimum bounding box and using the box for distance calculations instead of the polygon;
  • Figure 4 depicts a complex polygonal geo-fence bounded by a prior art rectangular bounding frame over a geographic area showing road systems and geographic characteristics
  • Figure 5 depicts a complex polygonal geo-fence the same as Figure 4 and a mobile computer device location X and illustrative of the calculations required to determine the distance of the device location from each side of the polygon;
  • Figure 6 depicts a more complex polygonal shape than depicted in Figures 4 and 5 partially overlayed with smaller rectangular shapes generated by a Quadtree approach;
  • Figure 7 depicts the complex polygonal shape of Figure 6 further partially overlayed with smaller rectangular shapes further generated by the Quadtree approach;
  • Figure 8 depicts the complex polygonal shape of Figure 6 yet further partially overlayed with smaller rectangular shapes further generated by the Quadtree Approach
  • Figure 9 depicts a flow diagram of the process of decomposing a geo-fence using Quadtree analysis
  • Figure 10 depicts a small portion of the complex polygonal shape of Figure 6 illustrating the granularity once the required or predetermined minimum smaller geo-fence size is reached;
  • Figure 1 1 depicts a spatial key indexing to geo-hash conversion example
  • Figure 12 depicts an example of the flow of steps relating to distance determination of a mobile computer device from a pre-resolved granular geo-fence region which lies on the boundary of a complex polygonal geo-fence;
  • Figure 13 depicts a representative of the use of geo-hashes to identify specific regions on a map with a particular representation
  • Figure 14 an alternative representation of the creation of granular geo-fences to define a region (dark inner area) overlayed by parallelograms of the same shape formed in a grid pattern.
  • Figure 5 is illustrative of the calculations, which are made from the location marked by the X, to each side of a complex polygon there being 7 arrows each representing a calculation of the distance of the nominal device position, marked with an X from a respective side of the polygon.
  • the number of sides of the illustrated polygon is small relative to the possibilities (as shown by way of comparison with the complex polygonal shape depicted in Figure 6).
  • a 2000 edged complex polygon (not shown) will still require the 2000 calculations.
  • an existing complex polygonal geo-fence is deconstructed into a large number of smaller, simpler geo-fence shapes, which when treated as a consolidated shape collectively overlays the shape of the complex polygon.
  • the first step is based on a starting boundary being the bounding box (the most Westerly, Northerly, Easterly and Southerly co-ordinates of the geo-fence can be used to create a virtual box) thus the entire complex polygonal geo-fence wholly lies within a very large shape referred to as the bounding box.
  • the bounding box the most Westerly, Northerly, Easterly and Southerly co-ordinates of the geo-fence can be used to create a virtual box
  • the bounding box the most Westerly, Northerly, Easterly and Southerly co-ordinates of the geo-fence can be used to create a virtual box
  • Figures 6, 7 and 8 are illustrative of the decomposition (at least in part to illustrate the process) of the geo-fence boundary being bounded and then decomposed into multiple smaller regular polygons. The process is conducted multiple times to create a grid of data which represents multiple regular polygons (co-ordinates of which are part of the data) which each overlie the original complex polygon (represented best by a table of relevant data).
  • each quadrant can be identified by a digital code.
  • the terms top, bottom, left-hand and right-hand will be used, but they could also be substituted by the terms, North, South, West and East since this is geographically based environment and the latitude and longitude pairs (with horizontal values where applicable).
  • the top left-hand quadrant is 00
  • the top right-hand quadrant is 10
  • the bottom left-hand quadrant is 01
  • the bottom right-hand quadrant is 1 1.
  • the bounding box has no size limitation and could traverse the Earth but is unlikely to be the case, however, the digital identification and transformation of those
  • each quadrant is merely a range of latitude and longitude and since the predetermined sides of the complex polygon are defined by latitude longitudinal pairs, a comparison of respective values will soon determine whether a side of the complex polygon will fall within or outside a quadrant.
  • that quadrant is quartered again.
  • the bottom right-hand quadrant 11 is shown as four quadrants, where in accord with the digital identification, the top left-hand quadrant is 1100, the top right-hand quadrant is 1110, the bottom left-hand quadrant is 1101, and the bottom right-hand quadrant is 1111.
  • each of them is quartered, but for illustration, the 1111 quadrant is shown in Figure 6 as being further quartered, into 111100, 111110, 111101 and 111111.
  • a formed quadrant (111101) is intersected by any one or more lines of the polygon that quadrant is quartered again to become 11111000, 11111010, 1111101 and 11111011 as depicted in Figure 7. Where again it can be seen and accordingly determined that 11111010 be ignored (OUT).
  • Figure 9 depicts a flow diagram of the repeated process of decomposing a geo-fence using Quadtree analysis and testing to determine whether the segmentation should continue or not.
  • Figure 10 is a representation of the selected granularity of the final quartering, such that the small rectangular areas showed in the Figure, all include a portion of the complex polygonal shape and as such those small rectangular areas are representative of that complex polygonal shape (thus mirroring that shape to any required level of granularity). Since each of those areas have a digital identity then it becomes possible to sort, re-arrange and in particular analyse those digital identities using computational methods which are very CPU efficient.
  • a polygonal geo-fence (with e.g.2000 edges) is defined by recording the coordinates of each point where two adjacent edges meet (ignoring self-intersecting edges).
  • the polygonal geo-offence is surrounded by a minimum bounding box, and the bounding box is split into equal quarters. A query is run to determine if any of the quarters contains any portion of the original polygon.
  • the quarter as being wholly contained within the polygon and record a rectangular (including a square) geo-fence that is to be used as a substituting element of the original polygon.
  • the wholly contained geo-fence is associated with a geo-hash that indicates its position within the bounding box and within a common geospatial datum.
  • a geo-hash is a geocoding system comprised of a hierarchical spatial data structure which divides space (such as the surface of the earth) into grids, and the format of the reference for each grid is indicative of each grids relationship with other grid references, such as short Uniform Resource Locators (URLs) which uniquely identify positions on the Earth, so that referencing them in emails, forums, and websites and also in tables and databases, is more convenient.
  • the e structure of geo-hashed data has two advantages. First, data indexed by geo-hash will have all points for a given rectangular area in contiguous slices (the number of slices depends on the precision required and the presence of geo-hash "fault lines"). This is especially useful in database systems where queries on a single index are much easier or faster than multiple-index queries.
  • this index structure can be used for a quick-and-dirty proximity search: the closest points are often among the closest geo-hashes. More about the format and use of geo-hashes is provided later in the specification.
  • the rectangular geo-fence is stored within the device's memory along with the geo-hash. All overlapping constituting geo-fences are combined in the device's memory to form a new representation of the polygonal geo-fence with each element retaining its individual geo-hash.
  • the quadrant there is, of course, a limit to how small the quadrant can or needs to become.
  • the way in which the limit is predetermined is determined before the beginning of the process, or on the fly, and can be dependent on many factors.
  • the land areas of the first bounding box are determined, and if large, the size (area) of the smallest quadrant is large, compared to a smaller land area of the first bounding box, using smaller
  • the limit on the minimum quadrant size can be determined by exceeding the resolution of the GPS chipset used by the respective device, at least by several factors, i.e. if a segmented quadrant is 10cm wide, and the best GPS accuracy is e.g. 5 meters, then there is no need to segment further.
  • the shape generated by this analysis consists of many quadrants (possibly many thousands), but it will not be the exact shape of the polygon, but it will be very close (dependant on the maximum resolution or number of quadrants generated).
  • Figure 10 is an exploded view of a very small portion of the image of the complex polygon of Figures 6, 7 and 8 taken to the predetermined level of quartering.
  • the length of the digital identification of the rectangular geo-fence is likely to be very long, e.g.
  • a complex polygonal geo-fence with e.g. 2000 edges and in an aspect it is disclosed that a complex polygonal geo-fence can be represented by a greater multitude (possibly tens of thousands) of regular shaped geo-fences there are then many times 2000 more edges to deal with and thus a need for the device to perform a significant number of calculations being many more than the 2000 edges approach described previously.
  • Quadtree analysis is the most used recursive decomposition method and therefore included as an embodiment, but that does not exclude other analysis techniques.
  • the Quadtree approach provides a balanced tree structure of degree four. This hierarchical model where each node has four sons provides a distinct advantage to computational performance of the analysis because it exhibits a tree file structure which allows for compaction techniques and efficient file addressing schemes.
  • the quadrant identification coding described by way of example illustrates this property.
  • locating the geographically closest quadrant knowing the current location of a device can be illustrated by moving from the closest largest quadrant 1 1, to the second largest closest quadrant 1 1 1 1 and then eventually to 1 1 1 1011 1 1 1...1 1.
  • a geo-hash is a representation of these long digital identifications which is explained later in this specification.
  • Many chosen approaches can be used to ultimately reduce (compared with the described prior art method) the CPU cycles devoted to the initial analysis of large amounts of spatial data.
  • recursive subdivision facilitates windowing of large spatial databases representative of, say multiple geo-fence zones, to relatively quickly identify those geo-fences that do not need to be analysed.
  • the Quadtree approach uses a general data model having a hierarchical data structure based on the principle of recursive decomposition using quadrants.
  • An example of a data set representing the many regular shaped geo-fences is provided in Figure 1 1, and in this example, the digital identification used is different to that used previously, but that does not change the approach or the methods used.
  • Quadtree data structures are applied to the new set of regular geo- fences to locate the closest smaller geo-fence which is representative of a portion of the entire complex polygon.
  • a mobile device When applying the principles of Quadtree data structures, a mobile device is capable of storing, in a suitable format, the multitude of smaller geo-fences so that the process of Quadtree analysis can be most efficiently applied, to thus minimise the CPU cycles involved in the analysis of the stored data.
  • the CPU of the mobile device is to determine which quadrant or grouping of the geo-fences it is closest to, and thus being able to ignore the other 3 quadrants.
  • Figure 12 is a flow diagram of the process conducted by the mobile computer device.
  • the mobile device receives a new location update in the form of co-ordinates pertaining to a common datum.
  • the device will translate its location in a co-ordinate form to a geo-hash reference.
  • the device will then analyse the stored representation of the surrounding polygonal geo- fences consisting of a multitude of rectangular geo-fences.
  • the device determines through geo-hash analysis which individual rectangular geo-fence is closest to the current location.
  • the device and then measures its distance to the closest rectangular geo-fence. [0091 ] Details regarding the determination of closeness can be dealt with in many ways without having to perform distance calculations, and by way of example only, geo-hash tables and sorting techniques can be used, depending on the format of the geospatial data.
  • Quadtree-like data structure for storing polygonal geo-fence representations using, for example, a PR Quadtree and PM Quadtree some with more or less ability to store points, lines and regions depending on the granularity.
  • the complex polygonal geo-fence data processing done to determine the relevant data is CPU intensive, but need only occur when needed at the time of downloading the geo-fence data.
  • the mobile computer device say a mobile phone device
  • receives or generates with an on-board geolocation determination device as a location update the mobile computer device need only determine which of the already granular (typically very small) rectangular or square geo-fence region is closest based on the geo-hash, and then the mobile computer device determines the distance to only that one small geo-fence, disregarding others.
  • the computing power required is used for each of the potentially 1,000's of separate geo- fence zones that can be used by one or more applications on the mobile computing device, but, only once each time it is down loaded not for each and every geo-fence, each and every time since the nearest geo-hash associated with a granular geo-fence is a traversal problem, not a multiple distance calculation.
  • the closest granular geo-fence is analysed by performing multiple rounds of Quadtree deconstruction on the grid/table representative of that geo-fence, until the device needs to take into account only a single smaller geo-fence (from the subset of geo-fences extracted from the larger polygonal geo-fence) but which still lies on the geo-fence boundary.
  • This particular smaller geo-fence is determined to be closest to the mobile device at the time of the deconstruction, and thus usable to determine the distance of the mobile computer device from that single smaller geo-fence.
  • the CPU usage in performing hierarchical analysis of the suitably formatted data is much more efficient than any prior approach.
  • a simple example uses a 3 character string containing only numbers. (that can only be 0,1,2,3 as per Quadtree principles - there can only be one of 4 character values in each position, i.e.: 000, 001, 002, 003
  • a device determines that it has entered the smaller geo-fence (which lies on, the larger complex polygonal geo-fence boundary) or at or within a predetermined proximity to the same smaller geo-fence, the application will deal with the notification in accordance with the requirement of that application.
  • there will an associated action such as for example, provision of a notice to the user of the mobile device that they have entered a zone of interest to the user of the mobile device.
  • the mode in which the device stores geospatial reference data such as geo-fences, geo- spatial co-ordinates, lines defined by any means and the determined position of the mobile device, as well as the datum the device utilises should preferably be in a format that enables appropriate analysis using the approaches available.
  • map data structures of which there are many forms form the basis for the display and analysis of cartographic data.
  • Some examples are grid structure, Quadtree and tessellations plus device specific entity-by-entity structures all designed for use by computer devices.
  • that information can be organized in a way to enable that data to be read to and be physically installed on to a storage medium, in a method of representation that allows a computer device to symbolize cartographic objects on maps and in the environment of the disclosure; the location of the mobile computer device; and geo-fence data with relative ease and within a reasonable length of time.
  • the device will have to work through the Quadtree data to sort out which data is relevant and which is not, however, the sorting process only involves a few steps and with correct data indexing procedures, the data sorting process is exponentially more power and CPU cycle use efficient compared to high numbers of positioning calculations.
  • Spatial indexing could involve the use of geo-hashes, and the manner of determining the closeness of a geographic location can be dealt with using a 1 D comparison of the geo-hash since a common prefix indicates a common source and the number of common prefixes is indicative of the accuracy.
  • r1f93ch75x8y is close to r1f93ch75x8 as is r1f93ch75x but the area it represents only means that r1f93ch75x8y is within r1f93ch75x.
  • ryf93dh35xya is far away and not relevant.
  • Figure 13 is roughly representative of the use of geo-hashes to identify specific regions on a map with a particular representation, for example, dr5ruu2 is near dr5uu1 and dr5uu3, and all are within dr5uu, and a location (dot) is located in a respective region.
  • Figure 14 depicts an alternative representation of the creation of granular geo-fences to define a region (dark inner area) overlayed by parallelograms of the same shape formed in a grid pattern. This illustrates that the granular geo-fenced areas that could be used to represent the complex larger geo-fence can be other than rectangles and squares.
  • the last known location of the device provides a handy base from which to start, ensuring that an app has a known location before starting any periodic location updates.
  • Getting the Last Known Location is a step that is achieved by calling getLastLocation().
  • the code can be created assuming that the app has already retrieved the last known location and stored it as a Location object in a global variable mCurrentLocation.
  • Apps that use location services must request location permissions. Typically they require fine location detection so that the app can get as precise a location as possible from the available location provider device/s. Requesting this permission with the uses-permission element in the app manifest, as is shown in the following example:
  • LocationListener.onLocationChanged() callback method and passes it a Location object, or issues a Pendinglntent that contains the location in its extended data.
  • the accuracy and frequency of the updates are affected by the location permissions requested and the options set in the location request object.

Abstract

In the field of mobile and user of the mobile location determination, geo-fences are used to identify areas and regions of commercial, safety and convenience to user of the mobile computer device. The methods disclosed reduce the central processor unit cycles of the mobile computer device and thus the power drain caused by high numbers of calculations required to determine the location of the mobile computer device relative to one or more complex shaped geo-fences by minimising the number of positioning calculations that the mobile device needs to perform. For location updates required by the mobile computer device, the method applies data structures to a deconstructed geo-fence prior to distance calculations for use by a geo-fencing application running on the mobile computer device.

Description

APPLICATION OF DATA STRUCTURES TO GEO-FENCING APPLICATIONS
FIELD
[0001 ] The field of the disclosure in this document is geo-fencing in particular ways to calculate the relative distance of a location from a geo-fence and associated central processing unit cycles involved in such calculations.
BACKGROUND
[0002] Geo-fencing applications are required to use whatever computational power at its disposal to determine the position within a common datum, e.g. typically a mobile computing device, such as a mobile phone. On that mobile computing device, one or more location-dependent applications could be running all of which use the considerable computing power of the device to determine whether that device is at a predefined location, crossed a geo-line or is external or internal to a predetermined geo-fenced zone. The applications also need to report entrance, and exit events of the mobile device entering or exiting a geo-fenced area and these use similar computational power and are based on location determination as well.
[0003] Mechanisms of establishing the location of such a device commonly include cell tower (phone system) triangulation, Wi-Fi triangulation, applications of satellite-based navigation such as GPS, inertial navigation and Low Energy Bluetooth (BLE) signal based trilateration.
[0004] Geo-fencing applications increase the level of (typically) battery power used while establishing their location using one or more of the above mechanisms, with each mechanism having a different battery drain characteristic and accuracy of location determination, where generally the greater the accuracy, the greater the battery power usage (drain) and different applications using one or more of the mechanisms for establishing location at an appropriate time to suit the needs of the particular application.
[0005] However, battery drain will be incurred as a result of computational processes (Central Processing Unit (CPU) cycles) used by the central processing unit in the mobile computer device to calculate not only the location but as is sometimes the case the distance of the mobile device from a predetermined location (geo-fence). The distance calculation is useful for many reasons, including determining the location of the mobile device so as to display that location with reference to the geo- fence; determining if the distance from a geo-fence might trigger a particular action by the mobile computer device; determining the estimated distance to a geo-fence, to preload a message from a server that is to be displayed when the mobile device enters the geo-fence; etc.
[0006] Referring to Figure 1 this type of calculation is not trivial if relative accuracy is required, where one of the complicating factors is taking the curvature of the Earth into account, as illustrated by the shapes and lines depicted in Figure 1. In one example, all calculations are performed using 3 dimensional rather than two-dimensional coordinates within the chosen datum, for example as depicted using the formula depicted in Figure 2 which applies for small angles as would be the case in geo-fence applications where the geofenced is typically a local area not a country's surface on the Earth. Furthermore, because the curvature of the earth is not spherical but ellipsoidal (since the volume of the Earth is oblate, not spherical) the complexity of the calculation increases for long distances and each calculation is done with a selected datum. If the elevation is required, then a geoid model can be used so that some calculations will require an elevation component. Thus when location determination by the device is infrequent or when the geo-fenced area is a simple shape, the number and complexity of calculations performed is modest compared to frequent determinations and more complex geo-fence shapes regardless of the distances involved.
[0007] When trying to determine the location of the device in relation to a rectangular or square geo-fence arrayed on the surface of the earth, it is possible to calculate the distance of the device from the geo-fence by performing a simple point to line calculation (in 3 dimensional space) which determines the position of the device in relation to each side of the rectangle or square. This involves 4 calculations per geo-fence since, at each location update, a devices' CPU will only perform 4 calculations (still involving multiple cycles but very much less than otherwise would be the case). Another way of determining distance would be to choose to calculate the distance to all of the vertices of the geo-fenced area, which are readily available, since they can be used to define the geo-fenced area very easily, and assumes that the line segments of the rectangle or square are derived from them anyway.
[0008] Similarly, when trying to determine the location of a device in relation to a circular geofenced area, the computational method of calculating the distance between the device and a circle in three dimensional space is difficult to do, and it is much simpler to calculate the distance between the device from the centre of the circle, which is used in any event to create the circular zone and then subtract the radius of the circle from the distance calculation, rather than perform multiple calculations determining where the device is in reference to multiple points along the circumference of the circle or the closest portion of the circle.
[0009] When applying a similar logic to understanding where a device is in relation to a polygonal shape, the number of necessary calculations increases dramatically with the number of edges and corresponding vertices that the polygon has. With complex polygons containing thousands of edges and respective vertices, the number of calculations performed each time a device establishes its location will be significant.
[0010] To add to the complexity there can be a significant number of geo-fences in the vicinity of the device (some operating systems limit the number of potentially active geo-fences, and in most operating systems there is a limit) , thus calculations for each active geo-fence is required so that the device can establish its location and relative position multiple times a second, and the number of calculations required each second grow and can then only be limited by limiting the number of geo- fences being used, many of which, if not presently in the future, will comprise polygonal shaped geo- fenced areas in 2- and 3- dimensions. Such shapes are not merely theoretical flights of fancy, but representative of real world commercial needs.
[001 1 ] In an example of the calculation requirement:
(1 ) Number of addressable edges for each geo-fence: 2000
(2) Number of geo-fences in the vicinity of the device: 2000
(3) Number of location updates per second: 4
(4) Number of positioning calculations each second: 2000*2000*4 = 16,000,000
[0012] To reduce the number of calculations, a common practice is to create a minimum bounding frame, typically a square or rectangular shape, which generally has 4 sides, that touches the polygon at a minimum of four locations, effectively replacing the polygon with a rectangular shape that is as small as possible but still contains within it, all geo-locations that comprise the polygon. Such a shape, as illustrated in Figure 3, then simplifies the relative location calculations greatly by removing the first element in the equation - the number of addressable edges for each geo-fence from, in one example from 2000 to 4.
[0013] In this example, the number of positioning calculations each second becomes (5) Number of positioning calculations each second 2000*4 = 8000
[0014] However, for many types of polygons, it is not realistic to employ the abovementioned technique - for instance in the case of a complex polygonal geo-fences particularly self-intersecting polygonal shapes. If there are great differences in distance between the outermost and inner most points of a polygon, when a device approaches the polygonal area, it is possible that the device is inside the minimal bounding frame (square), but not inside the complex polygonal geo-fence, as illustrated in Figure 4.
[0015] In such a scenario the mobile device will recognize that it has entered the bounding frame (and may be required to perform particular actions when it has entered the polygonal geo-fence it represents), however due to its distance from the actual polygonal geo-fenced area, the action initiated may be unwanted, unnecessary, or in some cases potentially dangerous and considered a false trigger. Therefore, it is not practical to use a bounding frame approach for all polygonal geo- fences.
[0016] Therefore, the number of calculations required to determine position with reference to the actual geo-fence remains high and hence so also do the CPU cycles used by the device and consequent power drain associated with those cycles.
BRIEF DESCRIPTION OF ASPECTS OF THE DISCLOSURE
[0017] In an aspect, there is a method to reduce central processor unit cycles of mobile computer device by minimising the number of positioning calculations that the mobile computer device needs to perform in reference to any number of complex polygonal geo-fences at the point of each location update, the method comprising the steps of: applying data structures to a deconstructed geo-fence prior to distance calculations for use in a geo-fencing application, wherein an existing geo-fence, represented as geospatial data, to decomposes the geo-fence into a multiplicity of smaller geo- fences which each represent a portion of the existing geo-fence until the multiplicity of smaller geo- fences are representative of the existing geo-fence; and determining the position of the mobile computing device with reference to the closest smaller geo-fence..
[0018] In an aspect of the disclosure, wherein in step a) where each smaller geo-fence is deconstructed into a further number of yet smaller geo-fences when one of the smaller geo-fences intersects the boundary of the complex polygonal geofence, this step being repeated for each of the smaller geo-fences to a level of granularity that is sufficient to replace the complex polygonal geofence with a large number of smaller geo-fences whose combined shape mirrors the complex polygonal geo-fence.
[0019] In an aspect of the disclosure spatial indexing is used to identify one or more of the smaller geo-fences of the existing geo-fence.
[0020] In an aspect, the form of spatial indexing used is Quadtree data structure analysis to identify one or more of the smaller geo-fences of the existing geo-fence.
[0021 ] In an aspect of the disclosure, the stored geospatial data is representative of selected complex polygonal geo-fences and those that are decomposed are only those that are in the vicinity of the mobile device.
[0022] In an aspect of the disclosure, the predetermined data representative of the one or more geospatial data is required to represent the chosen geo-fence as a multitude of smaller geo-fences with a simpler geometry that when grouped, closely mirror the shape of the complex polygonal geo- fence and then applying the principles of Quadtree data structures on the subset of geo-fences until only the closest smaller geo-fence is located and using that smaller geo-fence for a positioning calculation.
[0023] A detailed description of one or more preferred embodiments is provided below along with accompanying figures that illustrate by way of example the implementation of those embodiments. The scope of the disclosure is limited only by the appended claims, and the disclosure encompasses numerous alternatives, modifications, and equivalents. For the purpose of example, numerous specific details are outlined in the following description to provide a thorough understanding of the presented implementations. The present disclosures may be practised according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the respective technical fields has not been described in detail so that the present disclosure is not unnecessarily obscured. [0024] Although the embodiments have are described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practised within the scope of the appended claims. It should be noted that there are many alternative ways of implementing both the process and apparatus of the present embodiments. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and are not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.
[0025] Throughout this specification and the claims that follow unless the context requires otherwise, the words 'comprise' and 'include' and variations such as 'comprising' and 'including' will be understood to imply the inclusion of a stated integer or group of integers but not the exclusion of any other integer or group of integers.
[0026] The reference to any background or prior art in this specification is not, and should not be taken as, an acknowledgement or any form of suggestion that such background or prior art forms part of the common general knowledge.
[0027] Suggestions and descriptions of other embodiments may be included within the disclosure, but they may not be illustrated in the accompanying figures. Alternatively, features of the disclosure may be shown in the figures but not described in the specification.
BRIEF DESCRIPTION OF FIGURES
[0028] Figure 1 depicts a spherical earth representation having a point to point distance displayed;
[0029] Figure 2 depicts a sample set of formulae for calculating distance between two points on a sphere for small angles;
[0030] Figure 3 depicts a prior art approach to simplifying the determination of distance of a mobile device from a polygonal geo-fence by surrounding the polygon with a minimum bounding box and using the box for distance calculations instead of the polygon;
[0031 ] Figure 4 depicts a complex polygonal geo-fence bounded by a prior art rectangular bounding frame over a geographic area showing road systems and geographic characteristics; [0032] Figure 5 depicts a complex polygonal geo-fence the same as Figure 4 and a mobile computer device location X and illustrative of the calculations required to determine the distance of the device location from each side of the polygon;
[0033] Figure 6 depicts a more complex polygonal shape than depicted in Figures 4 and 5 partially overlayed with smaller rectangular shapes generated by a Quadtree approach;
[0034] Figure 7 depicts the complex polygonal shape of Figure 6 further partially overlayed with smaller rectangular shapes further generated by the Quadtree approach;
[0035] Figure 8 depicts the complex polygonal shape of Figure 6 yet further partially overlayed with smaller rectangular shapes further generated by the Quadtree Approach
[0036] Figure 9 depicts a flow diagram of the process of decomposing a geo-fence using Quadtree analysis;
[0037] Figure 10 depicts a small portion of the complex polygonal shape of Figure 6 illustrating the granularity once the required or predetermined minimum smaller geo-fence size is reached;
[0038] Figure 1 1 depicts a spatial key indexing to geo-hash conversion example;
[0039] Figure 12 depicts an example of the flow of steps relating to distance determination of a mobile computer device from a pre-resolved granular geo-fence region which lies on the boundary of a complex polygonal geo-fence;
[0040] Figure 13 depicts a representative of the use of geo-hashes to identify specific regions on a map with a particular representation; and
[0041 ] Figure 14 an alternative representation of the creation of granular geo-fences to define a region (dark inner area) overlayed by parallelograms of the same shape formed in a grid pattern.
DETAILED DESCRIPTION OF EMBODIMENTS [0042] In order to reduce the number of distance calculations, within an interval, say per second that are needed to be performed when approaching one or more complex polygonal geo-fence/s, it is preferable to be able to determine the devices' location with respect to the closest point or part of the geo-fence, rather than the centroid of the complex polygonal geo-fence or bounding box which may not be representative of the nearness of the boundary of that complex shape. However with complex shapes, such as for example complex polygonal shapes including self-intersecting polygonal shapes, it is very difficult to isolate the closest point to the device, and in current methods, the device would still need to perform many calculations taking into account multiple points along each edge of the many-sided polygon.
[0043] Figure 5 is illustrative of the calculations, which are made from the location marked by the X, to each side of a complex polygon there being 7 arrows each representing a calculation of the distance of the nominal device position, marked with an X from a respective side of the polygon. The number of sides of the illustrated polygon is small relative to the possibilities (as shown by way of comparison with the complex polygonal shape depicted in Figure 6). Thus, a 2000 edged complex polygon (not shown) will still require the 2000 calculations.
[0044] To illustrate, an embodiment which addresses the above issue, an existing complex polygonal geo-fence is deconstructed into a large number of smaller, simpler geo-fence shapes, which when treated as a consolidated shape collectively overlays the shape of the complex polygon.
[0045] The first step, in this particular embodiment, is based on a starting boundary being the bounding box (the most Westerly, Northerly, Easterly and Southerly co-ordinates of the geo-fence can be used to create a virtual box) thus the entire complex polygonal geo-fence wholly lies within a very large shape referred to as the bounding box. Generally, it is a large rectangular shape however a square shape can also be dealt with regardless of the even greater redundancy of the area of the entire polygonal geo-fence zone lying within the very large shape. It is possible to create commands to be performed, by the CPU of the mobile computing device on the data representative of the very large shape, to decompose the spatial data so as to split, and group the very large shape into 4 distinct geographic zones (quadrants). The zones having the same shape and dimensions are illustrated in Figures 6, 7 and 8. [0046] Clearly, 3-dimensional space is used. However, the geo-fence is segmented into quarters as if the geo-fence were arrayed on a spherical plane conforming to the local Earths' shape. Thus the original geo-fence and the newly subdivided geo-fences and all of the distance and positioning calculations are done in 5 dimensions. Keep in mind that all the geo-fences are curved not flat. The efficiency of such a subdivision will largely depend on the structures of the geospatial data that represents the complex polygonal geo-fence and the smaller geo-fences representative of that complex polygonal geo-fence.
[0047] Figures 6, 7 and 8 are illustrative of the decomposition (at least in part to illustrate the process) of the geo-fence boundary being bounded and then decomposed into multiple smaller regular polygons. The process is conducted multiple times to create a grid of data which represents multiple regular polygons (co-ordinates of which are part of the data) which each overlie the original complex polygon (represented best by a table of relevant data).
[0048] The bounding box 60 in Figure 6 is divided it into quarters which is a simple mathematical process since the vertices of the bounding box are known and calculating the half way point of each boundary is a simple calculation which can be conducted purely in co-ordinate form. In one example, each quadrant can be identified by a digital code. Thus of the four quadrants, and for ease of description the terms top, bottom, left-hand and right-hand will be used, but they could also be substituted by the terms, North, South, West and East since this is geographically based environment and the latitude and longitude pairs (with horizontal values where applicable). Thus the top left-hand quadrant is 00, the top right-hand quadrant is 10, the bottom left-hand quadrant is 01, and the bottom right-hand quadrant is 1 1.
[0049] It can be noted that the bounding box has no size limitation and could traverse the Earth but is unlikely to be the case, however, the digital identification and transformation of those
identifications into a geo-hash is still applicable.
[0050] If an entire formed quadrant lies within the polygon, which is also a simple determination, since each quadrant is merely a range of latitude and longitude and since the predetermined sides of the complex polygon are defined by latitude longitudinal pairs, a comparison of respective values will soon determine whether a side of the complex polygon will fall within or outside a quadrant. [0051] If there does exist a portion of the polygon within a quadrant, then that quadrant is quartered again. Such as for example, the bottom right-hand quadrant 11 is shown as four quadrants, where in accord with the digital identification, the top left-hand quadrant is 1100, the top right-hand quadrant is 1110, the bottom left-hand quadrant is 1101, and the bottom right-hand quadrant is 1111. Since a portion of the complex polygon is still within each of those quadrants, then each of them is quartered, but for illustration, the 1111 quadrant is shown in Figure 6 as being further quartered, into 111100, 111110, 111101 and 111111.
[0052] If an entire formed quadrant (111110 and 111111) lies outside (OUT) of the polygon, that quadrant is no longer subjected to quartering and effectively ignored.
[0053] If a formed quadrant (111101) is intersected by any one or more lines of the polygon that quadrant is quartered again to become 11111000, 11111010, 1111101 and 11111011 as depicted in Figure 7. Where again it can be seen and accordingly determined that 11111010 be ignored (OUT).
[0054] The process is repeated over and over using each quadrant that was segmented and which does contain any portion of the polygon. Figure 8 shows this process again where the quadrants again become identified by 1111011100, 1111011110, 1111011101 and 1111011111. Where yet again it can be seen and accordingly determined that 1111011101 be disregarded (OUT).
[0055] Figure 9 depicts a flow diagram of the repeated process of decomposing a geo-fence using Quadtree analysis and testing to determine whether the segmentation should continue or not.
[0056] Figure 10 is a representation of the selected granularity of the final quartering, such that the small rectangular areas showed in the Figure, all include a portion of the complex polygonal shape and as such those small rectangular areas are representative of that complex polygonal shape (thus mirroring that shape to any required level of granularity). Since each of those areas have a digital identity then it becomes possible to sort, re-arrange and in particular analyse those digital identities using computational methods which are very CPU efficient.
[0057] A polygonal geo-fence (with e.g.2000 edges) is defined by recording the coordinates of each point where two adjacent edges meet (ignoring self-intersecting edges). [0058] The polygonal geo-offence is surrounded by a minimum bounding box, and the bounding box is split into equal quarters. A query is run to determine if any of the quarters contains any portion of the original polygon.
[0059] The question is posed does a particular quarter contain a portion of the original polygon?
[0060] If no - flag the quarter as not containing any element of the polygon and disregard that quarter.
[0061 ] If yes - is the quarter wholly contained within the shape of the regional polygon?
[0062] If yes -record the quarter as being wholly contained within the polygon and record a rectangular (including a square) geo-fence that is to be used as a substituting element of the original polygon. The wholly contained geo-fence is associated with a geo-hash that indicates its position within the bounding box and within a common geospatial datum. A geo-hash is a geocoding system comprised of a hierarchical spatial data structure which divides space (such as the surface of the earth) into grids, and the format of the reference for each grid is indicative of each grids relationship with other grid references, such as short Uniform Resource Locators (URLs) which uniquely identify positions on the Earth, so that referencing them in emails, forums, and websites and also in tables and databases, is more convenient. The e structure of geo-hashed data has two advantages. First, data indexed by geo-hash will have all points for a given rectangular area in contiguous slices (the number of slices depends on the precision required and the presence of geo-hash "fault lines"). This is especially useful in database systems where queries on a single index are much easier or faster than multiple-index queries. Second, this index structure can be used for a quick-and-dirty proximity search: the closest points are often among the closest geo-hashes. More about the format and use of geo-hashes is provided later in the specification. The rectangular geo-fence is stored within the device's memory along with the geo-hash. All overlapping constituting geo-fences are combined in the device's memory to form a new representation of the polygonal geo-fence with each element retaining its individual geo-hash.
[0063] If the answer to the question, is the quarter wholly contained within the shape of the original polygon, is no, then the next question is, is this quarter of this quarter, of sufficiently small size to provide an acceptable level of granularity of the constituting regular geo-fences? [0064] If yes -stop segmenting this quarter further and record a rectangular (including a square) geo- fence that is to be used as a substituting element of the original polygon.
[0065] If no - repeat the process of splitting the element into a further four rectangular elements and examine how each of those interacts with the original polygon in the same manner, by possing the earlier question, does a particular quarter contain a portion of the original polygon?
[0066] There is, of course, a limit to how small the quadrant can or needs to become. In the embodiment described, there is a predetermined limit on the number of quadrants into which to break the polygon down. The way in which the limit is predetermined is determined before the beginning of the process, or on the fly, and can be dependent on many factors. In one example, the land areas of the first bounding box are determined, and if large, the size (area) of the smallest quadrant is large, compared to a smaller land area of the first bounding box, using smaller
(comparatively) area (size) of the smallest quadrant.
[0067] In one alternative, the limit on the minimum quadrant size can be determined by exceeding the resolution of the GPS chipset used by the respective device, at least by several factors, i.e. if a segmented quadrant is 10cm wide, and the best GPS accuracy is e.g. 5 meters, then there is no need to segment further.
[0068] The shape generated by this analysis consists of many quadrants (possibly many thousands), but it will not be the exact shape of the polygon, but it will be very close (dependant on the maximum resolution or number of quadrants generated).
[0069] Figure 10 is an exploded view of a very small portion of the image of the complex polygon of Figures 6, 7 and 8 taken to the predetermined level of quartering. By way of illustrative example, the length of the digital identification of the rectangular geo-fence is likely to be very long, e.g.
1 1 1 101 1 1 1 1...1 1 where there may be hundreds of digits involved (note the significant digits are the same as the last quadrant created in Figure 8).
[0070] In an example, a complex polygonal geo-fence with e.g. 2000 edges and in an aspect it is disclosed that a complex polygonal geo-fence can be represented by a greater multitude (possibly tens of thousands) of regular shaped geo-fences there are then many times 2000 more edges to deal with and thus a need for the device to perform a significant number of calculations being many more than the 2000 edges approach described previously.
[0071 ] Thus, in an aspect, it is disclosed that it is possible to significantly reduce the number of calculations required by applying the principles of spatial indexing to the multitude of regular shaped geo-fences so as to identify the closest smaller regular shaped geo-fence of the complex polygonal geo-fence to the mobile device. Then the distance calculation can be performed on the identified smaller regular shaped geo-fences each with its index value (for example its own digital
identification), and for multiple such complex polygonal geo-fences, there is only one closest smaller geo-fence per complex polygonal geo-fence to which the distance calculation needs to be made.
[0072] There are many spatial indexing methods, and recursive decomposition of a grid is the fundamental process used. One example of a very simple representation is provided in Figure 1 1.
[0073] Quadtree analysis is the most used recursive decomposition method and therefore included as an embodiment, but that does not exclude other analysis techniques. The Quadtree approach provides a balanced tree structure of degree four. This hierarchical model where each node has four sons provides a distinct advantage to computational performance of the analysis because it exhibits a tree file structure which allows for compaction techniques and efficient file addressing schemes. The quadrant identification coding described by way of example illustrates this property. Further, in a geo-spatial environment, there is an ability to quickly deal with any geographic scale by logically and relatively quickly traversing the tree of data. Traversing a tree is a programmatic approach to allow a computer to handle very large digital representations in a very efficient manner. So by way of example, locating the geographically closest quadrant knowing the current location of a device, can be illustrated by moving from the closest largest quadrant 1 1, to the second largest closest quadrant 1 1 1 1 and then eventually to 1 1 1 1011 1 1 1...1 1. This is a very simple example, as there are many additional ways to approach this requirement, recursive and non-recursive traversing methods, ways which depend on the way the original data is structured, etc.
[0074] A geo-hash is a representation of these long digital identifications which is explained later in this specification. [0075] Many chosen approaches can be used to ultimately reduce (compared with the described prior art method) the CPU cycles devoted to the initial analysis of large amounts of spatial data. Yet further, recursive subdivision facilitates windowing of large spatial databases representative of, say multiple geo-fence zones, to relatively quickly identify those geo-fences that do not need to be analysed.
[0076] The Quadtree approach uses a general data model having a hierarchical data structure based on the principle of recursive decomposition using quadrants. An example of a data set representing the many regular shaped geo-fences is provided in Figure 1 1, and in this example, the digital identification used is different to that used previously, but that does not change the approach or the methods used.
[0077] A method in which we can encode geographic coordinates to a geo-hash is as described previously.
[0078] In a further step, it is required to search the geo-hashed data. This is done through a simple recursive algorithm. In the above example San Francisco (see Figures 13 and 14), which is the city within which the complex geo-fence is located, could be in grid 000, a separate grid which overlays the complex polygonal geo-fence bounding box. If we are searching for the closest point, then those that process start with a 1 such as 100 or 101, are disregarded as the first geo-hash symbol indicated that they were not adjacent. We can also disregard the quadrants (ones) where the second character is not 0 (i.e. 010 or 01 1 ). That only leaves 001 as one quadrant that is close to the original location of San Francisco in grid 000.
[0079] 1. When a location is indicated by a geo-hash string containing any number of characters, it is possible to disregard other geo-hashes (locations) where all the geo-hash characters up to the second to last character of the string are not identical to the original search item.
[0080] 2. This eliminates a vast majority of the data immediately, leaving only a small number of adjacent grids by way of their geo-hash representation that needs to be searched for a match or close match. [0081 ] There are many variants such as the use of rectangular quadrants based on the location of ordered points (sometimes referred to a point Quadtree); oct-tree branching; a three-dimensional Quadtree approach; gridded databases known as forest Quadtrees; recursive decomposition based on hexagonal tessellation or septrees but the smallest subdivision is pre-set; etc.
[0082] Thus in an embodiment, Quadtree data structures are applied to the new set of regular geo- fences to locate the closest smaller geo-fence which is representative of a portion of the entire complex polygon.
[0083] When applying the principles of Quadtree data structures, a mobile device is capable of storing, in a suitable format, the multitude of smaller geo-fences so that the process of Quadtree analysis can be most efficiently applied, to thus minimise the CPU cycles involved in the analysis of the stored data.
[0084] In the next step the CPU of the mobile device is to determine which quadrant or grouping of the geo-fences it is closest to, and thus being able to ignore the other 3 quadrants.
[0085] Figure 12 is a flow diagram of the process conducted by the mobile computer device.
[0086] The mobile device receives a new location update in the form of co-ordinates pertaining to a common datum.
[0087] The device will translate its location in a co-ordinate form to a geo-hash reference.
[0088] The device will then analyse the stored representation of the surrounding polygonal geo- fences consisting of a multitude of rectangular geo-fences.
[0089] The device determines through geo-hash analysis which individual rectangular geo-fence is closest to the current location.
[0090] The device and then measures its distance to the closest rectangular geo-fence. [0091 ] Details regarding the determination of closeness can be dealt with in many ways without having to perform distance calculations, and by way of example only, geo-hash tables and sorting techniques can be used, depending on the format of the geospatial data.
[0092] There can be an iterative approach to the creation of a Quadtree-like data structure for storing polygonal geo-fence representations using, for example, a PR Quadtree and PM Quadtree some with more or less ability to store points, lines and regions depending on the granularity.
[0093] Thus once the closest such geo-fence to the device is known, then the mobile need only conduct the determination of the distance from that small geo-fence, since the decomposition of the complex polygonal geo-fence is already within the mobile device and traversing the geo-hashes is dealt with easily when required.
[0094] Clearly, the complex polygonal geo-fence data processing done to determine the relevant data is CPU intensive, but need only occur when needed at the time of downloading the geo-fence data. After that, every time the mobile computer device, say a mobile phone device, receives or generates with an on-board geolocation determination device as a location update, the mobile computer device need only determine which of the already granular (typically very small) rectangular or square geo-fence region is closest based on the geo-hash, and then the mobile computer device determines the distance to only that one small geo-fence, disregarding others. Furthermore, it is important to note that the type of processing involved is relatively simple as it involves grid/table look ups and possibly using indexed trees of geographic data and the like, but, mostly once that is performed the calculation of one distance. These ways of determining the distance from a geo-fence are much more CPU and power drain efficient than the prior art alternatives.
[0095] The computing power required is used for each of the potentially 1,000's of separate geo- fence zones that can be used by one or more applications on the mobile computing device, but, only once each time it is down loaded not for each and every geo-fence, each and every time since the nearest geo-hash associated with a granular geo-fence is a traversal problem, not a multiple distance calculation.
[0096] It should be understood that current use of circular geo-fenced zones is just the first invocation of geo-fence technology and as more business cases arise that requires, indeed demand, more complex geo-fenced areas, and such applications find more and more use, the number and complexity of geo-fence zones to deal with, will require new ways of dealing with the problems described.
[0097] By using the methods of the embodiments described, it is possible to ensure that the device performs a reduced or minimal number of positioning calculations at each requested location update, following the analysis described. There may also be times when the above-described analysis needs to be redone, but that will likely be much more infrequent than the distance calculations involved in meeting the needs of multiple applications (apps) all possibly using a different geo-fence zone or zones.
[0098] Thus, by way of illustration, there being 2000 geo-fences in the vicinity of a mobile device and each of them being a complex polygon with 2000 edges (where a bounding frame is not applied), and 4 location updates a second the device would have to perform 16,000,000 calculations per second.
[0099] When Quadtree data structures have been applied initially to all the geo-fences - the device will ignore the geofences that are not relevant to it (since that is a very quick recursive or even non- recursive tree search of the appropriately formatted data) and not perform positioning calculations against them until a closest granular geo-fence is determined to be relevant (match or closely matched).
[00100] The closest granular geo-fence is analysed by performing multiple rounds of Quadtree deconstruction on the grid/table representative of that geo-fence, until the device needs to take into account only a single smaller geo-fence (from the subset of geo-fences extracted from the larger polygonal geo-fence) but which still lies on the geo-fence boundary. This particular smaller geo-fence is determined to be closest to the mobile device at the time of the deconstruction, and thus usable to determine the distance of the mobile computer device from that single smaller geo-fence. The CPU usage in performing hierarchical analysis of the suitably formatted data is much more efficient than any prior approach.
[00101 ] A simple example uses a 3 character string containing only numbers. (that can only be 0,1,2,3 as per Quadtree principles - there can only be one of 4 character values in each position, i.e.: 000, 001, 002, 003
010, 01 1, 012, 013
020, 021, 022, 023
030, 031, 032, 033
100, 101, 102, 103
1 10, 1 1 1, 1 12, 1 13
120, 121, 122, 123
130, 131, 132, 133
200, 201, 202, 203
210, 21 1, 212, 213
220, 221, 222, 223
230, 231, 232, 233
300, 301, 302, 303
310, 31 1, 312, 313
320, 321, 322, 323
330, 331, 332, 333
This is a very simple example, and if there was a need for further granularity of locations, it is simple to add one more character to the string:
0000, 0001, 0002, 0003
0010, 001 1, 0012, 0013
0020, 0021, 0022, 0023
0030, 0031, 0032, 0033
0100, 0101, 0102, 0103
[00102] Thus, the number of distance calculations a device has to perform per second is reduced from 16,000,000 to 4 when using the four sides of the single smaller geo-fence. [00103] Comparison Formulas:
(6) 2000*2000*4 = 16,000,000
(7) Π = 4
[00104] Once a device determines that it has entered the smaller geo-fence (which lies on, the larger complex polygonal geo-fence boundary) or at or within a predetermined proximity to the same smaller geo-fence, the application will deal with the notification in accordance with the requirement of that application. In one example, having entered the initial larger polygonal geo-fence, there will an associated action, such as for example, provision of a notice to the user of the mobile device that they have entered a zone of interest to the user of the mobile device.
[00105] The mode in which the device stores geospatial reference data such as geo-fences, geo- spatial co-ordinates, lines defined by any means and the determined position of the mobile device, as well as the datum the device utilises should preferably be in a format that enables appropriate analysis using the approaches available.
[00106] Thus map data structures of which there are many forms form the basis for the display and analysis of cartographic data. Some examples are grid structure, Quadtree and tessellations plus device specific entity-by-entity structures all designed for use by computer devices. To facilitate the use of cartographic information, that information can be organized in a way to enable that data to be read to and be physically installed on to a storage medium, in a method of representation that allows a computer device to symbolize cartographic objects on maps and in the environment of the disclosure; the location of the mobile computer device; and geo-fence data with relative ease and within a reasonable length of time. Many of the functions of the computer programed to perform the embodiments disclosed consist of writing data into cartographic data structures and transforming the data between structures which replace complex and high-volume calculations, with the embodiments materially altering the time, CPU cycles and power consumed. Different structures suit different kinds of mapping and different sets of demands.
[00107] Also at each location update the device will have to work through the Quadtree data to sort out which data is relevant and which is not, however, the sorting process only involves a few steps and with correct data indexing procedures, the data sorting process is exponentially more power and CPU cycle use efficient compared to high numbers of positioning calculations.
[00108] Spatial indexing could involve the use of geo-hashes, and the manner of determining the closeness of a geographic location can be dealt with using a 1 D comparison of the geo-hash since a common prefix indicates a common source and the number of common prefixes is indicative of the accuracy. Thus, for example, r1f93ch75x8y is close to r1f93ch75x8 as is r1f93ch75x but the area it represents only means that r1f93ch75x8y is within r1f93ch75x. Conversely ryf93dh35xya is far away and not relevant. There is still the problem of dealing with two locations which are physically close but are represented in the coding scheme as lying on different sides of a boundary, but there are algorithms which can determine the 8 surroundings grids of any one geo-hash.
[00109] . Thus Figure 13 is roughly representative of the use of geo-hashes to identify specific regions on a map with a particular representation, for example, dr5ruu2 is near dr5uu1 and dr5uu3, and all are within dr5uu, and a location (dot) is located in a respective region.
[001 10] Figure 14 depicts an alternative representation of the creation of granular geo-fences to define a region (dark inner area) overlayed by parallelograms of the same shape formed in a grid pattern. This illustrates that the granular geo-fenced areas that could be used to represent the complex larger geo-fence can be other than rectangles and squares.
[001 1 1 ] The following descriptions provide details specific to an Android operating system and are provided for illustrative purposes only, and it will be within the skill set of those in this field to use the teachings to code for other operating systems. In any event, the code is used more to illustrate the functionality and detail associated with the steps associated with implementing the disclosure of this document.
[001 12] The last known location of the device provides a handy base from which to start, ensuring that an app has a known location before starting any periodic location updates. Getting the Last Known Location is a step that is achieved by calling getLastLocation(). The code can be created assuming that the app has already retrieved the last known location and stored it as a Location object in a global variable mCurrentLocation. [001 13] Apps that use location services must request location permissions. Typically they require fine location detection so that the app can get as precise a location as possible from the available location provider device/s. Requesting this permission with the uses-permission element in the app manifest, as is shown in the following example:
[001 14] <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package- 'com.google.android.gms. location. sample.locationupdates" >
<uses-permission android:name="android.permission.ACCESS_FI E_LOCATION"/>
</manifest>
[001 15] Before requesting location updates, the app must connect to location services and make a location request. Once a location request is in place the regular updates are generated by calling requestLocationUpdates(). Do this in the onConnected() callback provided by a Google API Client, which is called when the client is ready.
[001 16] Depending on the form of the request, a fused location provider either invokes the
LocationListener.onLocationChanged() callback method and passes it a Location object, or issues a Pendinglntent that contains the location in its extended data. The accuracy and frequency of the updates are affected by the location permissions requested and the options set in the location request object.
[001 17] Getting the update using the LocationListener callback approach involves using the Call requestLocationUpdates(), and passing it to the instance of the GoogleApiClient, the Location Request object, and a LocationListener and involved defining a startLocationUpdates() method, called from the onConnected() callback, as shown in the following code sample:
[001 18] ©Override
public void onConnected(Bundle connectionHint) {
[001 19] if (mRequestingLocationUpdates) {
startLocationUpdates();
} } protected void startLocationUpdates() {
LocationServices.FusedLocationApi.requestLocationUpdates(
mGoogleApiClient, mLocationRequest, this);
}
[00120] Notice that the above code snippet refers to a boolean flag, mRequestingLocationUpdates, used to track whether the user has turned location updates on or off.
[00121 ] Calculating distance of the mobile computer device from the identified smaller regular shaped geo-fence is achieved by performing the type of calculations disclosed. It should be noted that if the number of distance calculations is reduced it is possible in some circumstances to use high complexity calculations which typically provide higher accuracy. This does not detract from the minimisation of CPU cycles since the alternative is performing many thousands of such calculations.

Claims

1. A method to reduce central processor unit cycles of mobile computer device by minimising the number of positioning calculations that the mobile computer device needs to perform in reference to any number of complex polygonal geo-fences at the point of each location update, the method comprising the steps of:
a. applying data structures to a deconstructed geo-fence prior to distance calculations for use in a geo-fencing application, wherein an existing geo-fence, represented as geospatial data, to decomposes the geo-fence into a multiplicity of smaller geo- fences which each represent a portion of the existing geo-fence until the multiplicity of smaller geo-fences are representative of the existing geo-fence;
b. determining the position of the mobile computing device with reference to the closest smaller geo-fence.
2. The method of claim 1 wherein sin step a) where each smaller geo-fence is deconstructed into a further number of yet smaller geo-fences when one of the smaller geo-fences intersects the boundary of the complex polygonal geofence, this step being repeated for each of the smaller geo-fences to a level of granularity that is sufficient to replace the complex polygonal geo-fence with a large number of smaller geo-fences whose combined shape mirrors the complex polygonal geo-fence.
3. The method of claim 1 wherein spatial indexing is used to identify one or more of the smaller geo-fences of the existing geo-fence.
4. The method of claim 1 wherein the form of spatial indexing used is Quadtree data structure analysis to identify one or more of the smaller geo-fences of the existing geo-fence.
5. The method of claim 1 wherein the stored geospatial data is representative of selected
complex polygonal geo-fences and those that are decomposed are only those that are in the vicinity of the mobile device.
6. The method of claim 1 wherein the predetermined data representative of the one or more geospatial data is required to represent the chosen geo-fence as a multitude of smaller geo- fences with a simpler geometry that when grouped, closely mirror the shape of the complex polygonal geo-fence and then applying the principles of Quadtree data structures on the subset of geo-fences until only the closest smaller geo-fence is located and using that sma geo-fence for a positioning calculation.
PCT/AU2017/000065 2016-04-07 2017-03-16 Application of data structures to geo-fencing applications WO2017173476A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CA3015384A CA3015384A1 (en) 2016-04-07 2017-03-16 Application of data structures to geo-fencing applications
AU2017245932A AU2017245932A1 (en) 2016-04-07 2017-03-16 Application of data structures to geo-fencing applications
EP17778460.0A EP3424244A4 (en) 2016-04-07 2017-03-16 Application of data structures to geo-fencing applications
US16/078,619 US11082802B2 (en) 2016-04-07 2017-03-16 Application of data structures to geo-fencing applications
AU2020203554A AU2020203554B2 (en) 2016-04-07 2020-05-29 Application of data structures to geo-fencing applications

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
AU2016901291 2016-04-07
AU2016901291A AU2016901291A0 (en) 2016-04-07 Application of Data Structures to Geo-Fencing Applications

Publications (1)

Publication Number Publication Date
WO2017173476A1 true WO2017173476A1 (en) 2017-10-12

Family

ID=60000182

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/AU2017/000065 WO2017173476A1 (en) 2016-04-07 2017-03-16 Application of data structures to geo-fencing applications

Country Status (5)

Country Link
US (1) US11082802B2 (en)
EP (1) EP3424244A4 (en)
AU (2) AU2017245932A1 (en)
CA (1) CA3015384A1 (en)
WO (1) WO2017173476A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220095221A1 (en) * 2020-09-23 2022-03-24 Intuit Inc. Reducing Mobile Device Power Consumption Through Predictive Speed-Based Geofence Location Tracking

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10593074B1 (en) * 2016-03-16 2020-03-17 Liberty Mutual Insurance Company Interactive user interface for displaying geographic boundaries
CN111078812B (en) * 2019-12-03 2023-09-05 支付宝(杭州)信息技术有限公司 Fence generation method and device and electronic equipment
CN115050185B (en) * 2022-06-14 2023-08-25 北京车网科技发展有限公司 Method, system and storage medium for judging compliance of vehicle operation range

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090044246A1 (en) 2007-02-01 2009-02-12 Patrick Sheehan Targeting content based on location
US20120115512A1 (en) * 2010-11-09 2012-05-10 Apple Inc. Beacon-Based Geofencing
US20130093627A1 (en) * 2011-10-13 2013-04-18 Microsoft Corporation Power-aware tiered geofencing and beacon watchlists
US20140274154A1 (en) 2013-03-15 2014-09-18 Factual, Inc. Apparatus, systems, and methods for providing location information
US20150271638A1 (en) * 2014-03-20 2015-09-24 Drgnfly, Inc. Power efficient location tracking

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9215560B1 (en) * 2012-07-12 2015-12-15 two forty four a.m. LLC System and method for device-centric location detection and geofencing
US9071937B2 (en) * 2013-01-31 2015-06-30 Apple Inc. Tiered delivery of location data
US9019129B2 (en) 2013-02-21 2015-04-28 Apple Inc. Vehicle location in weak location signal scenarios
US9606241B2 (en) 2013-02-21 2017-03-28 Apple Inc. Sensor-assisted location fix
CN105744473A (en) * 2014-12-08 2016-07-06 阿里巴巴集团控股有限公司 Geo-fencing-based positioning method and device
US9628951B1 (en) * 2015-11-11 2017-04-18 Honeywell International Inc. Methods and systems for performing geofencing with reduced power consumption
US10605472B2 (en) * 2016-02-19 2020-03-31 Ademco Inc. Multiple adaptive geo-fences for a building

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090044246A1 (en) 2007-02-01 2009-02-12 Patrick Sheehan Targeting content based on location
US20120115512A1 (en) * 2010-11-09 2012-05-10 Apple Inc. Beacon-Based Geofencing
US20130093627A1 (en) * 2011-10-13 2013-04-18 Microsoft Corporation Power-aware tiered geofencing and beacon watchlists
US20140274154A1 (en) 2013-03-15 2014-09-18 Factual, Inc. Apparatus, systems, and methods for providing location information
US20150271638A1 (en) * 2014-03-20 2015-09-24 Drgnfly, Inc. Power efficient location tracking

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LOYOLA, L. ET AL.: "Extending battery lifetime of mobile devices with geofence capabilities on dynamic-speed urban environments", MOBIGIS '13, PROCEEDINGS OF THE SECOND ACM SIGSPATIAL INTERNATIONAL WORKSHOP ON MOBILE GEOGRAPHIC INFORMATION SYSTEMS, 5 November 2013 (2013-11-05), Orlando, Florida, pages 51 - 58, XP055429419, Retrieved from the Internet <URL:http://dl.acm.org/citation.cfm?id=2534193> [retrieved on 20170516] *
See also references of EP3424244A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220095221A1 (en) * 2020-09-23 2022-03-24 Intuit Inc. Reducing Mobile Device Power Consumption Through Predictive Speed-Based Geofence Location Tracking
US11622326B2 (en) * 2020-09-23 2023-04-04 Intuit Inc. Reducing mobile device power consumption through predictive speed-based geofence location tracking

Also Published As

Publication number Publication date
US20190045324A1 (en) 2019-02-07
AU2020203554B2 (en) 2021-05-13
AU2020203554A1 (en) 2020-06-18
EP3424244A4 (en) 2019-09-25
CA3015384A1 (en) 2017-10-12
US11082802B2 (en) 2021-08-03
EP3424244A1 (en) 2019-01-09
AU2017245932A1 (en) 2018-07-19

Similar Documents

Publication Publication Date Title
AU2020203554B2 (en) Application of data structures to geo-fencing applications
US10013446B2 (en) Apparatus, systems, and methods for providing location information
US10410403B1 (en) Three-dimensional voxel mapping
US10555115B1 (en) Cacheable geographic pages
CN103927933B (en) A kind of magnanimity moves method and the device that target renders
CN106156138B (en) The foundation of the spatial index of point of interest, Perimeter method and apparatus
CN103810194A (en) Geographic coding method, position inquiring system and position inquiring method
CN103631888B (en) Multi-data source data searching method and device based on positions
WO2016171860A1 (en) Computerized system and method for performing a location-based search
Schubert et al. Geodetic distance queries on r-trees for indexing geographic data
US8868106B2 (en) System and method for large-scale and near-real-time search of mobile device locations in arbitrary geographical boundaries
CN111859187A (en) POI query method, device, equipment and medium based on distributed graph database
Loyola et al. Extending battery lifetime of mobile devices with geofence capabilities on dynamic-speed urban environments
CN115495537A (en) Address description information processing method and equipment
Huck et al. Visualizing patterns in spatially ambiguous point data
US9888347B1 (en) Resolving location criteria using user location data
CN105447163A (en) Geocoding method and system
Meek et al. The Influence of Digital Surface Model Choice on Visibility‐based Mobile Geospatial Applications
La Valley et al. Detection of behavior patterns of interest using big data which have spatial and temporal attributes
Meijers et al. Management of AIS messages in a Geo-DBMS
CN111460057A (en) POI coordinate determination method, device and equipment
Wightman et al. Hall of Mirrors: A Novel Strategy to Address Locality in Geocoded-Based PoI Private Queries
Ma et al. An efficient reverse geocoding method based on global subdivision model
Najjar et al. Location-Dependent Database Access
CN106815319B (en) Target object determination method and device

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2017245932

Country of ref document: AU

Date of ref document: 20170316

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 3015384

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 2017778460

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2017778460

Country of ref document: EP

Effective date: 20181001

NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17778460

Country of ref document: EP

Kind code of ref document: A1