How to make a button only works when the device is in a certain radius of an address?

You can see here :