Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIをMetaWeather APIからOpenWeather APIへ移行 #15

Merged
merged 25 commits into from
Oct 28, 2023

Conversation

h-yoshikawa44
Copy link
Owner

Issue 番号

closes #14

対応内容

  • 使用する API を MetaWeather API から OpenWeather API へ移行
    • API ルートを BFF 層にして、viewModel として返すようにした
    • ロケーション検索が微妙で、同国・同都市名(緯度経度違い)が複数返ることがあるので、国コードと緯度経度も併せて表示するようにした
    • 5日予報は、API の仕様上3時間単位の取得であるため、基本的には正午の天気をベースとした

API移行に伴い、緯度経度から天気情報が取得できるようになったので、
単純に緯度経度を取得して保持するだけでよくなった。
最高気温、最低気温は後でロジックを直す。
@h-yoshikawa44 h-yoshikawa44 added the enhancement New feature or request label Oct 28, 2023
@h-yoshikawa44 h-yoshikawa44 self-assigned this Oct 28, 2023
@vercel
Copy link

vercel bot commented Oct 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ch-weather-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2023 1:31pm

@h-yoshikawa44 h-yoshikawa44 merged commit 139fb72 into main Oct 28, 2023
2 checks passed
@h-yoshikawa44 h-yoshikawa44 deleted the feature/14-open_weather_map_api branch October 28, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[移行]MetaWeather APIからOpenWeatherMap APIへ移行したい
1 participant