タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

WebAPIとJSONに関するmima3のブックマーク (1)

  • 天気情報を取得する - Qiita

    天気情報を取得できるAPIはたくさんありますが、 今回は、OpenWeatherMap - actual and forecast weatherという無料サービスを使って、天気情報をjsonで取得します。 都市名で取得する http://api.openweathermap.org/data/2.5/weather?q="都市名","国" //例 http://api.openweathermap.org/data/2.5/weather?q=Tokyo,jp http://api.openweathermap.org/data/2.5/weather?lat="緯度"&lon="経度" //例 http://api.openweathermap.org/data/2.5/weather?lat=35&lon=140 { "base": "cmc stations", "clouds":

    天気情報を取得する - Qiita
    mima3
    mima3 2015/04/14
    経度緯度で現在の天候をとれる。3h雨量も取得できる。
  • 1