<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/83c75a39-3aba-4ba4-a792-7aefe4b07895/94dbaed9-349c-449d-bc43-25de3ae5a780/SpartaIconScale9.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/83c75a39-3aba-4ba4-a792-7aefe4b07895/94dbaed9-349c-449d-bc43-25de3ae5a780/SpartaIconScale9.png" width="40px" /> 수업 목표

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/83c75a39-3aba-4ba4-a792-7aefe4b07895/393cd135-1603-4797-8fa6-42abcfedd782/SpartaIconS24.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/83c75a39-3aba-4ba4-a792-7aefe4b07895/393cd135-1603-4797-8fa6-42abcfedd782/SpartaIconS24.png" width="40px" /> 목차

</aside>


OpenWeatherMap API 활용

<aside>

이번 실습에서는 여러 날씨 데이터를 활용하기 위해 OpenWeatherMap API를 이용해 보겠습니다!

Current weather and forecast - OpenWeatherMap

Untitled

</aside>

회원가입

<aside>

회원가입 방법은 어렵지 않습니다. 아래 회원가입 페이지로 접속 후, 가입을 진행해 주세요!

Members (openweathermap.org)

Untitled

</aside>

API Key 발급

<aside>

Untitled

API → Current Weather and forecasts

<aside>

Untitled

Untitled

API 조금 더 알아보기

<aside>

Current weather data - OpenWeatherMap

<https://api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}&appid=>{API key}
  1. lat: 위도 (latitude)
  2. lon: 경도 (longitude)
  3. appid: API 키 (API key)

서울시 위/경도 데이터를 입력한 전체 URL