AnsweredAssumed Answered

REST find nearest feature

Question asked by krosemanp on Oct 12, 2017
Latest reply on Oct 17, 2017 by krosemanp

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.