public class DistanceCalculator extends Object
| Constructor and Description |
|---|
DistanceCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static double |
distance(double startLatitude,
double startLongitude,
double endLatitude,
double endLongitude,
MeasuringUnit unit)
Returns the distance from the given coordinates values.
|
static double |
distanceBetweenPoints(Position start,
Position end,
MeasuringUnit unit)
Returns the distance between two points.
|
static double |
distanceBetweenPoints(String startGeohashValue,
String endGeohashValue,
MeasuringUnit unit)
Returns the distance between two given geohash values.
|
public static double distance(double startLatitude,
double startLongitude,
double endLatitude,
double endLongitude,
MeasuringUnit unit)
startLatitude - the latitude from start point.startLongitude - the longitude from start point.endLatitude - the latitude from end point.endLongitude - the longitude from end point.unit - the measurement unitpublic static double distanceBetweenPoints(Position start, Position end, MeasuringUnit unit)
start - the start position.end - the end position.unit - the measurement unitpublic static double distanceBetweenPoints(String startGeohashValue, String endGeohashValue, MeasuringUnit unit)
startGeohashValue - the geohash value from where to start the measurement.endGeohashValue - the geohash value where to end the measurement.unit - the measurement unitCopyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.