Package | Description |
---|---|
net.degreedays.geo |
Classes for handling geographic information like longitude/latitude positions and distances.
|
Modifier and Type | Method and Description |
---|---|
DistanceUnit |
Distance.unit()
Returns the unit of measurement of this
Distance object. |
static DistanceUnit |
DistanceUnit.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DistanceUnit[] |
DistanceUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Distance |
Distance.in(DistanceUnit unit)
Returns a
Distance object that represents this
Distance converted into the specified unit of measurement. |
Constructor and Description |
---|
Distance(double value,
DistanceUnit unit)
Constructs a new
Distance object with the specified value
and unit of measurement. |
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.