LocationDataResponseStationId Property |
Gets the non-null, non-empty canonical ID of the weather station or
combination of weather stations that supplied the temperature data used
to calculate the returned degree days.
Namespace: DegreeDays.Api.DataAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public string StationId { get; }
Public ReadOnly Property StationId As String
Get
Property Value
StringRemarks
If the Location in the LocationDataRequest was a
StationIdLocation, this property will simply hold the canonical
form of that weather station's ID. We say "canonical" because it's
possible for a station ID to be expressed in more than one way, like
upper case or lower case. The canonical form of the station ID is the
form that you should display in a UI or store in a database if
appropriate.
If the Location in the LocationDataRequest was
a GeographicLocation, then:
- If the degree days were calculated using temperature data from a
single station (the usual case), this property will hold the canonical
form of that station's ID.
- If the degree days were calculated using temperature data combined
from multiple stations (something that the API might optionally start
doing at some point in the future), this property will hold the ID of a
"virtual station" that represents the specific combination of weather
stations used.
Either way, the station ID held by this property can be used to fetch
more data from the same station(s) that were used to generate the data in
this response. For example, you might want to request data using a
GeographicLocation initially, and then use the returned
station ID to fetch updates each day, week, or month going forwards.
See Also