Click or drag to resize

StationDisplayName Property

Gets the non-null, non-empty string representing the name of the weather station.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public string DisplayName { get; }

Property Value

String
Remarks

The returned name should not include the ID, the longitude/latitude, or the elevation. So, for displaying the name of a station in a UI, at a minimum you'll probably want to do something like:

station.Id + ": " + station.DisplayName

You might also want to display the longitude/latitude and elevation too.

We'd love to be able to break the details within this name down further (e.g. offering separate fields for city, state, and country)... But the recorded details for weather stations names are generally too unreliable for this to make sense. Fields are often misspelled, mixed up (e.g. the state might have been entered into the city field), and required fields like country are often missing. And there's little consistency in the naming (e.g. United Kingdom, Great Britain, GB, UK etc.). This, unfortunately, is a limitation of the original data sources - it's typical for the IDs to be monitored and controlled closely, but it's rare for the names to receive the same level of attention.

Please be aware that a weather stations's display name may change over time, both in content and format. We strongly suggest that you don't try to parse these names. But please do let us know if there's something in particular that you need access to.

See Also