你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Weather - Get Tropical Storm Locations

用于从各个国家天气预报机构获取热带风暴的位置。

Get Tropical Storm Locations API 是一个 HTTP GET 请求,用于返回各个政府发布的热带风暴的位置。 有关热带风暴的信息包括位置坐标、几何图形、流域 ID、日期、风向详细信息和风半径。

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 参数

名称 必需 类型 说明
format
path True

JsonFormat

响应的所需格式。 仅支持 json 格式。

api-version
query True

string

Azure Maps API 的版本号。

basinId
query True

basinId

流域标识符

govId
query True

integer (int32)

政府风暴 ID

year
query True

integer (int32)

气旋年份

current
query

boolean

如果为 true,则返回当前风暴位置

details
query

boolean

如果为 true,则响应中包含风半径摘要数据

radiiGeometry
query

boolean

如果为 true,则响应中包含风半径摘要数据和 geoJSON 详细信息

unit
query

WeatherDataUnit

指定以公制单位或英制单位返回数据。 默认值为 metric。

请求头

名称 必需 类型 说明
x-ms-client-id

string

指定哪个帐户与 Microsoft Entra ID 安全模型结合使用。 它表示 Azure Maps 帐户的唯一 ID,可以从 Azure Maps 管理平面帐户 API 检索。 若要在 Azure Maps 中使用 Microsoft Entra ID 安全性,请参阅以下 文章 以获取指导。

响应

名称 类型 说明
200 OK

StormLocationsResult

好的

Other Status Codes

ErrorResponse

发生意外错误。

安全性

AADToken

这些 Microsoft Entra OAuth 2.0 流。 与 Azure 基于角色的访问配对时, 控制它可用于控制对 Azure Maps REST API 的访问。 Azure 基于角色的访问控制用于指定对一个或多个 Azure Maps 资源帐户或子资源的访问。 任何用户、组或服务主体都可以通过内置角色或由一个或多个对 Azure Maps REST API 的权限组成的自定义角色授予访问权限。

若要实现方案,建议查看 身份验证概念。 总之,此安全定义提供了一种解决方案,用于通过能够针对特定 API 和范围进行访问控制的对象对应用程序建模。

注释

  • 此安全定义 要求 使用 x-ms-client-id 标头来指示应用程序请求访问的 Azure Maps 资源。 这可以从 地图管理 API 获取。

Authorization URL 特定于 Azure 公有云实例。 主权云具有唯一的授权 URL,Microsoft Entra ID 配置。 * Azure 基于角色的访问控制是通过 Azure 门户、PowerShell、CLI、Azure SDK 或 REST API 从 Azure 管理平面 配置的。 * 使用 azure Maps Web SDK 允许为多个用例设置基于应用程序的配置。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
https://atlas.microsoft.com/.default https://atlas.microsoft.com/.default

subscription-key

这是在 Azure 门户中或使用 PowerShell、CLI、Azure SDK 或 REST API 创建 Azure Maps 帐户 时预配的共享密钥。

使用此密钥,任何应用程序都可以访问所有 REST API。 换句话说,此密钥可用作颁发密钥的帐户中的主密钥。

对于公开的应用程序,我们建议使用 机密客户端应用程序 方法来访问 Azure Maps REST API,以便安全地存储密钥。

类型: apiKey
在: query

SAS Token

这是一个共享访问签名令牌,它通过 Azure 门户、PowerShell、CLI、Azure SDK 或 REST API 通过 Azure 管理平面在 azure Maps 资源 上的列表 SAS 操作创建。

使用此令牌,任何应用程序都有权使用 Azure 基于角色的访问控制进行访问,并精细控制特定令牌的过期、速率和区域。 换句话说,SAS 令牌可用于允许应用程序以比共享密钥更安全的方式控制访问。

对于公开的应用程序,建议在 映射帐户资源 上配置允许的源的特定列表,以限制呈现滥用并定期续订 SAS 令牌。

类型: apiKey
在: header

示例

Get Tropical Storm Current Location
Get Tropical Storm Locations

Get Tropical Storm Current Location

示例请求

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

示例响应

{
  "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

示例请求

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

示例响应

{
  "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"
    }
  ]
}

定义

名称 说明
basinId

流域标识符

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

GeoJsonGeometry

有效的 GeoJSON 几何图形对象。 该类型必须是七种有效的 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 = 东南象限;180–270 = 西南象限;270–360 = 西北象限。

StormLocation

政府发布的单个风暴的位置

StormLocationsResult

政府发布的单个风暴的位置

StormWindRadiiSummary

在请求中 details=true 或 radiiGeometry=true 时显示。

UnitType

与所显示的单位类型关联的数字 ID 值。 可用于单位转换。 有关详细信息,请参阅 Azure Maps 中的天气服务

WeatherDataUnit

指定以公制单位或英制单位返回数据。 默认值为 metric。

WeatherUnit

与天气相关的给定单位的特定值。

WindDetails

返回的风详细信息,包括速度和方向。

WindDirection

风向

basinId

流域标识符

说明
AL

大西洋

CP

中太平洋

EP

东太平洋

NI

北印度洋

NP

西北太平洋

SI

西南印度洋

SP

南太平洋

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

GeoJsonGeometry

有效的 GeoJSON 几何图形对象。 该类型必须是七种有效的 GeoJSON 几何类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon 和 GeometryCollection。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
type

GeoJsonObjectType

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonGeometryCollection

有效的 GeoJSON GeometryCollection 对象类型。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
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

名称 类型 说明
coordinates

number[] (double)

GeoJson LineString 几何图形的坐标。

type string:

LineString

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonMultiLineString

有效的 GeoJSON MultiLineString 几何图形类型。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
coordinates

number[] (double)

GeoJson MultiLineString 几何图形的坐标。

type string:

MultiLineString

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonMultiPoint

有效的 GeoJSON MultiPoint 几何图形类型。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
coordinates

number[] (double)

GeoJson MultiPoint 几何图形的坐标。

type string:

MultiPoint

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonMultiPolygon

有效的 GeoJSON MultiPolygon 对象类型。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
coordinates

number[] (double)

包含有效 GeoJSON Polygon 对象的列表。 注意,GeoJSON 中的坐标以 x、y 顺序(经度、纬度)表示。

type string:

MultiPolygon

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonPoint

有效的 GeoJSON Point 几何图形类型。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
coordinates

number[] (double)

Position 是包含两个或多个元素的数字数组。 前两个元素 经度纬度,精确按顺序排列。 海拔/海拔 是可选的第三个元素。 有关详细信息,请参阅 RFC 7946

type string:

Point

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

GeoJsonPolygon

有效的 GeoJSON Polygon 几何图形类型。 有关详细信息,请参阅 RFC 7946

名称 类型 说明
coordinates

number[] (double)

GeoJson Polygon 几何图形类型的坐标。

type string:

Polygon

指定 GeoJSON 类型。 必须是九种有效的 GeoJSON 对象类型之一 - Point、MultiPoint、LineString、MultiLineString、Polygon、MultiPolygon、GeometryCollection、Feature 和 FeatureCollection。

JsonFormat

响应的所需格式。 仅支持 json 格式。

说明
json

JavaScript 对象表示法数据交换格式

LatLongPair

表示为纬度和经度的位置。

名称 类型 说明
latitude

number (double)

Latitude 属性

longitude

number (double)

经度属性

RadiusSector

方位角 0–90 = NE 象限;90–180 = 东南象限;180–270 = 西南象限;270–360 = 西北象限。

名称 类型 说明
beginBearing

number (double)

象限起点的方位角(以度为单位)。

endBearing

number (double)

象限末端的方位角(以度为单位)。

range

number (double)

象限的半径,以海里为单位。

StormLocation

政府发布的单个风暴的位置

名称 类型 说明
dateTime

string

预测有效的日期时间,以 ISO8601 格式显示。

hasTropicalPotential

boolean

当风暴可能发展成热带系统时,情况确实如此。

isPostTropical

boolean

当风暴正在减弱,并且不再成为热带系统时,情况确实如此。

isSubtropical

boolean

当低气压被归类为副热带气旋时,情况确实如此。

location

LatLongPair

风暴的坐标

maxWindGust

WeatherUnit

与风暴相关的最大阵风速度。 可以为 NULL。

minimumPressure

WeatherUnit

与风暴相关的最小压力。 可以为 NULL。

movement

WindDetails

风暴移动信息。

status

string

风暴状态,英文。

sustainedWind

WeatherUnit

与风暴相关的最大持续风速。 可以为 NULL。

windRadiiSummary

StormWindRadiiSummary[]

在请求中 details=true 或 radiiGeometry=true 时显示。

StormLocationsResult

政府发布的单个风暴的位置

名称 类型 说明
nextLink

string

该链接指向返回的功能的下一页。 如果是最后一页,则不显示此字段。

results

StormLocation[]

政府发布的单个风暴的位置

StormWindRadiiSummary

在请求中 details=true 或 radiiGeometry=true 时显示。

名称 类型 说明
dateTime

string

风向半径摘要数据有效的 DateTime,以 ISO8601 格式显示。

radiiGeometry GeoJsonGeometry:

GeoJSON 对象。 当请求中的 radiiGeometry=true 时显示。 描述风半径象限的轮廓。

radiusSectorData

RadiusSector[]

包含绘制风半径象限所需的信息。 方位角 0–90 = NE 象限;90–180 = 东南象限;180–270 = 西南象限;270–360 = 西北象限。

windSpeed

WeatherUnit

与 radiusSectorData 关联的风速。

UnitType

与所显示的单位类型关联的数字 ID 值。 可用于单位转换。 有关详细信息,请参阅 Azure Maps 中的天气服务

说明
0

英尺

1

英寸

10

米每秒

11

百帕

12

英寸汞柱

13

千帕

14

毫巴

15

毫米汞柱

16

每平方英寸磅数

17

摄氏温度

18

华氏温度

19

开氏温度

2

英里

20

百分之

21

漂浮

22

整数

3

毫米

31

MicrogramsPerCubicMeterOfAir

4

厘米

5

6

千米

7

公里每小时

8

9

英里每小时

WeatherDataUnit

指定以公制单位或英制单位返回数据。 默认值为 metric。

说明
imperial

以英制单位返回数据。 英制的一些示例单位是华氏度和英里。

metric

以公制单位返回数据。 公制的一些示例单位是 Celsius 和 Kilometer。

WeatherUnit

与天气相关的给定单位的特定值。

名称 类型 说明
unit

string

返回值的单位类型。

unitType

UnitType (int32)

与所显示的单位类型关联的数字 ID 值。 可用于单位转换。 有关详细信息,请参阅 Azure Maps 中的天气服务

value

number (float)

四舍五入的值。

WindDetails

返回的风详细信息,包括速度和方向。

名称 类型 说明
direction

WindDirection

风向

speed

WeatherUnit

以指定单位表示的风速。

WindDirection

风向

名称 类型 说明
degrees

integer (int32)

风向(方位角),从正北开始,继续顺时针方向。 北是0度,东是90度,南是180度,西部是270度。 可能的值为 0-359。

localizedDescription

string

指定语言的 Direction 缩写。