How to get way id from coordinates using Nominatim

Hello,

How can I get the “way id” from coordinates?

I tried with the reverse Nominatim function but it is not always precise.

For example: http://nominatim.openstreetmap.org/reverse?format=xml&lat=32.696534086349665&lon=35.14089007161053&zoom=18&osm_type=W&accept-language=en-EN

Here is the same in the search visual tool: http://nominatim.openstreetmap.org/details.php?place_id=26753712

The way id returned is not the same of the selected point.

Am I missing something? Is there a better way to get the way id?

Thank you for the answer.

crossposting!

see https://help.openstreetmap.org/questions/48482/how-to-get-way-id-from-coordinates-using-nominatim