1. An apparatus comprising: a processor configured to run one or more modules stored in memory, wherein the one or more modules are configured to: receive one or more polygons associated with a region of interest; determine a plurality of sub-polygons that are contained within the one or more polygons, wherein each of the sub-polygons is associated with a unique code; and generate a first index system based on at least a subset of the plurality of sub-polygons, thereby providing an efficient mechanism to determine whether a particular location is within the region of interest.