Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_current_location-0.0.1.tar.gz (150.0 kB view details)

Uploaded Source

File details

Details for the file streamlit_current_location-0.0.1.tar.gz.

File metadata

File hashes

Hashes for streamlit_current_location-0.0.1.tar.gz
Algorithm Hash digest
SHA256 212ba3fea17896719a78150b478b2961168dc8d7ee607a33de76d47ba094beed
MD5 89a8e7ffb84e72c938d9cb9812e17304
BLAKE2b-256 d9a80646a0936dd925ea6f853a87e511541eb37cf5b1e8ddb5c8d99df849aa4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page