Site


Contains attributes that define the <Site>.  The passed attributes determine the location from which weather and irradiance data will be returned to the client.  Either a latitude and longitude pair or zip code with country code is required. A client that passes both latitude/longitude and zip code/country code at a single <Site> will get data based on latitude/longitude.

Name

The name of the <Site>, given by the client.

Possible values: A string such as “Los Angeles” or “Sun Solar Project”

Latitude

The latitude of the <Site>, in decimal units.

Possible values: A decimal value such as 34.55.  Possible range: -60.00 to +60.00

Longitude

The longitude of the <Site>, in decimal units.

Possible values: A decimal value such as -116.75. Possible range: -180.0 to +180.0

ZipCode

The zip code of the <Site>.  Zip code look up based on country code.

Possible values: A string such as 98033 (U.S.) or 799007 (India)

CountryCode

The country code of the <Site> location. Country code indicates the country for zip code lookup.

Possible values: A two digit country code, such as “US”, following the ISO 3166-1 alpha-2 standard

Default CountryCode=”US”. If the client does not input a CountryCode and the ZipCode is not U.S.-based (and the client does not override with a valid latitude/longitude pair), the location will be invalid.