public final class LongLatLocation extends GeographicLocation implements java.io.Serializable
Make sure to specify the full range of data that you want when using this
location type - some weather stations have less data than others so it's
important for the API to have the full range when it's choosing which
station(s) to use. The LocationDataResponse
will include an station ID that will enable you to fetch new data calculated
from the same weather station(s) used by the API initially.
GeographicLocation
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
Constructor and Description |
---|
LongLatLocation(LongLat longLat)
Constructs a
LongLatLocation object with the specified
longitude and latitude position. |
Modifier and Type | Method and Description |
---|---|
LongLat |
longLat()
Returns the non-null longitude/latitude position of this
LongLatLocation . |
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
|
public LongLatLocation(LongLat longLat)
LongLatLocation
object with the specified
longitude and latitude position.longLat
- the non-null longitude/latitude position.java.lang.NullPointerException
- if longLat
is null
.public LongLat longLat()
LongLatLocation
.public java.lang.String toString()
The exact details of the representation are unspecified and subject to change.
toString
in class java.lang.Object
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.