I'm want to query my feature service to find the feature nearest to a specific point. My current procedure is query all features within a certain radius, iterate for each feature in the result and calculate the distance to the point, then return the feature with the least distance.
This seems inefficient. Is there a Near/Nearest tool available to REST for doing this better, or at least requiring less code in my application?
Using ArcGIS Server 10.3.1.