How karthikk022/namakkal-fuel-map- works
This is a Namakkal fuel-finder web app. Drivers use the browser map and station list to find fuel stops, inspect availability and services, and open directions; separate views provide fuel prices, price trends and emergency contacts. The app loads station, price and SOS data from local JSON, with optional Supabase live availability updates and browser-stored preferences and alerts. A daily price updater scrapes public sources and maintains price history. The excerpts show the browser reads and subscription setup, but not the full availability write or map-rendering wiring.
Main entry points: app.js App logic · update-prices.py Price updater · index.html Web app · prices.json Current prices
Components 16
Station discovery
- Web app
index.html - App logic
app.js - Map directions
app.js
Fuel data
- Station data
stations.json - Current prices
prices.json - Price history
price-history.json - Live availability
supabase-schema.sql - Supabase
Alerts and assistance
- Browser storage
- Emergency contacts
sos.json - SOS directory
app.js - Price and CNG alerts
app.js
Price automation
- Price updater
update-prices.py - Fuel price sources
Other components
- Driver
- Maps service
Connections 17
- Driver → Web app: uses
- Web app → App logic: loads
- App logic → Station data: fetches
- App logic → Current prices: fetches
- App logic → Emergency contacts: fetches
- App logic → Supabase: subscribes
- Supabase → App logic: change events
- App logic → Browser storage: reads and writes
- App logic → Price history: fetches
- App logic → SOS directory: renders
- App logic → Price and CNG alerts: manages
- App logic → Map directions: opens
- Map directions → Maps service: opens directions
- Driver → Price updater: scheduled update
- Price updater → Fuel price sources: scrapes
- Price updater → Current prices: writes
- Price updater → Price history: appends