Database Reference
In-Depth Information
2. Check the JSON response for the web service you are going to use. If you
wantthe10closestweatherstationsfromapoint(thecitycentroid),there-
quest you need to run is as follows (test it in a browser):
http://api.openweathermap.org/data/2.1/find/station?lat=55&lon=37&cnt=10
3. You should get the following JSON response (the closest 10 stations and
their relative data are ordered by their distance from the point coordinates
that for this case are lon=37 and lat=55 ):
{
"calctime": "",
"cnt": 10,
"cod": "200",
"list": [
{
"clouds": [
{
"condition": "OVC",
"distance": 610
}
],
"coord": {
"lat": 55.5,
"lon": 37.5
},
"distance": 63.995,
"dt": 1362061800,
"id": 7325,
"main": {
"pressure": 1001,
"temp": 275.15
},
"name": "UUMO",
"rang": 50,
"type": 1,
"wind": {
"deg": 280,
Search WWH ::




Custom Search