LocationNotification.ContainsCoordinate
From Xojo Documentation
Method
LocationNotification.ContainsCoordinate(latitude As Double, longitude As Double) As Boolean
New in 2020r2
Supported for all project types and targets.
New in 2020r2
Supported for all project types and targets.
Returns True if the coordinate passed is inside the region defined by the this LocationNotification.
Sample Code
See if the device is within 100 meters of the EmpireStateBuilding location defined in this notification:
If EmpireStateBuilding.ContainsCoordinate(MobileLocation1.Latitude, MobileLocation1.Longitude) Then
MessageBox("You're close to the Empire State Building!")
End If
MessageBox("You're close to the Empire State Building!")
End If
See Also
MobileLocation class.