指定地点の週間天気データ取得

API名: 

weather/week

概要: 

リクエストパラメータで指定される緯度経度の週間天気データを取得します。
天気データはアメダスの単位(5kmメッシュ)で整備されています。

※この機能を利用するには別途契約が必要です。

情報元について:
気象情報元:株式会社ポッケ
このAPIが返却する上記情報は、情報元の提供規準に準拠します。

URI: 

https://test.core.its-mo.com/zmaps/api/apicore/core/v1_0/weather/week

<API使用例>
https://test.core.its-mo.com/zmaps/api/apicore/core/v1_0/weather/week?if_clientid=JSZxxxxxxxxxx|xxxxx&if_auth_type=ip&latlon=35.2414902,139.1315686&ssl=F

リクエストパラメータ

パラメータ 必須 デフォルト値 説明
latlon - 緯度経度の指定
本項目は必須項目であるため、未指定の場合はエラーとなります。
ssl   F SSL天気アイコン
真偽値を設定します。
Tを指定すると、出力パラメータweatherIconUrlが、SSLで取得可能な天気アイコンのURLになります。

出力データ

出力フォーマット

{"info":{"pointName":"神奈川県",
         "date":{"pubDate":"20150421",
                 "pubTime":"0600"}},
 "item":[{"weatherDate":"20150422",
          "weatherCode":"201",
          "weatherName":"曇り時々晴れ",
          "weatherIconUrl":"http://map.e-map.ne.jp/image/weather/201.gif",
          "rainPercent":10,
          "maxTemperature":20,
          "minTemperature":11}
...]}
キー名 データ型 説明
info     object 天気の取得元情報が入ります。
  pointName   string 天気観測地点名が入ります
  date   object 天気発表情報が入ります。
    pubDate string 天気発表日付が入ります。
    pubTime string 天気発表時刻が入ります。
発表時刻は06時、12時、18時の1日3回です。
item     array 短期天気データ配列が入ります。
検索結果が0件の場合は空の配列となります。
  weatherDate   string 予報日付が入ります。
  weatherCode   string 天気コードが入ります。
  weatherName   string 天気名称が入ります。
  weatherIconUrl   string 天気アイコンURLが入ります。
  rainPercent   number 降水確率(単位:%) が入ります。
  maxTemperature   number 最高気温(単位:℃) が入ります。
  minTemperature   number 最低気温(単位:℃) が入ります。

出力例

[通常出力例]
https://test.core.its-mo.com/zmaps/api/apicore/core/v1_0/weather/week?if_clientid=JSZxxxxxxxxxx|xxxxx&if_auth_type=ip&latlon=35.2414902,139.1315686&ssl=T

{"info":{"pointName":"神奈川県",
         "date":{"pubDate":"20150421",
         "pubTime":"0600"}},
 "item":[{"weatherDate":"20150422",
          "weatherCode":"201",
          "weatherName":"曇り時々晴れ",
          "weatherIconUrl":"https://map.e-map.ne.jp/image/weather/201.gif",
          "rainPercent":10,
          "maxTemperature":20,
          "minTemperature":11},
         {"weatherDate":"20150423",
          "weatherCode":"101",
          "weatherName":"晴れ時々曇り",
          "weatherIconUrl":"https://map.e-map.ne.jp/image/weather/101.gif",
          "rainPercent":10,
          "maxTemperature":23,
          "minTemperature":12},
         {"weatherDate":"20150424",
          "weatherCode":"101",
          "weatherName":"晴れ時々曇り",
          "weatherIconUrl":"https://map.e-map.ne.jp/image/weather/101.gif",
          "rainPercent":20,
          "maxTemperature":23,
          "minTemperature":14},
         {"weatherDate":"20150425",
          "weatherCode":"201",
          "weatherName":"曇り時々晴れ",
          "weatherIconUrl":"https://map.e-map.ne.jp/image/weather/201.gif",
          "rainPercent":20,
          "maxTemperature":22,
          "minTemperature":13},
         {"weatherDate":"20150426",
          "weatherCode":"101",
          "weatherName":"晴れ時々曇り",
          "weatherIconUrl":"https://map.e-map.ne.jp/image/weather/101.gif",
          "rainPercent":10,
          "maxTemperature":20,
          "minTemperature":12},
         {"weatherDate":"20150427",
          "weatherCode":"201",
          "weatherName":"曇り時々晴れ",
          "weatherIconUrl":"https://map.e-map.ne.jp/image/weather/201.gif",
          "rainPercent":20,
          "maxTemperature":21,
          "minTemperature":13},
         {"weatherDate":"20150428",
          "weatherCode":null,
          "weatherName":null,
          "weatherIconUrl":null,
          "rainPercent":null,
          "maxTemperature":null,
          "minTemperature":null}]}

[検索結果が0件の場合]
https://test.core.its-mo.com/zmaps/api/apicore/core/v1_0/weather/week?if_clientid=JSZxxxxxxxxxx|xxxxx&if_auth_type=ip&latlon=0,0&ssl=T

{"info":{"pointName":"",
         "date":{"pubDate":"",
         "pubTime":""}},
 "item":[]}