public class SphericalDistanceLibrary extends Object
Modifier and Type | Field and Description |
---|---|
static double |
EARTH_CIRCUMFERENCE_KM |
static double |
EARTH_CIRCUMFERENCE_METERS |
static double |
MAX_ERR_INV |
static double |
RADIUS_OF_EARTH_IN_KM |
static double |
RADIUS_OF_EARTH_IN_M |
Constructor and Description |
---|
SphericalDistanceLibrary() |
Modifier and Type | Method and Description |
---|---|
static double |
fastDistance(com.vividsolutions.jts.geom.Coordinate from,
com.vividsolutions.jts.geom.Coordinate to)
Approximated, fast and under-estimated equirectangular distance between two points.
|
static double |
metersToDegreesLatitude(double meters)
Convert meters to degrees of latitude
|
static double |
metersToDegreesLongitude(double meters,
double degreesLatitude)
Convert meters to degrees of longitude at the specified latitiude
|
public static final double EARTH_CIRCUMFERENCE_KM
public static final double EARTH_CIRCUMFERENCE_METERS
public static final double RADIUS_OF_EARTH_IN_KM
public static final double RADIUS_OF_EARTH_IN_M
public static final double MAX_ERR_INV
public static double metersToDegreesLatitude(double meters)
public static double metersToDegreesLongitude(double meters, double degreesLatitude)
public static double fastDistance(com.vividsolutions.jts.geom.Coordinate from, com.vividsolutions.jts.geom.Coordinate to)
Copyright © 2019. All rights reserved.