Weather - Get Daily Indices
기상 조건이 야외 스포츠 활동, 건설 또는 농업과 같은 특정 활동에 최적인지 알고 싶을 때 사용합니다(결과에는 토양 수분 정보 포함).
Get Daily Indices API는 HTTP GET 요청으로 향후 활동을 계획할 때 도움이 되는 지침을 제공하는 인덱스 값을 반환합니다. 예를 들어, 건강 모바일 애플리케이션은 오늘이 달리기 또는 골프나 연 날리기와 같은 기타 야외 활동에 좋은 날씨임을 사용자에게 알릴 수 있습니다. 소매점은 예측된 지수 값을 기반으로 디지털 마케팅 캠페인을 최적화할 수 있습니다. 서비스는 현재 날짜부터 현재 및 다음 5일, 10일 및 15일 동안 일일 인덱스 값을 반환합니다.
GET https://atlas.microsoft.com/weather/indices/daily/json?api-version=1.1&query={query}
GET https://atlas.microsoft.com/weather/indices/daily/json?api-version=1.1&query={query}&language={language}&duration={duration}&indexId={indexId}&indexGroupId={indexGroupId}
URI 매개 변수
| Name | In(다음 안에) | 필수 | 형식 | Description |
|---|---|---|---|---|
|
format
|
path | True |
원하는 응답 형식입니다.
|
|
|
api-version
|
query | True |
string |
Azure Maps API의 버전 번호입니다. |
|
query
|
query | True |
number[] |
위도와 경도로 구성된 쉼표로 구분된 문자열로 지정된 해당 쿼리입니다(예: "47.641268,-122.125679"). 날씨 정보는 일반적으로 육지, 육지로 둘러싸인 수역 및 해안선에서 약 50해리 이내에 있는 해양 지역의 위치에 대해 사용할 수 있습니다. |
|
duration
|
query |
integer |
일일 인덱스가 반환되는 일 수를 지정합니다. 기본적으로 현재 날짜의 인덱스 데이터가 반환됩니다. 향후 인덱스 데이터를 요청할 때 현재 날짜는 응답에 1일로 포함됩니다. 사용 가능한 값은 다음과 같습니다
|
|
|
index
|
query |
integer |
반환된 결과를 해당 인덱스 하위 집합(인덱스 그룹)으로 제한하는 데 사용할 수 있는 숫자 인덱스 그룹 식별자입니다. 와 페 |
|
|
index
|
query |
integer |
반환된 결과를 해당 인덱스 형식으로 제한하는 데 사용할 수 있는 숫자 인덱스 식별자입니다. 와 페 |
|
|
language
|
query |
string |
검색 결과를 반환해야 하는 언어입니다. 대/소문자를 구분하지 않는 지원되는 IETF 언어 태그 중 하나여야 합니다. 특정 필드에 대해 지정된 언어의 데이터를 사용할 수 없는 경우 기본 언어가 사용됩니다. 자세한 내용은 지원되는 언어 참조하세요. |
요청 헤더
| Name | 필수 | 형식 | Description |
|---|---|---|---|
| x-ms-client-id |
string |
Microsoft Entra ID 보안 모델과 함께 사용할 계정을 나타냅니다. Azure Maps 계정에 대한 이 고유 ID는 Azure Maps 관리 평면 계정 API에서 가져올 수 있습니다. Azure Maps에서 Microsoft Entra ID 보안을 사용하는 방법에 대한 자세한 내용은 Azure Maps에서 인증 관리를 참조하세요. |
응답
| Name | 형식 | Description |
|---|---|---|
| 200 OK |
그래 |
|
| Other Status Codes |
예기치 않은 오류가 발생했습니다. |
보안
AADToken
다음은 Microsoft Entra OAuth 2.0 흐름에
시나리오를 구현하려면
비고
- 이 보안 정의
x-ms-client-id헤더를 사용하여 애플리케이션이 액세스를 요청하는 Azure Maps 리소스를 나타내야 합니다. 이는 Maps 관리 API에서 가져올 수 있습니다.
Authorization URL Azure 퍼블릭 클라우드 인스턴스와 관련이 있습니다. 소버린 클라우드에는 고유한 권한 부여 URL 및 Microsoft Entra ID 구성이 있습니다.
* Azure 역할 기반 액세스 제어는 Azure Portal, PowerShell, CLI, Azure SDK 또는 REST API를 통해 Azure 관리 평면에서 구성됩니다.
* Azure Maps Web SDK 사용하면 여러 사용 사례에 대한 애플리케이션의 구성 기반 설정을 사용할 수 있습니다.
- Microsoft ID 플랫폼에 대한 자세한 내용은 Microsoft ID 플랫폼 개요참조하세요.
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
| Name | Description |
|---|---|
| https://atlas.microsoft.com/.default | https://atlas.microsoft.com/.default |
subscription-key
Azure Portal에서 Azure Maps 계정 만들거나 PowerShell, CLI, Azure SDK 또는 REST API를 사용할 때 프로비전되는 공유 키입니다.
이 키를 사용하면 모든 애플리케이션이 모든 REST API에 액세스할 수 있습니다. 즉, 이 키를 발급된 계정에서 마스터 키로 사용할 수 있습니다.
공개적으로 노출된 애플리케이션의 경우 키를 안전하게 저장할 수 있도록 기밀 클라이언트 애플리케이션 접근 방식을 사용하여 Azure Maps REST API에 액세스하는 것이 좋습니다.
형식:
apiKey
In(다음 안에):
query
SAS Token
공유 액세스 서명 토큰은 Azure Portal, PowerShell, CLI, Azure SDK 또는 REST API를 통해 Azure 관리 평면을 통해
이 토큰을 사용하면 모든 애플리케이션이 Azure 역할 기반 액세스 제어를 사용하여 액세스하고 특정 토큰에 사용할 만료, 속도 및 지역에 대한 세분화된 제어 권한을 부여받습니다. 즉, SAS 토큰을 사용하여 애플리케이션이 공유 키보다 더 보안이 유지되는 방식으로 액세스를 제어할 수 있습니다.
공개적으로 노출된 애플리케이션의 경우 렌더링 남용을 제한하고 정기적으로 SAS 토큰을 갱신하도록 맵 계정 리소스 허용된 원본의 특정 목록을 구성하는 것이 좋습니다.
형식:
apiKey
In(다음 안에):
header
예제
Successfully retrieve daily indices values from current day
샘플 요청
GET https://atlas.microsoft.com/weather/indices/daily/json?api-version=1.1&query=43.84745,-79.37849&indexGroupId=11
샘플 응답
{
"results": [
{
"indexName": "Running Forecast",
"indexId": 1,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.2,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is an excellent day for outdoor running!"
},
{
"indexName": "Jogging Forecast",
"indexId": 2,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.4,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "Conditions are excellent for jogging outdoors!"
},
{
"indexName": "Hiking Forecast",
"indexId": 3,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.8,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "Conditions are excellent for hiking!"
},
{
"indexName": "Bicycling Forecast",
"indexId": 4,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.9,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "Conditions are excellent for bicycling outdoors!"
},
{
"indexName": "Golf Weather Forecast",
"indexId": 5,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 10,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is a great day for golf."
},
{
"indexName": "Tennis Forecast",
"indexId": 6,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.2,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is an excellent day for playing tennis!"
},
{
"indexName": "Skateboarding Forecast",
"indexId": 7,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.9,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is an excellent day for skateboarding!"
},
{
"indexName": "Outdoor Concert Forecast",
"indexId": 8,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.7,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "Conditions are excellent for attending an outdoor concert!"
},
{
"indexName": "Kite Flying Forecast",
"indexId": 9,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 8.5,
"category": "Very Good",
"categoryValue": 4,
"ascending": true,
"description": "Conditions are very good today for kite-flying."
},
{
"indexName": "Beach & Pool Forecast",
"indexId": 10,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 8.6,
"category": "Very Good",
"categoryValue": 4,
"ascending": true,
"description": "Conditons will be very good for a visit to the beach or pool."
},
{
"indexName": "Sailing Forecast",
"indexId": 11,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 8.3,
"category": "Very Good",
"categoryValue": 4,
"ascending": true,
"description": "Conditions will be very good for sailing."
},
{
"indexName": "Stargazing Forecast",
"indexId": 12,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.5,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is a great night to be stargazing!"
},
{
"indexName": "Fishing Forecast",
"indexId": 13,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 3.5,
"category": "Fair",
"categoryValue": 2,
"ascending": true,
"description": "Expect only fair conditions for fishing."
},
{
"indexName": "Ski Weather Forecast",
"indexId": 15,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 0,
"category": "Poor",
"categoryValue": 1,
"ascending": true,
"description": "Expect poor conditions for skiing."
},
{
"indexName": "Mosquito Activity Forecast",
"indexId": 17,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 7,
"category": "Very High",
"categoryValue": 4,
"ascending": true,
"description": "The weather is favorable for a very high level of mosquito activity. Plan activities and insect repellents accordingly."
},
{
"indexName": "Hunting Forecast",
"indexId": 20,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 4.5,
"category": "Fair",
"categoryValue": 2,
"ascending": true,
"description": "Expect only fair conditions for hunting."
},
{
"indexName": "Outdoor Barbecue",
"indexId": 24,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.8,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is a great day for an outdoor barbecue!"
},
{
"indexName": "Lawn Mowing Forecast",
"indexId": 28,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 9.6,
"category": "Excellent",
"categoryValue": 5,
"ascending": true,
"description": "This is a great day for lawn mowing!"
},
{
"indexName": "Outdoor Activity Forecast",
"indexId": 29,
"dateTime": "2020-07-14T07:00:00-04:00",
"value": 8.7,
"category": "Very Good",
"categoryValue": 4,
"ascending": true,
"description": "Conditions will be very good for outdoor activities."
}
]
}
정의
| Name | Description |
|---|---|
|
Daily |
DailyIndex 객체는 '스키 날씨 예보'와 같은 활동 이름을 제공하여 날씨 조건에 따라 야외 활동을 계획할 수 있도록 돕습니다; 적합성을 나타내는 0.0에서 10.0까지의 수치 등급; 'Poor'와 같은 텍스트 등급; 그리고 '스키 타기에 열악한 조건을 예상할 수 있다'와 같은 조건에 대한 간단한 설명도 포함되어 있습니다. |
|
Daily |
이 개체는 성공적인 Get Daily Indices 호출에서 반환됩니다. |
|
Error |
리소스 관리 오류 추가 정보입니다. |
|
Error |
오류 세부 정보입니다. |
|
Error |
오류 응답 |
|
Json |
원하는 응답 형식입니다.
|
DailyIndex
DailyIndex 객체는 '스키 날씨 예보'와 같은 활동 이름을 제공하여 날씨 조건에 따라 야외 활동을 계획할 수 있도록 돕습니다; 적합성을 나타내는 0.0에서 10.0까지의 수치 등급; 'Poor'와 같은 텍스트 등급; 그리고 '스키 타기에 열악한 조건을 예상할 수 있다'와 같은 조건에 대한 간단한 설명도 포함되어 있습니다.
| Name | 형식 | Description |
|---|---|---|
| ascending |
boolean |
와 |
| category |
string |
지수에 대한 질적 평가를 제공하며, 부동산을 |
| categoryValue |
integer (int32) |
범주 속성의 수치적 표현을 제공하여 지수의 질적 평가를 나타냅니다. 값은 1에서 5까지 다양하며, 인덱스마다 다를 수 있으므로 오름 플래그와 함께 사용해야 합니다. 예를 들어, 모기 활동의 경우: 낮음=1, 중등도=2, 높음=3, 매우 높음=4, 극한=5. |
| dateTime |
string (date-time) |
관측 날짜와 시간이 ISO 8601 형식(yyyy-mm-ddThh:mm:ss-hh:mm)으로 제공됩니다. 예를 들어, 2025-04-29T07:00:00-07:00. |
| description |
string |
지수 값을 간단하고 사용자 친화적으로 설명하여 사용자가 특정 기상 조건이나 활동과 관련해 그 중요성을 이해할 수 있도록 돕습니다. 예를 들어, 야외 바비큐의 인덱스 값이 'Excellent'라면, 설명은 '오늘은 야외 바비큐하기에 좋은 날입니다!'로 표시됩니다. |
| indexId |
integer (int32) |
특정 인덱스 유형을 고유하게 나타내는 숫자 식별자로, 다양한 야외 활동에 대한 다양한 인덱스를 구별합니다. 예를 들어, 'indexId'가 1이면 'Running' 인덱스에 해당하고, 'indexId'가 5인 것은 'Golfing' 인덱스에 해당합니다. 자세한 내용은 Azure 지도의 기상 서비스 개념 문서에 있는 인덱스 ID를 참조하세요. |
| indexName |
string |
색인의 이름으로, 달리기, 골프 또는 기타 야외 활동과 같은 활동 유형이나 상태를 나타냅니다. 자세한 내용은 Azure 지도의 기상 서비스 개념 문서에 있는 인덱스 ID를 참조하세요. |
| value |
number (float) |
0.0에서 10.0까지의 수치 지수 값으로, 달리기나 골프와 같은 특정 활동이나 조건에 날씨 조건이 얼마나 적합한지 정량화합니다. 가치가 높을수록 부동산 가치 |
DailyIndicesResult
이 개체는 성공적인 Get Daily Indices 호출에서 반환됩니다.
| Name | 형식 | Description |
|---|---|---|
| results |
쿼리된 위치에 대한 모든 일일 인덱스 목록입니다. |
ErrorAdditionalInfo
리소스 관리 오류 추가 정보입니다.
| Name | 형식 | Description |
|---|---|---|
| info |
object |
추가 정보입니다. |
| type |
string |
추가 정보 유형입니다. |
ErrorDetail
오류 세부 정보입니다.
| Name | 형식 | Description |
|---|---|---|
| additionalInfo |
오류 추가 정보입니다. |
|
| code |
string |
오류 코드입니다. |
| details |
오류 세부 정보입니다. |
|
| message |
string |
오류 메시지입니다. |
| target |
string |
오류 대상입니다. |
ErrorResponse
오류 응답
| Name | 형식 | Description |
|---|---|---|
| error |
오류 개체입니다. |
JsonFormat
원하는 응답 형식입니다.
json 형식만 지원됩니다.
| 값 | Description |
|---|---|
| json |