일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- EventLoop
- flutter
- 문법
- realtime
- Xcode
- GIT
- designpattern
- network
- SampleApp
- concurrency
- dart
- AppleDeveloper
- OpenAI
- chartsorg
- state
- Architecture
- LifeCycle
- tuist
- iot
- WWDC24
- swift
- uikit
- dgcharts
- dartz
- builder
- isolate
- philipshue
- weatherkit
- WebSocket
- SwiftUI
Archives
- Today
- Total
Jaebi의 Binary는 호남선
WeatherKit 사용 (WWDC 2024) 본문
목차
WeatherKit REST API
- Apple Developer Program 필요
- WeatherKit identifier(Service ID), private key 만들기 (Apple 공식링크 참고)
- 앱 기능 설정
- Apple Developer → Certificates, Identifiers & Profiles → Identifiers → 사용하는 identifier 선택 → App Services에서 WeatherKit Enable
- 직접적인 데이터 가져오기는 Web Token으로 요청해서 가져와야함 (JWT 발급 방법)
- 지원 REST API
- 해당 위치에서 사용할 수 있는 DataSet 가져오기
- `GET /api/v1/availability/{latitude}/{longitude}`
- 해당 위치의 날씨 데이터 가져오기
- `GET /api/v1/weather/{language}/{latitude}/{longitude}`
- Attribution 정보 가져오기
- `GET /attribution/{language}`
- 해당 위치에서 사용할 수 있는 DataSet 가져오기
❗️ 현재 WeatherKit v2는 Swift에서만 사용가능, REST API는 불가 ❗️
WeatherKit v2 is currently available only for Swift, not for the REST API. (128024852)
What's New in WWDC 2024
- 더 상세한 예측 (Forecast) 정보
- Forecast - Current, Hourly, Daily에 더 많은 값 (적설량, 유형별 강수량, 최고 풍속 등)
- 온도 (최고, 최저) 및 강수량 (낮, 밤)의 변화 (Changes)
- 온도 (최고, 최저), 강수량, 적설량 정보 과거와 비교 (Historical Comparisons)
- 날씨 변화 강조
- Statistics API 추가
- Historical averages - 1970부터의 온도 (최고, 최저), 강수량, 적설량 평균 제공
- Daily summaries - 과거 2021/8/1 까지의 날시 정보
- Statistics API 추가
- Bindary Format 지원 → 데이터 전송 가속화
Reference
Request authentication for WeatherKit REST API | Apple Developer Documentation
Create a developer token to access weather data.
developer.apple.com
WeatherKit REST API | Apple Developer Documentation
Obtain historical, current, and predictive weather for your app or service.
developer.apple.com
[iOS] WeatherKit REST API 인증 요청
날씨 데이터에 액세스할 개발자 토큰을 만듭니다
sujinnaljin.medium.com
'Swift' 카테고리의 다른 글
Swift Wi-Fi Configuration (0) | 2024.06.19 |
---|---|
WWDC 2024 - WeatherKit Sample App (0) | 2024.06.13 |
Swift - 문법 (Property Wrappers) (0) | 2024.06.12 |
Swift - 문법 (Protocols and Extensions, Error Handling, Generics) (0) | 2024.06.12 |
Swift - 문법 (Object and Classes, Enumerations and Structures, Concurrency) (0) | 2024.06.12 |