
Transit246
A real-time public transit platform for Barbados featuring live bus tracking, route planning, and an integrated advertising platform. Built with Phoenix LiveView, PostGIS, and OSRM routing.
Elixir
Flutter
PhoenixA comprehensive real-time public transportation platform designed specifically for Barbados, helping residents and visitors navigate the island's bus network with live tracking,
intelligent route planning, and crowdsourced community data.
Overview
Bajan Routes transforms public transit in Barbados by providing real-time bus tracking, multi-leg route planning, and a platform for community engagement. The application serves both
commuters seeking reliable transit information and local businesses looking to reach customers through strategic advertising integrated into the transit experience.
Technical Highlights
Backend Architecture
- Built with Elixir and Phoenix for high concurrency and fault tolerance
- Phoenix LiveView for real-time, interactive UI without custom JavaScript
- PostgreSQL with PostGIS extension for efficient geospatial queries
Routing & Navigation
- OSRM (Open Source Routing Machine) integration for transit route optimization
- Custom GPS-to-route matching algorithm with confidence scoring
- Multi-leg journey planning with transfer optimization
- ETA predictions based on real-time vehicle positions
Key Features
For Commuters
- Browse all active bus routes
- Find nearby stops using geolocation with configurable search radius
- Plan journeys with multiple route options sorted by duration
- Save favorite routes and stops for quick access
For the Community
- Report issues at bus stops with photo attachments
- Contribute to data quality improvements
- Early access referral program
For Businesses
- Multi-tier advertising: stop, route, area, or island-wide sponsorships
- Business dashboard for campaign management
- Flexible pricing tiers with volume discounts
For Administrators
- Comprehensive admin panel for route and stop management
- Real-time fleet visualization
- User reports and analytics
- Marketing and outreach tools
Technologies Used
- Backend: Elixir, Phoenix, Ecto, PostgreSQL/PostGIS
- Frontend: Phoenix LiveView, Tailwind CSS v4, MapboxGL
- Real-Time: Phoenix Channels, LiveView Streams
- Routing: OSRM, Geo/GeoPostGIS
- Auth: OAuth (Google, Facebook, Twitter, Apple)
- Infrastructure: Docker, GitHub Actions CI/CD
Architecture Decisions
- LiveView Streams for memory-efficient handling of large route/stop collections
- PostGIS spatial indexes for sub-millisecond proximity queries
- Confidence scoring for GPS-to-route matching reliability
- Background task processing for data imports and calculations