I stumbled on this code snippet on Stack Overflow, which made me wonder if that library is available to Anvil? If not, is there another way to get my gps location inside an Anvil app?
import android
droid = android.Android()
loc = droid.readLocation()
lattitude = loc.result['network']['latitude']
longitude = loc.result['network']['longitude']
print(lattitude, longitude )
I saw this thread, but it looks like I’d have to download another app to use it :
https://anvil.works/forum/t/gps-tracking-and-google-maps/857/2?u=david.wylie