Add nearest feature functionality to Runtime SDK

Idea created by mikedmanak on Aug 25, 2016
    • mikedmanak

    Any chance we could get an additional capability in the SDK to return the closest feature in a AGSGDBFeatureTable for a given point?


    Right now the only way I can figure out to do this is to do a measure to every feature and find the shortest distance.  This is rather expensive, especially if you are working with a large address point layer or roadway stations.  


    Things can be more efficient by first creating a buffer of X distance from your location, selecting all points within the buffer, then calculating the closest feature from that subset... but it's still a rather complex undertaking for something that is pretty standard fare for GIS.