Project

General

Profile

Actions

機能実装 #49

closed

機能実装 #28: デザイン案精査

新機能の要望 #34: WEATHER)カンプ0213 3ページ目 「APIから取り出すコンテンツ内容が決まったらご教示くださいませ。」

天気の地図表示APIは存在する?

Added by Izumi Kawashima almost 7 years ago. Updated almost 7 years ago.

Status:
終了
Priority:
通常
Assignee:
Category:
client-110inch
Target version:
-
Start date:
02/28/2019
Due date:
% Done:

100%

Estimated time:
(Total: 0:00 h)

Description

探したところ、OpenWeatherMapに広域天気っぽいAPIが存在することが判明しました。

API doc: https://openweathermap.org/api/weathermaps
Sample API URL: https://{abc}.maps.owm.io/weather/cities/z/x/y.geojson?appid=XXX

[
{
geometry: {
coordinates: [130.52, 33.32],
type: "Point"
},
properties: {
city: "Kurume"
clouds: 75
country: "JP"
humidity: 70
pressure: 1021
temp: 7.98
wind_deg: 233.501
wind_speed: 2.7
},
type: "Feature"
},
:
]

ただし取得できる観測地点はOpenWeatherMapのAPI依存 (どの観測地点を入れるかはOWMの裁量次第) で、特定の都市を決め打ちで読み込むには使えないみたいです。


Subtasks 1 (0 open1 closed)

機能実装 #91: OpenWeatherMapから広域天気予報を取得する終了Izumi Kawashima02/28/2019

Actions
Actions

Also available in: Atom PDF