public enum GeoDistanceType extends Enum<GeoDistanceType>
| Enum Constant and Description |
|---|
ARC
弧形(因为地球是弧形的,采用该设置可精确距离,但计算量较大)
|
PLANE
把地球看成平面,计算两点距离(精确值不够,但是计算量小)
|
| Modifier and Type | Method and Description |
|---|---|
static GeoDistanceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeoDistanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeoDistanceType ARC
public static final GeoDistanceType PLANE
public static GeoDistanceType[] values()
for (GeoDistanceType c : GeoDistanceType.values()) System.out.println(c);
public static GeoDistanceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All Rights Reserved.