Distance between point and path

Hello,

I’m looking for a solution to calculate, on a web page, the shortest path between a path and a point, would you have a solution to this problem?

Have a nice day.

Through the path or in a straight line?
If just want to measure a distance in a straight line, you can open iD editor and press Ctrl+Shift+I to open measurement panel.
If you want to measure the distance through the path on the OSM website click the arrows in the upper left corner.

Maybe this site can help. Diverse formulars for calculations with lat/lon values:
http://www.movable-type.co.uk/scripts/latlong.html

Hello,

Thank you for your answers,
I misspoke, I’m looking for an API to do this calculation:
I have a path between two points A and B, and I would like to know at which distance the nearest point C of this path is,