public class TurfConstants
extends java.lang.Object
TurfMeasurement.distance(Point, Point, String)
the third
optional parameter can define the output units.
Note that TurfConversion.convertLength(double, String, String)
can be used to transform
one unit to another, such as miles to feet.
Modifier and Type | Class and Description |
---|---|
static interface |
TurfConstants.TurfUnitCriteria
Retention policy for the various Turf units.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNIT_CENTIMETERS
A centimeter (American spelling) is a unit of length in the metric system, equal to one
hundredth of a meter.
|
static java.lang.String |
UNIT_CENTIMETRES
A centimetre (international spelling) is a unit of length in the metric system, equal to one
hundredth of a meter.
|
static java.lang.String |
UNIT_DEFAULT
The default unit used in most Turf methods when no other unit is specified is kilometers.
|
static java.lang.String |
UNIT_DEGREES
A degree, is a measurement of a plane angle, defined so that a full rotation is 360 degrees.
|
static java.lang.String |
UNIT_FEET
The foot is a unit of length in the imperial and US customary systems of measurement.
|
static java.lang.String |
UNIT_INCHES
The inch (abbreviation: in or ") is a unit of length in the (British) imperial and United
States customary systems of measurement now formally equal to 1/36th yard but usually
understood as 1/12th of a foot.
|
static java.lang.String |
UNIT_KILOMETERS
The kilometer (American spelling) is a unit of length in the metric system, equal to one
thousand meters.
|
static java.lang.String |
UNIT_KILOMETRES
The kilometre (international spelling) is a unit of length in the metric system, equal to one
thousand metres.
|
static java.lang.String |
UNIT_METERS
The metre (international spelling) or meter (American spelling) is the base unit of length in
the International System of Units (SI).
|
static java.lang.String |
UNIT_METRES
The metre (international spelling) is the base unit of length in
the International System of Units (SI).
|
static java.lang.String |
UNIT_MILES
The mile is an English unit of length of linear measure equal to 5,280 feet, or 1,760 yards,
and standardised as exactly 1,609.344 meters by international agreement in 1959.
|
static java.lang.String |
UNIT_NAUTICAL_MILES
The nautical mile per hour is known as the knot.
|
static java.lang.String |
UNIT_RADIANS
The radian is the standard unit of angular measure, used in many areas of mathematics.
|
static java.lang.String |
UNIT_YARDS
The yard (abbreviation: yd) is an English unit of length, in both the British imperial and US
customary systems of measurement, that comprises 3 feet or 36 inches.
|
public static final java.lang.String UNIT_MILES
public static final java.lang.String UNIT_NAUTICAL_MILES
public static final java.lang.String UNIT_KILOMETERS
In many Turf calculations, if a unit is not provided, the output value will fallback onto using
this unit. See UNIT_DEFAULT
for more information.
public static final java.lang.String UNIT_RADIANS
public static final java.lang.String UNIT_DEGREES
public static final java.lang.String UNIT_INCHES
public static final java.lang.String UNIT_YARDS
public static final java.lang.String UNIT_METERS
public static final java.lang.String UNIT_CENTIMETERS
public static final java.lang.String UNIT_FEET
public static final java.lang.String UNIT_CENTIMETRES
public static final java.lang.String UNIT_METRES
public static final java.lang.String UNIT_KILOMETRES
public static final java.lang.String UNIT_DEFAULT