Can’t you use anvil.server.context.client.location to get the location data?
The results are a bit… weird.
<Location:{'city': 'Newtown', 'subdivision': 'Pennsylvania', 'latitude': 40.2673, 'longitude': -74.9487, 'country_code': 'US', 'country': 'United States'}>
These are my results, and they are about 60 miles away from where I really am, and also in the wrong state.