Web Geolocation API to Get User's Location

Hi,

Is there a way to use, or a plan to implement the web Geolocation API for asking the user’s location and continue processing based on that?

Thanks

Hey @aghasemi ,

Yep, just use streamlit-bokeh-events with this bunch of code and it works pretty well :slight_smile:

PS. you can execute any custom js this way on a event and get the value in the callback without writting a full component :wink:

Hope it helps !

2 Likes

That really deserves more publicity!

And many thanks.

Hello!
This code is working but the location I am getting is not my current location, but my wifi service’s.
Please help
Thankyou