Package org.openstreetmap.josm.data.gpx
Class GpxDistance
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.GpxDistance
-
public final class GpxDistance extends java.lang.Object
A class to find the distance between anOsmPrimitive
and a GPX point.- Since:
- 14802
-
-
Constructor Summary
Constructors Modifier Constructor Description private
GpxDistance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
getLowestDistance(OsmPrimitive p, GpxData gpxData)
Find the distance between a point and a dataset of surveyed points
-
-
-
Constructor Detail
-
GpxDistance
private GpxDistance()
-
-
Method Detail
-
getLowestDistance
public static double getLowestDistance(OsmPrimitive p, GpxData gpxData)
Find the distance between a point and a dataset of surveyed points- Parameters:
p
- OsmPrimitive from which to get the lowest distance to a GPX pointgpxData
- Data from which to get the GPX points- Returns:
- The shortest distance
-
-