- Goal: The user who is accessing the app has their exact location tracked in the app and the distance between a particular location and their own location.
- Steps: <!--- tried geo location api but it asks for cell tower details. i need a way so that the same way a person's location is tracked in google maps can be used to get distance between that person and a particular location on retool using the aPI
))
Hi @Abhay_Saini ,
You can access the user's geolocation by calling await utils.getCurrentPosition()
within Retool. This will call into the browser's geolocation apis and give you the user's position, to the extent that it is available.
From there, you'll have to use a 3rd party api to perform any calculations regarding distance to other locations.
1 Like