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

EventGridModelFactory.MapsGeofenceGeometry 方法

定义

初始化 MapsGeofenceGeometry 的新实例。

public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry MapsGeofenceGeometry (string deviceId = default, float? distance = default, string geometryId = default, float? nearestLat = default, float? nearestLon = default, string udId = default);
static member MapsGeofenceGeometry : string * Nullable<single> * string * Nullable<single> * Nullable<single> * string -> Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry
Public Shared Function MapsGeofenceGeometry (Optional deviceId As String = Nothing, Optional distance As Nullable(Of Single) = Nothing, Optional geometryId As String = Nothing, Optional nearestLat As Nullable(Of Single) = Nothing, Optional nearestLon As Nullable(Of Single) = Nothing, Optional udId As String = Nothing) As MapsGeofenceGeometry

参数

deviceId
String

设备的 ID。

distance
Nullable<Single>

从坐标到最近的地理围栏边界的距离。 正值表示坐标在地理围栏的外部。 如果坐标在地理围栏外部,但大于 searchBuffer 与最近地理围栏边界之间的距离值,则该值为 999。 负值表示坐标在地理围栏的内部。 如果坐标在多边形内,但大于 searchBuffer 的值远离最近的地理围栏边框,则该值为 -999。 值 999 表示坐标位于地理围栏外部的置信度很高。 值 -999 表示坐标位于地理围栏内部的置信度很高。

geometryId
String

地理围栏几何图形的唯一 ID。

nearestLat
Nullable<Single>

最近几何图形点的纬度。

nearestLon
Nullable<Single>

最近几何图形点的经度。

udId
String

上传地理围栏时由用户上传服务返回的唯一 ID。 不会包含地理围栏 POST API 中。

返回

用于模拟的新 MapsGeofenceGeometry 实例。

适用于