Class GpxDistance

java.lang.Object
org.openstreetmap.josm.data.gpx.GpxDistance

public final class GpxDistance extends Object
A class to find the distance between an OsmPrimitive and a GPX point.
Since:
14802
  • Constructor Details

  • Method Details

    • 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 point
      gpxData - Data from which to get the GPX points
      Returns:
      The shortest distance