public class HaversineCalculator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
calculate(double lat1,
double lon1,
double lat2,
double lon2)
Get the distance between 2 points on the surface of the planet (in kilometers).
|
public static double calculate(double lat1,
double lon1,
double lat2,
double lon2)
lat1 - - the latitude of the first pointlon1 - - the longitude of the first pointlat2 - - the latitude of the second pointlon2 - - the longitude of the second pointCopyright © 2018 SAP SE. All Rights Reserved.