Skip to content

Latest commit

Β 

History

History
52 lines (34 loc) Β· 1.16 KB

File metadata and controls

52 lines (34 loc) Β· 1.16 KB

πŸ“ Location-Based Attendance Verification (Streamlit + GPS + Microsoft Forms)

This project provides a location-restricted attendance system built with Streamlit.

Users must be physically present near the seminar/classroom to access the attendance form. If they are inside the allowed GPS radius, they are automatically redirected to a Microsoft Form. Otherwise, access is denied.

πŸš€ Live App

πŸ‘‰ Open here: https://attendance-8avu5rhldpsugjrcgvx7qj.streamlit.app/

βœ… How It Works

User opens the Streamlit page

Browser requests GPS permission

Distance is calculated using Haversine formula

If inside allowed radius β†’ redirect to Microsoft Form

If outside β†’ access denied

πŸ”’ Logic IF distance ≀ allowedRadius: redirect to MS Form ELSE: block access

✨ Features

βœ… Automatic GPS verification βœ… Distance calculation (meters) βœ… Microsoft Forms redirect βœ… No form shown before verification βœ… Works on mobile & desktop βœ… Simple, lightweight βœ… Easy deployment on Streamlit Cloud

πŸ“ Configuration

Inside app.py you can change:

Target location const targetLat = 39.132473; const targetLng = -84.5170492;

Radius (meters) const allowedRadius = 90;