Back to Projects

Logistics Route Planning & ELD Compliance Platform

Overview

A web-based trip planner that accepts four inputs (current location, pickup, dropoff, cycle hours used) and returns a drivable route, daily logs, and mandatory stops — all while adhering to FMCSA hours-of-service rules. Built with Django REST Framework and React.

Challenge

Synthesizing real-world route data (distance, duration, geometry) with federal HOS regulations: 11-hour driving limit, 14-hour on-duty window, 30-min break after 8 hours, 70-hour/8-day rolling limit, and fuel stops every ~1,000 miles. All while using only free APIs and producing a visual ELD log grid.

Solution

A Django backend that geocodes addresses (Nominatim), fetches route data (OpenRouteService), then applies a time-slicing algorithm to insert rest breaks, fuel stops, pickup/dropoff hours, and daily cutoffs. The React frontend displays the map (React-Leaflet), turn-by-turn directions, and a color-coded 24-hour ELD log grid for each day of the trip.

Key Technologies

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