Using location functions and variables

I really need some help. I used the build in geolocation function that saves the longitude and latitude to variables, I dont understand how to use the georadius function to check if the user is within a certain radius of a set of coordinates.

All I want is that when a user is at a certain location (with a radius of my choosing) it triggers a pop up toast. I have tried so many things, so far I can check to see if the users location coordinates are the same as the location im trying to trigger the toast but I cannot set a certain radius, the user basically has to already be at the location instead of getting a pop up when they are say 40 meters away from the location. I have looked into so many option I cannot figure it out. Please help thank you.

Scroll to Top