pointlayer - onclick nearst point

Hello Forum,
I am new and i don´t know if i am right here.
I am using openlayers and osm. In my application i am loading a pointlayer. now i want to click into my map and want to get the next point-is this possible?
thanks
balli