Back to Projects

Logistics Route Planning & ELD Compliance Platform

Overview

A web application that accepts a driver's current location, pickup, dropoff, and hours already used in the current cycle, then produces a fully compliant trip plan: drivable route, per-day ELD logs, and all mandatory stops. Built with Django REST Framework and React, using only free mapping APIs.

Challenge

The core problem was fusing real-world route data (distance, duration, road geometry) with FMCSA Hours-of-Service regulations: 11-hour driving limit, 14-hour on-duty window, 30-minute break after 8 driving hours, 70-hour/8-day rolling cycle cap, and fuel stops every ~1,000 miles. The result also needed to render as a color-coded 24-hour ELD log grid — not just a text itinerary.

Solution

The Django backend geocodes addresses via Nominatim, fetches full route geometry from OpenRouteService, then applies a time-slicing algorithm that walks the route segment by segment, inserting rest breaks, fuel stops, and daily cutoffs according to HOS rules while tracking rolling-window hours across days. The React frontend renders the route on a Leaflet map with turn-by-turn directions and a grid-based ELD log view where each day's 24-hour block is color-coded by duty status.

Key Technologies

React.js React-Leaflet Tailwindcss Django Django Rest Framework (DRF) OpenStreetMap OpenRouteService