How to only allow a button click if in Geolocation

this may help, i use this formula regularly