Share via


EventGridModelFactory.MapsGeofenceGeometry Method

Definition

Initializes a new instance of 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

Parameters

deviceId
String

ID of the device.

distance
Nullable<Single>

Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence.

geometryId
String

The unique ID for the geofence geometry.

nearestLat
Nullable<Single>

Latitude of the nearest point of the geometry.

nearestLon
Nullable<Single>

Longitude of the nearest point of the geometry.

udId
String

The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API.

Returns

A new MapsGeofenceGeometry instance for mocking.

Applies to