I found a workaround, that one can define a series of overlapped circular fences with radius of .5 * the desired rectangular width.. The number if fences corresponds to the desired resolution of the rectangle.
The event which raise contains the ID of the Fence you entered....There are a way for asking which is geofence I am inside
Dim geo As Geofence geo.Initialize geo.Id = "Test1" ' ID is here.... geo.Center.Initialize2(32.8372, 35.2698) 'change location! geo.RadiusMeters = 100 geo.ExpirationMs = DateTime.TicksPerDay 'expire after one day
Public Sub Geofence_Enter (Id As String) Log("Enter: " & Id) End Sub Public Sub Geofence_Exit (Id As String) Log("Exit: " & Id) End Sub
Public Sub RemoveGeofence(geo As Geofence) Dim g As List g.Initialize g.Add(geo.Id) client.RunMethod("removeGeofences", Array(g)) End Sub
Ignoring addGeofence because network location is disabled. Geofence added: false
Active mobile network without subscriber!