Skip to content

misogihagi/streamlit-current-location

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlit-current-location

Streamlit component to tell the current coordinaate

Installation instructions

pip install streamlit-current-location

Usage instructions

import streamlit as st

from streamlit_current_location import current_position

# it returns dict of GeolocationCoordinates
# see https://developer.mozilla.org/ja/docs/Web/API/GeolocationCoordinates
position = current_position()

if position is not None:
  st.write("latitude: " + str(position["latitude"]))
  st.write("longitude: " + str(position["longitude"]))

About

Streamlit component to tell the current coordinaate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published