De/API/JSON API

Informationen über JSON bekommen 	Version 1.0

Alle Informationen können im JSON-Format angefordert werden. Dieses Interface ist bereits entwickelt.


 * Wetterstationen mit dem letzten Informationen
 * Städte mit dem aktuellen Wetter
 * Werdegang der Messungen von den einzelnen Stationen

Wenn Daten von dieser Website genutzt werden müssen die Bestimmungen der CC-BY-SA Lizenz akzeptiert werden

Liste von Städten / Wetterstationen in einem Rechteck begrenzt durch geografische Koordinaten
JSON Anfragen geben meteorologischen Daten von Städten zurück, die in dem definierten Rechteck liegen. Das Rechteck wird über die obere linke Ecke (lat1) und die untere rechte Ecke (lat2) festgelegt.

Als Antwort bekommt man eine Liste der Stäte mit den Folgenden Parametern
 Example of call 

 Example of result   {"message":"type=city","cod":"200","calctime":0.432,"cnt":59, "list":[ {"id":"524901","dt":"1337770800","lat":"55.75","lng":"37.62","name":"Moscow","temp":"289.48","wind_ms":"0","wind_deg":"-5","pressure":"1009", "rang":"10381222","prcp":"0","prsp_type":"4","cloud":"61","humidity":"63.30","temp_min":"288","temp_max":"291","type":"0","datatype":"city"}, {"id":"7117880","dt":"1337770800","lat":"55.76","lng":"38.10","name":"Zarya","temp":"289.80","wind_ms":"0","wind_deg":"-5","pressure":"1010", "rang":"27000","prcp":"0","prsp_type":"4","cloud":"58","humidity":"63.00","temp_min":"289","temp_max":"291","type":"0","datatype":"city"}, {"id":"502018","dt":"1337770800","lat":"55.76","lng":"37.86","name":"Reutov","temp":"289.82","wind_ms":"0","wind_deg":"-5","pressure":"1010", "rang":"78370","prcp":"0","prsp_type":"4","cloud":"58","humidity":"63.00","temp_min":"289","temp_max":"291","type":"0","datatype":"city"}, ...

Die Liste der Stationen im Rechteck
JSON gibt alle Wetterstationen im Rechteck(siehe weiter oben) zurück. This list will get only the weather stations that transmit data no earlier than 3:00 p.m.

Die Parameter und Rückgabewerte sind gleich wie oben (nur type=station)

 Example of call 

In response we get a following list
 Example of call 

 Example of result 

In response we get:
 Example of call 

 Example of result 

{"city_id":"524901","ref_id":0,"lat":"55.75","lng":"37.62","name":"Moscow","date":"2012-05-27 06:00:00","unixdate":"1338094800", "temp":12.49,"temp_min":12,"temp_max":13,"pressure":"1005","humidity":"43.40","precipitation":"0","wind":"0", "clouds":"39","img":"http:\/\/openweathermap.org\/images\/icons60\/03d.png"}

In response we get:
 Example of call 

 Example of result 

{"station_id":"37754","ref_id":0,"lat":"55.98","lng":false,"name":false,"date":"2012-05-27 06:32:08","unixdate":"1338096728", "temp":16.11,"pressure":"1014","humidity":"42.00","precipitation":null,"wind":"5.65", "img":"http:\/\/openweathermap.org\/images\/icons60\/01d.png"}

API/JSON_API

API/JSON_API