共用方式為


Weather - Get Air Quality Hourly Forecasts

使用 來取得接下來一到 96 小時的每小時空氣質量預測,包括污染物水準、潛在風險和建議的預防措施。

Get Air Quality Hourly Forecasts API 是 HTTP GET 要求,會傳回有關污染物濃度的詳細資訊,以及未來每小時空氣品質預測的整體狀態。 該服務可以為即將到來的1、12、24、48、72和96小時提供預測的每小時空氣質量資訊,包括污染水準、空氣品質指數值、主要污染物,以及摘要風險水準和建議的預防措施的簡短聲明。

GET https://atlas.microsoft.com/weather/airQuality/forecasts/hourly/json?api-version=1.1&query={query}
GET https://atlas.microsoft.com/weather/airQuality/forecasts/hourly/json?api-version=1.1&language={language}&query={query}&duration={duration}&pollutants={pollutants}

URI 參數

名稱 位於 必要 類型 Description
format
path True

JsonFormat

回應所需的格式。 僅支援 json 格式。

api-version
query True

string

Azure 地圖服務 API 的版本號碼。

query
query True

number[]

指定為逗號分隔字串的適用查詢,由緯度所組成,後面接著經度,例如 “47.641268,-122.125679”。

天氣資訊通常適用於陸地上的位置、被陸地包圍的水體,以及大約50海裡海岸線的海洋區域。

duration
query

HourlyDuration

int32

指定從現在起多少小時,我們想要知道空氣品質。 可用的值為 1、12、24、48、72、96。 預設值為1小時。

language
query

string

應該傳回搜尋結果的語言。 應該是其中一個支援的 IETF 語言標記,不區分大小寫。 當特定欄位無法使用指定語言的數據時,會使用預設語言。

如需詳細資訊,請參閱 支援的語言

pollutants
query

boolean

會傳回每個污染物詳細信息的布爾值。 默認為 True。

要求標頭

名稱 必要 類型 Description
x-ms-client-id

string

指定要與 Microsoft Entra ID 安全性模型搭配使用的帳戶。 它代表 Azure 地圖服務帳戶的唯一標識碼,而且可以從 Azure 地圖服務管理平面帳戶 API 擷取。 若要在 Azure 地圖服務中使用 Microsoft Entra ID 安全性,請參閱下列 文章 以取得指引。

回應

名稱 類型 Description
200 OK

AirQualityResult

還行

Other Status Codes

ErrorResponse

發生未預期的錯誤。

安全性

AADToken

這些是 Entra OAuth 2.0 Flow Microsoft。 與 Azure 角色型存取配對時, 控制它可用來控制 Azure 地圖服務 REST API 的存取。 Azure 角色型訪問控制可用來指定一或多個 Azure 地圖服務資源帳戶或子資源的存取權。 任何使用者、群組或服務主體都可以透過內建角色或由一或多個 Azure 地圖服務 REST API 許可權所組成的自定義角色來授與存取權。

若要實作案例,建議您檢視 驗證概念。 總而言之,此安全性定義會透過能夠針對特定 API 和範圍進行訪問控制的物件,提供模型化應用程式的解決方案。

筆記

  • 此安全性定義 需要 使用 x-ms-client-id 標頭來指出應用程式要求存取的 Azure 地圖服務資源。 這可以從 地圖管理 API 取得。

Authorization URL 專屬於 Azure 公用雲端實例。 主權雲端具有唯一的授權 URL,Microsoft Entra ID 設定。 * 透過 Azure 入口網站、PowerShell、CLI、Azure SDK 或 REST API,從 Azure 管理 平面設定 Azure 角色型存取控制。 * Azure 地圖服務 Web SDK 的使用方式允許針對多個使用案例設定應用程式。

類型: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
https://atlas.microsoft.com/.default https://atlas.microsoft.com/.default

subscription-key

這是當您 在 Azure 入口網站或使用 PowerShell、CLI、Azure SDK 或 REST API 建立 Azure 地圖服務帳戶時所佈建的共用密鑰。

使用此金鑰,任何應用程式都可以存取所有 REST API。 換句話說,此金鑰可用來做為帳戶中核發的主要密鑰。

針對公開的應用程式,我們建議使用 機密用戶端應用程式 方法來存取 Azure 地圖服務 REST API,以便安全地儲存您的密鑰。

類型: apiKey
位於: query

SAS Token

這是透過 Azure 入口網站、PowerShell、CLI、Azure SDK 或 REST API,從 azure 地圖服務資源 列表 SAS 作業建立共用存取簽章令牌。

使用此令牌時,任何應用程式都有權使用 Azure 角色型訪問控制進行存取,並更精細地控制特定令牌的到期、速率和區域。 換句話說,SAS 令牌可用來讓應用程式以比共用密鑰更安全的方式控制存取。

對於公開的應用程式,我們建議在 對應帳戶資源上設定允許的來源特定清單, 以限制轉譯濫用,並定期更新 SAS 令牌。

類型: apiKey
位於: header

範例

Get Hourly Air Quality Forecasts

Sample request

GET https://atlas.microsoft.com/weather/airQuality/forecasts/hourly/json?api-version=1.1&query=47.632346,-122.138874&duration=12

Sample response

{
  "results": [
    {
      "dateTime": "2021-07-19T04:00:00+00:00",
      "index": 20.1,
      "globalIndex": 19.9,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 7.5,
          "globalIndex": 7.5,
          "concentration": {
            "value": 14.9,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 20.1,
          "globalIndex": 19.9,
          "concentration": {
            "value": 49.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 11.6,
          "globalIndex": 12.6,
          "concentration": {
            "value": 12.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.3,
          "globalIndex": 6.9,
          "concentration": {
            "value": 3.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.2,
          "globalIndex": 0.6,
          "concentration": {
            "value": 125.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.6,
          "globalIndex": 1.2,
          "concentration": {
            "value": 1.2,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T05:00:00+00:00",
      "index": 19.2,
      "globalIndex": 19.1,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 7.8,
          "globalIndex": 7.7,
          "concentration": {
            "value": 15.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 19.2,
          "globalIndex": 19.1,
          "concentration": {
            "value": 47.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 11.9,
          "globalIndex": 12.8,
          "concentration": {
            "value": 12.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.9,
          "globalIndex": 7.1,
          "concentration": {
            "value": 3.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.4,
          "globalIndex": 0.7,
          "concentration": {
            "value": 143.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.7,
          "globalIndex": 1.3,
          "concentration": {
            "value": 1.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T06:00:00+00:00",
      "index": 18.3,
      "globalIndex": 18.2,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8,
          "globalIndex": 8,
          "concentration": {
            "value": 16,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 18.3,
          "globalIndex": 18.2,
          "concentration": {
            "value": 45.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 12.1,
          "globalIndex": 13.1,
          "concentration": {
            "value": 13.1,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 15.4,
          "globalIndex": 7.4,
          "concentration": {
            "value": 3.7,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.6,
          "globalIndex": 0.8,
          "concentration": {
            "value": 162.1,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.4,
          "concentration": {
            "value": 1.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T07:00:00+00:00",
      "index": 17.5,
      "globalIndex": 17.3,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.3,
          "globalIndex": 8.3,
          "concentration": {
            "value": 16.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 17.5,
          "globalIndex": 17.3,
          "concentration": {
            "value": 43.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 12.4,
          "globalIndex": 13.4,
          "concentration": {
            "value": 13.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 16,
          "globalIndex": 7.7,
          "concentration": {
            "value": 3.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.8,
          "globalIndex": 0.9,
          "concentration": {
            "value": 180.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.5,
          "concentration": {
            "value": 1.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T08:00:00+00:00",
      "index": 16.9,
      "globalIndex": 16.8,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.2,
          "globalIndex": 8.2,
          "concentration": {
            "value": 16.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 16.9,
          "globalIndex": 16.8,
          "concentration": {
            "value": 42,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 12.4,
          "globalIndex": 13.3,
          "concentration": {
            "value": 13.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 15.4,
          "globalIndex": 7.4,
          "concentration": {
            "value": 3.7,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.8,
          "globalIndex": 0.9,
          "concentration": {
            "value": 180.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.9,
          "globalIndex": 1.6,
          "concentration": {
            "value": 1.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T09:00:00+00:00",
      "index": 16.4,
      "globalIndex": 16.3,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.1,
          "globalIndex": 8.1,
          "concentration": {
            "value": 16.2,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 16.4,
          "globalIndex": 16.3,
          "concentration": {
            "value": 40.7,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 12.3,
          "globalIndex": 13.3,
          "concentration": {
            "value": 13.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.8,
          "globalIndex": 7.1,
          "concentration": {
            "value": 3.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.8,
          "globalIndex": 0.9,
          "concentration": {
            "value": 181.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.9,
          "globalIndex": 1.6,
          "concentration": {
            "value": 1.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T10:00:00+00:00",
      "index": 15.9,
      "globalIndex": 15.7,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.1,
          "globalIndex": 8,
          "concentration": {
            "value": 16.1,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 15.9,
          "globalIndex": 15.7,
          "concentration": {
            "value": 39.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 12.3,
          "globalIndex": 13.3,
          "concentration": {
            "value": 13.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.2,
          "globalIndex": 6.8,
          "concentration": {
            "value": 3.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.8,
          "globalIndex": 0.9,
          "concentration": {
            "value": 181.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.9,
          "globalIndex": 1.6,
          "concentration": {
            "value": 1.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T11:00:00+00:00",
      "index": 15.8,
      "globalIndex": 15.7,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.1,
          "globalIndex": 8.1,
          "concentration": {
            "value": 16.2,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 15.8,
          "globalIndex": 15.7,
          "concentration": {
            "value": 39.2,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 12.8,
          "globalIndex": 13.8,
          "concentration": {
            "value": 13.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.5,
          "globalIndex": 6.9,
          "concentration": {
            "value": 3.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.8,
          "globalIndex": 0.9,
          "concentration": {
            "value": 179.1,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.6,
          "concentration": {
            "value": 1.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T12:00:00+00:00",
      "index": 15.7,
      "globalIndex": 15.6,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.2,
          "globalIndex": 8.1,
          "concentration": {
            "value": 16.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 15.7,
          "globalIndex": 15.6,
          "concentration": {
            "value": 39,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 13.3,
          "globalIndex": 14.3,
          "concentration": {
            "value": 14.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.7,
          "globalIndex": 7.1,
          "concentration": {
            "value": 3.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.8,
          "globalIndex": 0.9,
          "concentration": {
            "value": 176.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.5,
          "concentration": {
            "value": 1.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T13:00:00+00:00",
      "index": 15.7,
      "globalIndex": 15.5,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 8.2,
          "globalIndex": 8.2,
          "concentration": {
            "value": 16.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 15.7,
          "globalIndex": 15.5,
          "concentration": {
            "value": 38.9,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 13.7,
          "globalIndex": 14.8,
          "concentration": {
            "value": 14.8,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 15,
          "globalIndex": 7.2,
          "concentration": {
            "value": 3.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.7,
          "globalIndex": 0.9,
          "concentration": {
            "value": 173.7,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.5,
          "concentration": {
            "value": 1.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T14:00:00+00:00",
      "index": 18.7,
      "globalIndex": 18.6,
      "dominantPollutant": "Ozone",
      "category": "Excellent",
      "categoryColor": "#00E39B",
      "description": "The air quality is ideal for most individuals; enjoy your normal outdoor activities.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 7.7,
          "globalIndex": 7.7,
          "concentration": {
            "value": 15.4,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 18.7,
          "globalIndex": 18.6,
          "concentration": {
            "value": 46.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 13.8,
          "globalIndex": 14.9,
          "concentration": {
            "value": 14.9,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.7,
          "globalIndex": 7.1,
          "concentration": {
            "value": 3.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.6,
          "globalIndex": 0.8,
          "concentration": {
            "value": 165.3,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.5,
          "concentration": {
            "value": 1.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    },
    {
      "dateTime": "2021-07-19T15:00:00+00:00",
      "index": 21.8,
      "globalIndex": 22.4,
      "dominantPollutant": "Ozone",
      "category": "Fair",
      "categoryColor": "#FFC300",
      "description": "The air quality is generally acceptable for most individuals. However, sensitive groups may experience minor to moderate symptoms from long-term exposure.",
      "pollutants": [
        {
          "type": "NO2",
          "name": "Nitrogen Dioxide",
          "index": 7.3,
          "globalIndex": 7.2,
          "concentration": {
            "value": 14.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "O3",
          "name": "Ozone",
          "index": 21.8,
          "globalIndex": 22.4,
          "concentration": {
            "value": 54.1,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM10",
          "name": "Particulate Matter 10",
          "index": 13.9,
          "globalIndex": 15,
          "concentration": {
            "value": 15,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "PM2.5",
          "name": "Particulate Matter 2.5",
          "index": 14.5,
          "globalIndex": 6.9,
          "concentration": {
            "value": 3.5,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "CO",
          "name": "Carbon Monoxide",
          "index": 1.6,
          "globalIndex": 0.8,
          "concentration": {
            "value": 157,
            "unit": "µg/m³",
            "unitType": 31
          }
        },
        {
          "type": "SO2",
          "name": "Sulfur Dioxide",
          "index": 0.8,
          "globalIndex": 1.6,
          "concentration": {
            "value": 1.6,
            "unit": "µg/m³",
            "unitType": 31
          }
        }
      ]
    }
  ]
}

定義

名稱 Description
AirQuality

特定時間特定位置空氣質量的相關信息。

AirQualityResult

這個物件會從成功的 Get Air Quality 呼叫傳回。

DominantPollutant

污染物類型。 請注意,您可以隨時新增更多。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

HourlyDuration

指定從現在起多少小時,我們想要知道空氣品質。 可用的值為 1、12、24、48、72、96。 預設值為1小時。

JsonFormat

回應所需的格式。 僅支援 json 格式。

Pollutant

個別污染物的詳細資訊。 如果 pollutants=false,則不會傳回 。

PollutantType

污染物類型。 請注意,您可以隨時新增更多。

UnitType

與所顯示的單位類型相關聯的數值標識碼。 可用於單元翻譯。 如需詳細資訊,請參閱 Azure 地圖服務 中的 天氣服務。

WeatherUnit

與天氣相關的指定單位的特定值。

AirQuality

特定時間特定位置空氣質量的相關信息。

名稱 類型 Description
category

string

要求語言中空氣品質的單字描述。 例如,“Excellent”。

categoryColor

string

對應到此空氣質量結果類別的唯一色彩。

dateTime

string

以 ISO 8601 格式顯示的目前觀察日期和時間,例如 2019-10-27T19:39:57-08:00。

description

string

此空氣品質的文字說明會導致要求的語言。

dominantPollutant

DominantPollutant

濃度最高的污染物。

globalIndex

number

從0到300,國際標準化的空氣質量評級從0提高到300,較高的數位代表空氣質量惡化。

index

number

當地監管機構對規模設置的空氣質量評級。 縮放比例可能會根據位置而有所不同。 如需詳細資訊,請參閱維琪百科

pollutants

Pollutant[]

個別污染物的相關信息。

AirQualityResult

這個物件會從成功的 Get Air Quality 呼叫傳回。

名稱 類型 Description
nextLink

string

是傳回之功能下一頁的連結。 如果它是最後一頁,則沒有此欄位。

results

AirQuality[]

查詢位置的所有空氣質量結果清單。

DominantPollutant

污染物類型。 請注意,您可以隨時新增更多。

名稱 類型 Description
Carbon Monoxide

string

一氧化碳 (“CO”)

Nitrogen Dioxide

string

二氧化氮(“NO2”)

Ozone

string

臭氧 (“O3”)

Particulate Matter 10

string

顆粒物 10 (“PM10”)

Particulate Matter 2.5

string

顆粒物 2.5 (“PM2.5”)

Sulfur Dioxide

string

二氧化硫 (“SO2”)

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

HourlyDuration

指定從現在起多少小時,我們想要知道空氣品質。 可用的值為 1、12、24、48、72、96。 預設值為1小時。

名稱 類型 Description
1

string

12

string

24

string

48

string

72

string

96

string

JsonFormat

回應所需的格式。 僅支援 json 格式。

名稱 類型 Description
json

string

JavaScript 物件表示法數據交換格式

Pollutant

個別污染物的詳細資訊。 如果 pollutants=false,則不會傳回 。

名稱 類型 Description
concentration

WeatherUnit

物件,包含每一量空氣的污染物粒子數目。

globalIndex

number

從0到300,國際標準化的空氣質量評級從0提高到300,較高的數位代表空氣質量惡化。

index

number

當地監管機構對規模設置的空氣質量評級。 縮放比例可能會根據位置而有所不同。 如需詳細資訊,請參閱維琪百科

name

string

英文污染物的名稱。

type

PollutantType

污染物類型。 請注意,您可以隨時新增更多。

PollutantType

污染物類型。 請注意,您可以隨時新增更多。

名稱 類型 Description
CO

string

一氧化碳 (“CO”)

NO2

string

二氧化氮(“NO2”)

O3

string

臭氧 (“O3”)

PM10

string

顆粒物 10 (“PM10”)

PM2.5

string

顆粒物 2.5 (“PM2.5”)

SO2

string

二氧化硫 (“SO2”)

UnitType

與所顯示的單位類型相關聯的數值標識碼。 可用於單元翻譯。 如需詳細資訊,請參閱 Azure 地圖服務 中的 天氣服務。

名稱 類型 Description
0

Integer

1

Integer

10

Integer

11

Integer

12

Integer

13

Integer

14

Integer

15

Integer

16

Integer

17

Integer

18

Integer

19

Integer

2

Integer

20

Integer

21

Integer

22

Integer

3

Integer

31

Integer

4

Integer

5

Integer

6

Integer

7

Integer

8

Integer

9

Integer

WeatherUnit

與天氣相關的指定單位的特定值。

名稱 類型 Description
unit

string

傳回值的單位類型。

unitType

UnitType

與所顯示的單位類型相關聯的數值標識碼。 可用於單元翻譯。 如需詳細資訊,請參閱 Azure 地圖服務 中的 天氣服務。

value

number

四捨五入的值。