I'm looking for a good algorithm for finding a list nearest positions taking into account quality of data we receiving from gps devices.
The problem is as follows:
- I have a position of point A.A= (LNG, LAT, ALT, HorizontalAccuracy, VerticalAccuracy)- HorizontalAccuracy and VerticalAccuracy it's a potencial error in meters
 
- I have a list of others B = [B1, ... Bn]eachBxis(LNG, LAT, ALT, HorizontalAccuracy, VerticalAccuracy)
- I would like to find the list of points Bxnearest to A and order that list according to distance Bx and A.
- The order of that list should taken into account accuracy of data we have. The problem with accuracy starts when the distance between points is shorter then accuracy.
 
     
     
     
    