Package | Description |
---|---|
net.degreedays.api.data |
For specifying and receiving degree-day data and temperature data from the API.
|
net.degreedays.geo |
Classes for handling geographic information like longitude/latitude positions and distances.
|
Modifier and Type | Method and Description |
---|---|
Distance |
Source.distanceFromTarget()
Returns the non-null distance of the
Source.station() from the target
location that was specified in the original request for data. |
Distance |
Station.elevation()
Returns the non-null elevation of the weather station.
|
Modifier and Type | Method and Description |
---|---|
Source.Builder |
Source.Builder.setDistanceFromTarget(Distance distanceFromTarget) |
Station.Builder |
Station.Builder.setElevation(Distance elevation) |
Modifier and Type | Method and Description |
---|---|
Distance |
LongLat.distanceTo(LongLat longLat)
Returns a
Distance object that represents the shortest
distance along the surface of the Earth from this to the
specified longLat . |
static Distance |
Distance.feet(double value)
Returns a
Distance object with the specified
value and DistanceUnit.FEET as the unit of
measurement. |
Distance |
Distance.in(DistanceUnit unit)
Returns a
Distance object that represents this
Distance converted into the specified unit of measurement. |
Distance |
Distance.inFeet()
Returns a
Distance object that represents this
Distance converted into feet. |
Distance |
Distance.inKilometres()
Returns a
Distance object that represents this
Distance converted into kilometres. |
Distance |
Distance.inMetres()
Returns a
Distance object that represents this
Distance converted into metres. |
Distance |
Distance.inMiles()
Returns a
Distance object that represents this
Distance converted into miles. |
static Distance |
Distance.kilometres(double value)
Returns a
Distance object with the specified
value and DistanceUnit.KILOMETRES as the unit of
measurement. |
static Distance |
Distance.metres(double value)
Returns a
Distance object with the specified
value and DistanceUnit.METRES as the unit of
measurement. |
static Distance |
Distance.miles(double value)
Returns a
Distance object with the specified
value and DistanceUnit.MILES as the unit of
measurement. |
Modifier and Type | Method and Description |
---|---|
LongLat |
LongLat.east(Distance distance)
Returns a
LongLat object that represents a position the
specified distance East of this . |
LongLat |
LongLat.north(Distance distance)
Returns a
LongLat object that represents a position the
specified distance North of this . |
LongLat |
LongLat.south(Distance distance)
Returns a
LongLat object that represents a position the
specified distance South of this . |
LongLat |
LongLat.west(Distance distance)
Returns a
LongLat object that represents a position the
specified distance West of this . |
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.