https://github.com/sunthecoder/public-accessibilty-ai
Nextjs/Vercel/React/Tailwind/Supabase/JavaScript/Python/Leaflet
https://github.com/sunthecoder/public-accessibilty-ai
Last synced: 3 months ago
JSON representation
Nextjs/Vercel/React/Tailwind/Supabase/JavaScript/Python/Leaflet
- Host: GitHub
- URL: https://github.com/sunthecoder/public-accessibilty-ai
- Owner: SunTheCoder
- Created: 2025-01-13T00:10:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T02:09:23.000Z (about 1 year ago)
- Last Synced: 2025-05-29T17:18:17.279Z (10 months ago)
- Language: JavaScript
- Homepage: https://public-transit-accessibility.vercel.app
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Public Transit Accessibility App
A progressive web application (PWA) for mapping and navigating public transit stations with a focus on accessibility features. The app works both online and offline, allowing users to view, add, and plan routes between transit stations.
## Features
- πΊοΈ Interactive map interface using OpenStreetMap
- π Add and manage transit stations
- βΏ Track station accessibility information
- π£οΈ Route planning with alternatives
- π± Works offline (Progressive Web App)
- π Background sync for offline changes
- π§ Obstacle avoidance in routing
- π Real-time location updates
## Technology Stack
### Frontend
- **Next.js** - React framework for the web application
- **Leaflet** - Open-source JavaScript library for interactive maps
- **TailwindCSS** - Utility-first CSS framework for styling
### Maps & Routing
- **OpenStreetMap** - Free and open-source map data
- **OSRM** (OpenStreetMap Routing Machine) - For calculating routes
- **Custom A* Algorithm** - For offline routing and obstacle avoidance
### Offline Capabilities
- **Service Workers** - For offline functionality and caching
- **IndexedDB** (via idb) - For local data storage
- **Background Sync** - For syncing offline changes
- **Cache API** - For caching map tiles and assets
### Backend & Database
- **Supabase** - Backend as a Service
- Real-time database
- Authentication
- Row Level Security
- REST API
## Key Features in Detail
### Offline Support
- Map tiles are cached for offline use
- Add stations while offline
- View existing stations and routes
- Automatic sync when back online
### Routing Features
- Multiple route alternatives
- Obstacle avoidance
- Distance and duration calculations
- Real-time updates
### Accessibility Features
- Track station accessibility status
- Accessible route planning
- Visual indicators for accessibility
## Getting Started
1. Clone the repository
bash
git clone [repository-url]
2. Install dependencies
bash
cd frontend
npm install
3. Set up environment variables
```bash
cp .env.example .env.local
# Add your Supabase credentials
```
4. Run the development server
```bash
npm run dev
```