🚗 Namma Ride – AI-Powered Ride Sharing Platform for Tamil Nadu
Inspiration
Transportation is an essential part of daily life, yet many commuters in Tamil Nadu still face challenges such as high travel costs, limited ride-sharing options, traffic congestion, and safety concerns. While platforms like BlaBlaCar exist, they are not specifically designed for the needs of regional commuters or tailored to Tamil Nadu's cities, language, and travel patterns.
We wanted to build a platform that goes beyond traditional ride sharing by combining Artificial Intelligence, real-time communication, and safety-focused features into a single application. Our vision was to create a smarter, safer, and more affordable commuting experience while encouraging sustainable transportation through carpooling.
What it does
Namma Ride is a full-stack AI-powered ride-sharing and carpooling platform that connects drivers and passengers traveling along similar routes across Tamil Nadu.
The platform allows users to:
- Register and securely authenticate using JWT.
- Offer rides with vehicle and route information.
- Search for rides using multiple filters.
- Book rides instantly or request approval from drivers.
- Chat with drivers and passengers in real time using Socket.IO.
- Receive live notifications.
- Generate AI-assisted ride descriptions.
- Get AI-powered price suggestions for rides.
- Interact with an AI Trip Assistant that answers ride-related questions.
- Enable Women-Only ride options for safer travel.
- Save emergency contacts and trigger an SOS emergency feature.
- Review and rate other users after completed rides.
- View ride history, travel statistics, reputation level, and environmental impact.
One of our most unique innovations is Race Mode, where passengers can send booking requests to multiple rides simultaneously. Once one driver confirms a booking, all remaining pending booking requests are automatically cancelled, reducing waiting time while preventing duplicate confirmations.
How we built it
The project follows a modern MERN architecture.
Frontend
- React
- Vite
- Tailwind CSS
- React Router
- React Query
- React Hook Form
- Zod
- Axios
- Socket.IO Client
- Leaflet Maps
Backend
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT Authentication
- bcrypt
- Socket.IO
- Helmet
- Express Validator
AI
Instead of relying on traditional APIs, we integrated Groq's Llama 3.3 70B model to power intelligent features such as:
- AI Ride Price Suggestions
- AI Ride Description Generator
- AI Trip Assistant
The application also uses OpenStreetMap and Nominatim APIs for location search and mapping.
Challenges we faced
Developing Namma Ride involved several technical and architectural challenges.
AI Integration
Initially, we attempted to integrate Google's Gemini API, but persistent authentication and API key issues forced us to redesign the AI architecture. We migrated to Groq's OpenAI-compatible API, which provided faster inference and a smoother integration experience.
Real-Time Communication
Building a reliable real-time messaging system with Socket.IO required careful handling of:
- User authentication
- Online presence
- Typing indicators
- Read receipts
- Notification synchronization
Ensuring consistency between WebSocket events and database state was one of the most challenging aspects of the project.
Race Mode Logic
Implementing Race Mode required careful backend logic to ensure that when a passenger's booking is confirmed, all other pending booking requests are automatically cancelled without causing inconsistent seat availability or duplicate confirmations.
Ride Matching
Handling ride searches with multiple filters while maintaining good performance required designing optimized MongoDB queries and efficient backend filtering.
Safety Features
Designing the SOS workflow involved balancing user experience and emergency responsiveness. We introduced a confirmation countdown before triggering emergency calls to minimize accidental activations.
What we learned
This project significantly expanded our knowledge of full-stack software development.
We learned:
- Designing scalable MERN applications.
- Building RESTful APIs with Express.
- Managing complex MongoDB schemas and relationships.
- JWT authentication and authorization.
- Real-time communication using Socket.IO.
- AI integration using Large Language Models.
- State management in React.
- Form validation using React Hook Form and Zod.
- Interactive mapping using Leaflet.
- Designing user-centric interfaces.
- Writing modular, maintainable, and reusable code.
- Solving real-world software engineering challenges involving concurrency, asynchronous operations, and business logic.
Most importantly, we learned that building production-ready software is not just about implementing features—it requires careful planning, architecture, testing, and continuous refinement.
Future Improvements
Although the core platform is functional, there are several exciting enhancements planned for future releases.
- AI-powered smart ride matching based on route similarity.
- Dynamic pricing using demand prediction.
- Razorpay payment integration.
- Driver document verification.
- Live GPS ride tracking.
- Push notifications.
- Progressive Web App (PWA) support.
- AI route optimization.
- AI safety recommendations.
- Fraud detection using anomaly detection algorithms.
- Demand forecasting for popular travel routes.
- Advanced analytics dashboard.
- Deployment on cloud infrastructure with CI/CD.
Impact
Namma Ride aims to make commuting:
- Smarter through Artificial Intelligence.
- Safer through SOS features, women-only rides, and emergency contacts.
- More affordable by enabling cost-sharing.
- Environmentally friendly by reducing the number of vehicles on the road and lowering carbon emissions.
By focusing specifically on Tamil Nadu and incorporating localized features, Namma Ride provides a practical, intelligent, and scalable transportation solution that can be expanded to other regions in the future.
Log in or sign up for Devpost to join the conversation.