Home >> alerts
Returns weather alert information for a given Zip Code or latitude/longitude (U.S. Only).
- 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('lat'=>lat, 'long'=>long). The keys are parsed in order: zipCode, 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...).