Home >> forecast rss

Returns the 7-day forecast for a zipcode, citycode or latitude/longitude.

  • code:Passed as an associative array, tells the function what type of code you are passing and its value. Ex: array('zipCode'=>zipcode) or array('cityCode'=>citycode) or array('lat'=>lat, 'long'=>long). The keys are parsed in order: zipCode, cityCode, lat/long. Once one is found, the rest are ignored, so if you pass more than one of the previous types, the first one the program encounters will be used.
  • unitType (optional): 0 - U.S. customary units (miles, °F, etc...) [default], 1 - Metric system units (kms, °C, etc...).