class Azure::EventGrid::V2018_01_01::Models::MapsGeofenceGeometry
The geofence geometry.
Attributes
@return [String] ID of the device.
@return [Float] 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.
@return [String] The unique ID for the geofence geometry.
@return [Float] Latitude of the nearest point of the geometry.
@return [Float] Longitude of the nearest point of the geometry.
@return [String] The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API.
Private Class Methods
Mapper for MapsGeofenceGeometry
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-01-01/generated/azure_event_grid/models/maps_geofence_geometry.rb, line 48 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MapsGeofenceGeometry', type: { name: 'Composite', class_name: 'MapsGeofenceGeometry', model_properties: { device_id: { client_side_validation: true, required: false, serialized_name: 'deviceId', type: { name: 'String' } }, distance: { client_side_validation: true, required: false, serialized_name: 'distance', type: { name: 'Double' } }, geometry_id: { client_side_validation: true, required: false, serialized_name: 'geometryId', type: { name: 'String' } }, nearest_lat: { client_side_validation: true, required: false, serialized_name: 'nearestLat', type: { name: 'Double' } }, nearest_lon: { client_side_validation: true, required: false, serialized_name: 'nearestLon', type: { name: 'Double' } }, ud_id: { client_side_validation: true, required: false, serialized_name: 'udId', type: { name: 'String' } } } } } end