Module weather

Source
Expand description

気象情報。 気象庁の非公式 API へアクセスする。

  • office-code: 気象台のコード。北海道以外は概ね都道府県ごと。
  • class10-code: 一次細分区域。天気予報を行う区分。
  • class20-code: 二次細分区域。天気予報を行う区分。

https://www.jma.go.jp/jma/kishou/know/saibun/

参考 https://github.com/misohena/el-jma/blob/main/docs/how-to-get-jma-forecast.org

Structs§

AiReadableWeather
Area
AreaArrayElement
DateDataElem 🔒
Forecast
JmaAreaDef 🔒
JmaOfficeInfo
OverviewForecast
TempPrecipAverage
TimeSeries

Enums§

AreaData

Constants§

JMA_AREA_JSON 🔒
https://www.jma.go.jp/bosai/common/const/area.json
JMA_TELOPLS_JSON 🔒
https://www.jma.go.jp/bosai/forecast/

Statics§

OFFICE_LIST 🔒
WEATHER_CODE_MAP 🔒

Functions§

edit_distance 🔒
https://ja.wikipedia.org/wiki/%E3%83%AC%E3%83%BC%E3%83%99%E3%83%B3%E3%82%B7%E3%83%A5%E3%82%BF%E3%82%A4%E3%83%B3%E8%B7%9D%E9%9B%A2
edit_distance_normalized 🔒
fill_by_element 🔒
office_list 🔒
office_name_to_code
offices
url_forecast
office_code から forecast URL を得る。
url_overview_forecast
office_code から overview_forecast URL を得る。
weather_code_map 🔒
weather_code_to_string
weather_to_ai_readable
AI にも読みやすい JSON に整形する。

Type Aliases§

ForecastRoot