AnsweredAssumed Answered

JAVASCRIPT function to find nearest feature of a coordinate

Question asked by a.puthukkara@mobily.com on Jul 3, 2020

Dears

 

I have set of different coordinates in an excel file. I am processing this excel file through java script API. I am trying to find the nearest feature(using ESRI javascript API) corresponding to each coordinate in excel sheet. the nearest feature  I am looking for is in a map service(layer) published in arcgis server and accessible through it's rest API url.

Is there any ESRI javascript API function available for finding the nearest feature of the selected coordinate? 

 

I am using the arcgis javascript API version 3.14 (js.arcgis.com/3.14compact).

Outcomes