Generate random walking, cycling, or driving routes for your next adventure.
Screenshots
Features
- Random loop routes - Start and end at the same location
- Point-to-point routes - Get from A to B via random paths
- Distance targeting - Specify desired route length in miles or km
- Multiple transport modes - Walking, cycling, or driving
- Turn-by-turn directions - Detailed step-by-step instructions
- Real road routing - Uses OpenStreetMap and OSRM for accurate paths
Tech Stack
- Backend: TypeScript + Node.js + Express
- Frontend: Svelte + TypeScript + Leaflet
- Routing: OSRM (Open Source Routing Machine)
- Maps: OpenStreetMap
Getting Started
Backend
cd backend
npm install
npm run devBackend runs on http://localhost:3001
Frontend
cd frontend
npm install
npm run devFrontend runs on http://localhost:5173
Usage
- Enter a start address
- (Optional) Add a destination for point-to-point routes
- Select transport mode (walk/bike/car)
- Set desired distance
- Choose number of routes (1-5)
- Click "Generate Routes"
- View routes on map and expand for turn-by-turn directions
How It Works
- Geocodes addresses using Nominatim (OpenStreetMap)
- Generates random waypoints in a circular pattern (for loops) or between points
- Sends waypoints to OSRM for road-accurate routing
- Displays routes on an interactive Leaflet map
- Provides step-by-step navigation instructions
License
MIT
Name
"Slumprutt" is Swedish for "random route" (slump = random/chance, rutt = route)



