EventGridModelFactory.MapsGeofenceGeometry Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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.
- 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
Azure SDK for .NET