FlutterNestJSGPSRealtime TrackingMobility

Sam Bike

Sam Bike

TYPE

mobile

DURATION

1 month

COMPLETED

February 2025

LANGUAGE

Dart

MISSION BRIEF

Sam Bike is a modern micro-mobility platform designed to simplify urban transportation through a seamless bike rental experience. The mobile application enables users to discover nearby bikes, unlock them through the app, track their ride in real time, and pay digitally or with cash. Built with Flutter for the mobile client and NestJS for the backend, the system integrates live GPS tracking for both users and bikes, geofencing restrictions to ensure bikes remain within designated service zones, and real-time ride cost calculations based on time and distance. The platform focuses on reliability, scalability, and efficient fleet management, making it ideal for urban environments where quick, affordable transportation is essential.

VISUAL_EVIDENCE

Gallery 0
Gallery 1
Gallery 2
Gallery 3
Gallery 4

CORE FEATURES

  • Locate nearby available bikes
  • Unlock bikes directly from the mobile app
  • Real-time GPS tracking of bikes and riders
  • Geo-restricted riding zones
  • Live ride cost estimation based on duration and distance
  • Digital payments through the app
  • Cash payment option for flexible rentals
  • Ride history and trip analytics
  • User profile and account management
  • Push notifications for ride updates
  • Low battery and bike status alerts
  • Map-based bike discovery and navigation

TECH STACK

  • >Flutter for cross-platform mobile application development
  • >NestJS backend with modular architecture
  • >WebSocket-based real-time GPS updates
  • >Geofencing system to enforce service boundaries
  • >PostgreSQL database for ride and user data
  • >RESTful API for ride lifecycle management
  • >Secure authentication and session handling
  • >Dynamic pricing engine for live ride cost calculation
  • >Map integration for bike discovery and navigation
  • >Scalable backend services for fleet monitoring

Operational Hurdles

Ensuring accurate real-time location tracking for both users and bikes

SOLUTION_PROTOCOL: Implemented WebSocket-based updates with optimized GPS polling intervals to balance accuracy and battery usage

Preventing bikes from being taken outside service zones

SOLUTION_PROTOCOL: Developed a geofencing system that detects boundary violations and notifies both the rider and backend system

Providing accurate ride cost estimation before and during trips

SOLUTION_PROTOCOL: Built a dynamic pricing engine that calculates costs based on ride duration, distance, and pricing rules

Handling intermittent network connectivity during rides

SOLUTION_PROTOCOL: Implemented local caching and background sync to store ride data temporarily until connectivity is restored

Tracking fleet status and ensuring bikes are available in the right locations

SOLUTION_PROTOCOL: Built backend monitoring tools that analyze ride patterns and bike distribution to help operators reposition bikes