How to get way id from coordinates using Nominatim


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

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

For example:

Here is the same in the search visual tool:

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.