Is It Raining - Request
https://sonicweather.com/API/isPrecip.php?lat=[latitude]&long=[longitude]&key=[SonicWeather key]
Request Parameters
latitude - required
The latitude of the location with precipitation
longitude - required
The longitude of the location with precipitation
key - required
Your SonicWeather secret key. Your secret key must be kept secret. Do not embed it in JavaScript source
code that you transmit to clients.
Sample Request
https://sonicweather.com/API/isPrecip.php?lat=41.95&long=-76.73&key=abcdefghijklmnop
( [sonic] => Array ( [key] => abcdefghijklmnop ) [loc] => Array ( [lat] => 41.95 [long] => -76.73 ) [radar] => Array ( [id] => KBGM [precip] => Array ( [intensity] => Light [type] => Rain ) ) )
Response Format
key - Your secret key
lat - The latitude of the location
long - The longitude of the location
id - The 4 character ID of the NexRad closest to the input lat/long
intensity - The intensity of the precipitation. Options include null,light,moderate, and heavy
type - The precipitation type. Options include rain, snow, freezing rain, sleet, mixed, and thunderstorm