public final class GpxDistance extends java.lang.Object
OsmPrimitive
and a GPX point.Modifier | Constructor and Description |
---|---|
private |
GpxDistance() |
Modifier and Type | Method and Description |
---|---|
static double |
getDistance(OsmPrimitive p,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistance(p, new Node(waypoint.getCoor()))
instead |
static double |
getDistanceEastNorth(EastNorth en,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistance(new Node(en), new Node(waypoint.getCoor())) instead |
static double |
getDistanceLatLon(LatLon latlon,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistance(new Node(latlon), new Node(waypoint.getCoor())) instead |
static double |
getDistanceNode(Node node,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistance(node, new Node(waypoint.getCoor()))
instead |
static double |
getDistanceRelation(Relation relation,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistance(relation, new Node(waypoint.getCoor()))
instead |
static double |
getDistanceWay(Way way,
WayPoint waypoint)
Deprecated.
Use
Geometry.getDistanceWayNode(way, new Node(waypoint.getCoor())) instead |
static double |
getLowestDistance(OsmPrimitive p,
GpxData gpxData)
Find the distance between a point and a dataset of surveyed points
|
private GpxDistance()
public static double getLowestDistance(OsmPrimitive p, GpxData gpxData)
p
- OsmPrimitive from which to get the lowest distance to a GPX pointgpxData
- Data from which to get the GPX points@Deprecated public static double getDistance(OsmPrimitive p, WayPoint waypoint)
Geometry.getDistance(p, new Node(waypoint.getCoor()))
insteadp
- OsmPrimitive to get the distance to the WayPointwaypoint
- WayPoint to get the distance from@Deprecated public static double getDistanceRelation(Relation relation, WayPoint waypoint)
Geometry.getDistance(relation, new Node(waypoint.getCoor()))
insteadrelation
- Relation to get the distance fromwaypoint
- WayPoint to get the distance to@Deprecated public static double getDistanceWay(Way way, WayPoint waypoint)
Geometry.getDistanceWayNode(way, new Node(waypoint.getCoor()))
insteadway
- Way to get the distance fromwaypoint
- WayPoint to get the distance to@Deprecated public static double getDistanceNode(Node node, WayPoint waypoint)
Geometry.getDistance(node, new Node(waypoint.getCoor()))
insteadnode
- Node to get the distance fromwaypoint
- WayPoint to get the distance to@Deprecated public static double getDistanceEastNorth(EastNorth en, WayPoint waypoint)
Geometry.getDistance(new Node(en), new Node(waypoint.getCoor()))
insteaden
- The EastNorth to get the distance towaypoint
- WayPoint to get the distance to@Deprecated public static double getDistanceLatLon(LatLon latlon, WayPoint waypoint)
Geometry.getDistance(new Node(latlon), new Node(waypoint.getCoor()))
insteadlatlon
- LatLon to get the distance fromwaypoint
- WayPoint to get the distance to