fixed formatting and applied solution from forum
getting response from FindNearest. some problem processing the Polyline result