Is there some kind of example that essentially mimics the ArcToolbox Near tool? I essentially need to select points of one layer that are closes to points of another layer. Some kind of query by distance would also work (select points within x meters of a layer). I don't want to use the FindNearest Analysis widget since it uses up credits and no examples exist on the API site. Is there some way to make this happen? Near or select by distance would be great! Or do I need to create a geoprocessing service utilizing the ArcToolbox Near tool?
Thanks so much for any help or information. It is much appreciated.