Get Local Observations - Request
https://sonicweather.com/API/localObs.php?lat=[latitude]&long=[longitude]&key=[SonicWeather key]
Request Parameters
latitude - required
The latitude of the location for local observations
longitude - required
The longitude of the location for local observations
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/localObs.php?lat=41.7332397&long=-77.1332707&key=abcdefghijklmnop
( [sonic] => Array ( [key] => abcdefghijklmnop ) [loc] => Array ( [lat] => 41.7332397 [long] => -77.1332707 [geoloc] => State Road, Cherry Flats, Pennsylvania ) [weather] => Array ( [temperature] => 61.57 [conditions] => Mostly Cloudy [rh] => 75.73 [windDir] => Northeast [windSpeed] => 14.59 [pressure] => 1016.2 ) )
Response Format
key - Your secret key
lat - The latitude of the requested location
long - The longitude of the requested location
geoloc - The geolocation of the requested location
weather - The current local weather conditions, including temperature, sky conditions, relative
humidity, wind direction, wind speed, and pressure.