Home >> compact live weather
Returns concise live weather conditions for the chosen location.
- code:Passed as an associative array, tells the function what type of code you are passing and its value. Ex: array('stationId'=>statid) or array('zipCode'=>zipcode) or array('cityCode'=>citycode) or array('lat'=>lat, 'long'=>long). The keys are parsed in order: stationId, 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.
Note: This method supports passing multiple station ids at once (up to 5). They can either be passed as a string 'id1,id2,id3' or as an array ex: array('stationId'=>array('id1','id2','id3)). Passing as an array is not supported on this page. - unitType (optional): 0 - U.S. customary units (miles, °F, etc...) [default], 1 - Metric system units (kms, °C, etc...).