public class RouteElevationService
extends java.lang.Object
Constructor and Description |
---|
RouteElevationService() |
Modifier and Type | Method and Description |
---|---|
static GeoPointMetaData |
closestSegmentPoint(GeoPoint source,
GeoPoint target,
GeoPoint reference) |
static RouteData |
compressDataset(RouteData input) |
static int |
computeRelativeFrequency(double meter)
Returns the step distance in feet for route calculation.
|
static RouteData |
expandRoute(GeoPointMetaData[] route,
int incrementInFeet,
boolean bInterpolateAltitudes) |
static SegmentData |
expandSegment(GeoPointMetaData source,
GeoPointMetaData target,
double startingDistance,
int incrementInFeet,
boolean bInterpolateAltitudes) |
static double[] |
findControlPoints(RouteData routeData,
GeoPoint[] cps) |
static int[] |
getControlPointIndices(RouteData routeData,
GeoPoint[] cps) |
public static int computeRelativeFrequency(double meter)
meter
- The length of the route (m)public static double[] findControlPoints(RouteData routeData, GeoPoint[] cps)
public static int[] getControlPointIndices(RouteData routeData, GeoPoint[] cps)
public static GeoPointMetaData closestSegmentPoint(GeoPoint source, GeoPoint target, GeoPoint reference)
public static SegmentData expandSegment(GeoPointMetaData source, GeoPointMetaData target, double startingDistance, int incrementInFeet, boolean bInterpolateAltitudes)
public static RouteData expandRoute(GeoPointMetaData[] route, int incrementInFeet, boolean bInterpolateAltitudes)