Had to share this since it was kind of a fun side project just to see if I could do it.
I found a way to live track a location based on trilateration and calculating the location based on the distance to three other known points. This will not report the location back to the database as it’s calculated locally on the device, but it could be combined with other actions to write the location to a sheet.
DISCLAIMER: This goes against Glide’s intentions with the Location component, which requires a user’s explicit permission to share their location each time it’s required. Because of that, I will not be sharing how I achieved this unless Glide explicitly agrees to it. It also is highly inaccurate once you start to get several miles away from your last calibrated location. (I don’t know if this is an error in my math, a limitation in the decimal precision of the math used, or the irregularities of earth itself.) I am not tracking or saving any location data, so there is no need to worry if you choose to play with the app. Everything should be kept anonymous as long as you don’t sign in. I just wanted to see if this was possible.
This method still asks for location access, but there is no switch required. This is purely based on math to calculate a location based on 3 known points. The funny thing is that technically this uses your GPS location to figure out your location and the distance to the 3 other locations, so it’s a bit counter-intuitive. I’m using my location to figure out my location. Weird right? It’s more a way of exposing a very complicated and inaccurate way to avoid the location switch.
There’s two buttons on the screen. A reset button to reset to an anonymous default location, and a Calibrate button, which should calibrate to find your current location. This will place a pin on both maps, but if you look closely, you will see the pin actually moving with your current location. It’s amazingly accurate around my home, but I haven’t tested it while actual moving a sizable distance from my home. I’m really curious how well it works for others around the world. I’m skeptical about how well it works, but a couple of tests with a GPS spoofer seems to prove that it does work pretty well.
Let me know how well it works for you.