共用方式為


Weather - Get Tropical Storm Locations

使用 從個別國家氣象預測機構取得氣象雨的位置。

Get Tropical Storm Locations API 是一個 HTTP GET 要求,會傳回個別政府發行的暴風雨位置。 有關風雨的資訊包括、位置座標、幾何、槽標識碼、日期、風詳細數據和風弧度。

GET https://atlas.microsoft.com/weather/tropical/storms/locations/json?api-version=1.1&year={year}&basinId={basinId}&govId={govId}
GET https://atlas.microsoft.com/weather/tropical/storms/locations/json?api-version=1.1&year={year}&basinId={basinId}&govId={govId}&details={details}&radiiGeometry={radiiGeometry}&unit={unit}&current={current}

URI 參數

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

JsonFormat

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

api-version
query True

string

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

basinId
query True

basinId

水道標識碼

govId
query True

integer

int32

政府 Storm 識別碼

year
query True

integer

int32

()

current
query

boolean

當為 true 時,傳回目前的 storm 位置

details
query

boolean

若為 true,則回應中包含風弧度摘要數據

radiiGeometry
query

boolean

若為 true,則回應中包含風弧度摘要數據和 geoJSON 詳細數據

unit
query

WeatherDataUnit

指定以計量單位或英制單位傳回數據。 預設值為計量。

要求標頭

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

string

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

回應

名稱 類型 Description
200 OK

StormLocationsResult

確定

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 入口網站中 建立 Azure 地圖服務帳戶 或使用 PowerShell、CLI、Azure SDK 或 REST API 時所佈建的共用密鑰。

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

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

類型: apiKey
位於: query

SAS Token

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

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

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

類型: apiKey
位於: header

範例

Get Tropical Storm Current Location
Get Tropical Storm Locations

Get Tropical Storm Current Location

Sample request

GET https://atlas.microsoft.com/weather/tropical/storms/locations/json?api-version=1.1&year=2021&basinId=NP&govId=2&current=True

Sample response

{
  "results": [
    {
      "dateTime": "2021-04-24T18:00:00+00:00",
      "location": {
        "latitude": 21.7,
        "longitude": 134.1
      },
      "maxWindGust": {
        "value": 92.6,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 74.1,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 115,
          "localizedDescription": "ESE"
        },
        "speed": {
          "value": 22.2,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    }
  ]
}

Get Tropical Storm Locations

Sample request

GET https://atlas.microsoft.com/weather/tropical/storms/locations/json?api-version=1.1&year=2021&basinId=NP&govId=1

Sample response

{
  "results": [
    {
      "dateTime": "2021-02-22T00:00:00+00:00",
      "location": {
        "latitude": 10.4,
        "longitude": 125.7
      },
      "maxWindGust": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 46.3,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 305,
          "localizedDescription": "NW"
        },
        "speed": {
          "value": 9.3,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Depression"
    },
    {
      "dateTime": "2021-02-21T18:00:00+00:00",
      "location": {
        "latitude": 10.2,
        "longitude": 125.9
      },
      "maxWindGust": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 46.3,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 300,
          "localizedDescription": "WNW"
        },
        "speed": {
          "value": 22.2,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Depression"
    },
    {
      "dateTime": "2021-02-21T12:00:00+00:00",
      "location": {
        "latitude": 10.3,
        "longitude": 125.8
      },
      "maxWindGust": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 300,
          "localizedDescription": "WNW"
        },
        "speed": {
          "value": 42.6,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-19T06:00:00+00:00",
      "location": {
        "latitude": 7.2,
        "longitude": 129.8
      },
      "maxWindGust": {
        "value": 101.9,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 270,
          "localizedDescription": "W"
        },
        "speed": {
          "value": 18.5,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-19T00:00:00+00:00",
      "location": {
        "latitude": 7.2,
        "longitude": 131.2
      },
      "maxWindGust": {
        "value": 101.9,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 270,
          "localizedDescription": "W"
        },
        "speed": {
          "value": 7.4,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-18T18:00:00+00:00",
      "location": {
        "latitude": 7.2,
        "longitude": 131.7
      },
      "maxWindGust": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 270,
          "localizedDescription": "W"
        },
        "speed": {
          "value": 3.7,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-18T12:00:00+00:00",
      "location": {
        "latitude": 7.3,
        "longitude": 131.8
      },
      "maxWindGust": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 270,
          "localizedDescription": "W"
        },
        "speed": {
          "value": 5.6,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-18T06:00:00+00:00",
      "location": {
        "latitude": 7.3,
        "longitude": 132.1
      },
      "maxWindGust": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 305,
          "localizedDescription": "NW"
        },
        "speed": {
          "value": 9.3,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-18T00:00:00+00:00",
      "location": {
        "latitude": 7,
        "longitude": 132.6
      },
      "maxWindGust": {
        "value": 83.3,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 290,
          "localizedDescription": "WNW"
        },
        "speed": {
          "value": 5.6,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Storm"
    },
    {
      "dateTime": "2021-02-17T18:00:00+00:00",
      "location": {
        "latitude": 7,
        "longitude": 132.7
      },
      "maxWindGust": {
        "value": 74.1,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 55.6,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 290,
          "localizedDescription": "WNW"
        },
        "speed": {
          "value": 9.3,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Depression"
    },
    {
      "dateTime": "2021-02-17T12:00:00+00:00",
      "location": {
        "latitude": 6.8,
        "longitude": 132.4
      },
      "maxWindGust": {
        "value": 74.1,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 55.6,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 285,
          "localizedDescription": "WNW"
        },
        "speed": {
          "value": 13,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Depression"
    },
    {
      "dateTime": "2021-02-17T06:00:00+00:00",
      "location": {
        "latitude": 6.6,
        "longitude": 133.1
      },
      "maxWindGust": {
        "value": 64.8,
        "unit": "km/h",
        "unitType": 7
      },
      "sustainedWind": {
        "value": 46.3,
        "unit": "km/h",
        "unitType": 7
      },
      "movement": {
        "direction": {
          "degrees": 270,
          "localizedDescription": "W"
        },
        "speed": {
          "value": 22.2,
          "unit": "km/h",
          "unitType": 7
        }
      },
      "status": "Tropical Depression"
    }
  ]
}

定義

名稱 Description
basinId

二元標識碼

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

GeoJsonGeometry

有效的 GeoJSON geometry 物件。 此類型必須是七個有效 GeoJSON 幾何類型的其中一個 -Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon 和 GeometryCollection。 如需詳細資訊,請參閱 RFC 7946

GeoJsonGeometryCollection

有效的 GeoJSON GeometryCollection 物件類型。 如需詳細資訊 ,請參閱 RFC 7946

GeoJsonLineString

有效的 GeoJSON LineString 幾何類型。 如需詳細資訊 ,請參閱 RFC 7946

GeoJsonMultiLineString

有效的 GeoJSON MultiLineString 幾何類型。 如需詳細資訊 ,請參閱 RFC 7946

GeoJsonMultiPoint

有效的 GeoJSON MultiPoint 幾何類型。 如需詳細資訊,請參閱 RFC 7946

GeoJsonMultiPolygon

有效的 GeoJSON MultiPolygon 物件類型。 如需詳細資訊 ,請參閱 RFC 7946

GeoJsonPoint

有效的 GeoJSON Point 幾何類型。 如需詳細資訊,請參閱 RFC 7946

GeoJsonPolygon

有效的 GeoJSON Polygon 幾何類型。 如需詳細資訊 ,請參閱 RFC 7946

JsonFormat

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

LatLongPair

以緯度和經度表示的位置。

RadiusSector

承載 0–90 = NE 象限;90–180 = SE 象限;180–270 = SW 象限;270–360 = NW 象限。

StormLocation

個別政府發行的 Storm 位置

StormLocationsResult

個別政府發行的 Storm 位置

StormWindRadiiSummary

當要求中 details=true 或 radiiGeometry=true 時顯示。

UnitType

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

WeatherDataUnit

指定以度量單位或英制單位傳回數據。 預設值為計量。

WeatherUnit

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

WindDetails

傳回的風力詳細數據包括速度和方向。

WindDirection

風向

basinId

二元標識碼

名稱 類型 Description
AL

string

大西洋

CP

string

太平洋中部

EP

string

東部太平洋

NI

string

北印度海

NP

string

太平洋北部

SI

string

印度南部

SP

string

南太平洋

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細資料。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

錯誤物件。

GeoJsonGeometry

有效的 GeoJSON geometry 物件。 此類型必須是七個有效 GeoJSON 幾何類型的其中一個 -Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon 和 GeometryCollection。 如需詳細資訊,請參閱 RFC 7946

名稱 類型 Description
type

GeoJsonObjectType

指定 GeoJSON 類型。 必須是九個有效 GeoJSON 物件類型的其中一種: Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonGeometryCollection

有效的 GeoJSON GeometryCollection 物件類型。 如需詳細資訊 ,請參閱 RFC 7946

名稱 類型 Description
geometries GeoJsonGeometry[]:

包含有效的 GeoJSON 幾何物件清單。 請注意 ,GeoJSON 中的座標以 x、y 順序 (經度、緯度) 。

type string:

GeometryCollection

指定 GeoJSON 類型。 必須是九個有效的 GeoJSON 物件類型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonLineString

有效的 GeoJSON LineString 幾何類型。 如需詳細資訊 ,請參閱 RFC 7946

名稱 類型 Description
coordinates

number[]

幾何座標 GeoJson LineString

type string:

LineString

指定 GeoJSON 類型。 必須是九個有效的 GeoJSON 物件類型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonMultiLineString

有效的 GeoJSON MultiLineString 幾何類型。 如需詳細資訊 ,請參閱 RFC 7946

名稱 類型 Description
coordinates

number[]

幾何座標 GeoJson MultiLineString

type string:

MultiLineString

指定 GeoJSON 類型。 必須是九個有效的 GeoJSON 物件類型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonMultiPoint

有效的 GeoJSON MultiPoint 幾何類型。 如需詳細資訊,請參閱 RFC 7946

名稱 類型 Description
coordinates

number[]

幾何的 GeoJson MultiPoint 座標。

type string:

MultiPoint

指定 GeoJSON 類型。 必須是九個有效 GeoJSON 物件類型的其中一種: Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonMultiPolygon

有效的 GeoJSON MultiPolygon 物件類型。 如需詳細資訊 ,請參閱 RFC 7946

名稱 類型 Description
coordinates

number[]

包含有效 GeoJSON Polygon 對象的清單。 請注意 ,GeoJSON 中的座標以 x、y 順序 (經度、緯度) 。

type string:

MultiPolygon

指定 GeoJSON 類型。 必須是九個有效的 GeoJSON 物件類型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonPoint

有效的 GeoJSON Point 幾何類型。 如需詳細資訊,請參閱 RFC 7946

名稱 類型 Description
coordinates

number[]

Position是具有兩個或多個元素的數位數位數位數位。 前兩個元素是 經度緯度,精確地以該順序排列。 高度/提高 許可權是選擇性的第三個元素。 如需詳細資訊,請參閱 RFC 7946

type string:

Point

指定 GeoJSON 類型。 必須是九個有效 GeoJSON 物件類型的其中一種: Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonPolygon

有效的 GeoJSON Polygon 幾何類型。 如需詳細資訊 ,請參閱 RFC 7946

名稱 類型 Description
coordinates

number[]

GeoJson Polygon幾何類型的座標。

type string:

Polygon

指定 GeoJSON 類型。 必須是九個有效的 GeoJSON 物件類型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

JsonFormat

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

名稱 類型 Description
json

string

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

LatLongPair

以緯度和經度表示的位置。

名稱 類型 Description
latitude

number

Latitude 屬性

longitude

number

經度屬性

RadiusSector

承載 0–90 = NE 象限;90–180 = SE 象限;180–270 = SW 象限;270–360 = NW 象限。

名稱 類型 Description
beginBearing

number

以度為單位的象限開始。

endBearing

number

以度為單位的象限結尾。

range

number

象限的半徑,以 nautical 英哩為單位。

StormLocation

個別政府發行的 Storm 位置

名稱 類型 Description
dateTime

string

預測有效日期時間,以ISO8601格式顯示。

hasTropicalPotential

boolean

True 是表示 當 storm 可能開發成一個氣候系統時。

isPostTropical

boolean

True 是表示 當暴風雨消失,且不再成為一個氣候系統時。

isSubtropical

boolean

True 是表示 當被分類為子向性耙耙。

location

LatLongPair

Storm 的座標

maxWindGust

WeatherUnit

與暴風相關聯的最大風速。 可能是 NULL。

minimumPressure

WeatherUnit

與暴風雨相關聯的最小壓力。 可能是 NULL。

movement

WindDetails

Storm 行動資訊。

status

string

Storm 狀態,英文。

sustainedWind

WeatherUnit

與暴風相關聯的最大持續風速。 可能是 NULL。

windRadiiSummary

StormWindRadiiSummary[]

當要求中 details=true 或 radiiGeometry=true 時顯示。

StormLocationsResult

個別政府發行的 Storm 位置

名稱 類型 Description
nextLink

string

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

results

StormLocation[]

個別政府發行的 Storm 位置

StormWindRadiiSummary

當要求中 details=true 或 radiiGeometry=true 時顯示。

名稱 類型 Description
dateTime

string

風力發電弧度摘要數據有效的 DateTime,以ISO8601格式顯示。

radiiGeometry GeoJsonGeometry:

GeoJSON 物件。 當要求中 radiiGeometry=true 時顯示。 描述風半徑象限的大綱。

radiusSectorData

RadiusSector[]

包含繪製風半徑象限所需的資訊。 承載 0–90 = NE 象限;90–180 = SE 象限;180–270 = SW 象限;270–360 = NW 象限。

windSpeed

WeatherUnit

與 radiusSectorData 相關聯的風速。

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

WeatherDataUnit

指定以度量單位或英制單位傳回數據。 預設值為計量。

名稱 類型 Description
imperial

string

以單位傳回數據。 一些英制系統的範例單位是華氏和英哩。

metric

string

以計量單位傳回數據。 計量系統的一些範例單位為攝氏和公里。

WeatherUnit

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

名稱 類型 Description
unit

string

傳回值的單位類型。

unitType

UnitType

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

value

number

捨入值。

WindDetails

傳回的風力詳細數據包括速度和方向。

名稱 類型 Description
direction

WindDirection

風向

speed

WeatherUnit

指定單位的風速。

WindDirection

風向

名稱 類型 Description
degrees

integer

Azimuth 度的風向,從 true North 開始,並繼續順時針方向。 北為 0 度,東部為 90 度,南為 180 度,西部為 270 度。 可能的值 0-359。

localizedDescription

string

指定語言的方向縮寫。