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)
Get the distance between an object and a waypoint
|
static double |
getDistanceEastNorth(EastNorth en,
WayPoint waypoint)
Get the distance between coordinates (provided by EastNorth) and a waypoint
|
static double |
getDistanceLatLon(LatLon latlon,
WayPoint waypoint)
Get the distance between coordinates (latitude longitude) and a waypoint
|
static double |
getDistanceNode(Node node,
WayPoint waypoint)
Get the distance between a node and a waypoint
|
static double |
getDistanceRelation(Relation relation,
WayPoint waypoint)
Get the shortest distance between a relation and a waypoint
|
static double |
getDistanceWay(Way way,
WayPoint waypoint)
Get the shortest distance between a way and a waypoint
|
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 pointspublic static double getDistance(OsmPrimitive p, WayPoint waypoint)
p - OsmPrimitive to get the distance to the WayPointwaypoint - WayPoint to get the distance frompublic static double getDistanceRelation(Relation relation, WayPoint waypoint)
relation - Relation to get the distance fromwaypoint - WayPoint to get the distance topublic static double getDistanceWay(Way way, WayPoint waypoint)
way - Way to get the distance fromwaypoint - WayPoint to get the distance topublic static double getDistanceNode(Node node, WayPoint waypoint)
node - Node to get the distance fromwaypoint - WayPoint to get the distance topublic static double getDistanceEastNorth(EastNorth en, WayPoint waypoint)
en - The EastNorth to get the distance towaypoint - WayPoint to get the distance topublic static double getDistanceLatLon(LatLon latlon, WayPoint waypoint)
latlon - LatLon to get the distance fromwaypoint - WayPoint to get the distance to