Streamlit component to get current position
Project description
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()
st.write("altitude: " + position["altitude"])
st.write("longitude: " + position["longitude"])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file streamlit_current_location-0.0.1.tar.gz.
File metadata
- Download URL: streamlit_current_location-0.0.1.tar.gz
- Upload date:
- Size: 150.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
212ba3fea17896719a78150b478b2961168dc8d7ee607a33de76d47ba094beed
|
|
| MD5 |
89a8e7ffb84e72c938d9cb9812e17304
|
|
| BLAKE2b-256 |
d9a80646a0936dd925ea6f853a87e511541eb37cf5b1e8ddb5c8d99df849aa4d
|