You are not logged in.

#1 2020-09-15 07:26:16

JCFigini
New Member
Registered: 2020-09-15
Posts: 2

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.

Offline

#2 2020-09-15 16:16:55

maro21
Member
From: Wrocław
Registered: 2018-03-06
Posts: 407

Re: Distance between point and path

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.

Offline

#3 2020-09-15 22:03:54

GerdP
Member
Registered: 2015-12-18
Posts: 1,166

Re: Distance between point and path

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

Offline

#4 2020-09-16 06:52:41

JCFigini
New Member
Registered: 2020-09-15
Posts: 2

Re: Distance between point and path

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,

Offline

Board footer

Powered by FluxBB