I need to create an algorithm which allows for objects tagged with a latitude and longitude to be matched with objects in another list which are nearby. To be more specific, the objects in one list are defined by a set of extents which define the shape of the object. The objects in the other list are defined by a series of latitudes and longitudes as they may be miles long and change in direction.
Is there any standard algorithm which will help performance in this kind of situation? I can use a brute force algorithm but given each list contains hundreds of thousands of objects performance will not be adequate.
Thanks in advance.