×

Efficient point-in-polygon indexing technique for facilitating geofencing operations

  • US 9,916,326 B2
  • Filed: 01/27/2015
  • Issued: 03/13/2018
  • Est. Priority Date: 01/27/2015
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for performing a geofencing operation, comprising:

  • obtaining a set of polygons that define a set of geographic regions, wherein each polygon comprises line segments that define a border of the polygon, and wherein each line segment is defined by coordinates for two endpoints of the line segment;

    projecting rays from the endpoints of the line segments of the set of polygons onto a reference line separate from the line segments of the set of polygons, wherein the rays are projected in a direction orthogonal to the reference line to form intersection points with the reference line, and storing the intersection points in an index;

    for each interval between pairs of consecutive intersection points on the reference line, keeping track in the index of open line segments that project onto the interval;

    for a data point to be processed that specifies a position of a location-aware device, identifying a relevant interval on the reference line that the data point projects onto;

    performing a crossing number (CN) operation by counting intersections between a ray projected from the data point and open line segments, the number of intersections being determined using the open line segments stored in the index and associated with the relevant interval, to identify zero or more polygons that the data point falls into; and

    performing a geofencing operation for the location-aware device based on the identified zero or more polygons that the data point falls into.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×