Click or drag to resize

PostalCodeLocation Class

Specifies a location using a postal code (or zip code, post code, or postcode - the terminology depends on the country).
Inheritance Hierarchy

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

The PostalCodeLocation type exposes the following members.

Constructors
  NameDescription
Public methodPostalCodeLocation(String, String)
Constructs a PostalCodeLocation object with a postal code (or zip code, post code, or postcode) and a two-letter country code representing the country that the postal code belongs to.
Top
Properties
  NameDescription
Public propertyCountryCode
Gets the non-null two-letter upper-case ISO 3166-1-alpha-2 country code of the country that the postal code belongs to.
Public propertyPostalCode
Gets the non-null, non-empty postal code (or zip code, post code, or postcode - the terminology depends on the country).
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 servers will attempt to find the longitude/latitude location of the specified postal code, and from that point on will treat the location as if it were a LongLatLocation (see the notes for that class for more relevant information).

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