finding nearest vertex of a line  feature layer from a point feature

Discussion created by ganeshssac on Dec 2, 2013
Latest reply on Dec 3, 2013 by ganeshssac
HI GIS folks
I am trying to find a nearest vertex of a line from a point feature layer using arcgis javascript api.

(i) do we need to create geoprocessing service using near toolbox and publish them as a service and call them via arcgis javascript api - geoprocessor task to identif them.  is there any easy way of doing this or any suggestions of better way of doing this would be greatly appreciated.