Click or drag to resize

LongLatLocation Class

Specifies a location in terms of longitude and latitude coordinates.
Inheritance Hierarchy

Namespace:  DegreeDays.Api.Data.Impl
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
Syntax
public sealed class LongLatLocation : GeographicLocation

The LongLatLocation type exposes the following members.

Constructors
  NameDescription
Public methodLongLatLocation(LongLat)
Constructs a LongLatLocation object with the specified longitude and latitude position.
Top
Properties
  NameDescription
Public propertyLongLat
Returns the longitude/latitude position of this LongLatLocation.
Top
Methods
  NameDescription
Public methodEquals(Object)
Two Location objects are equal if it can be ascertained that they both represent the exact same weather station(s) or geographic location, and that two requests for data, one with each Location and identical in every other respect, would return identical data.
(Inherited from Location.)
Public methodGetHashCode
Overridden to ensure consistency with Equals.
(Inherited from Location.)
Public methodToString
Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString.)
Top
Remarks

The API will hunt for a weather station near the specified location that is able to supply the requested data, or it might (at some point) average data from multiple weather stations around the specified location if it thinks that might significantly improve results.

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.

Thread Safety
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
See Also