A web-based route optimization tool designed for service professionals, delivery personnel, and field technicians to efficiently plan their daily routes across Canada.

The Route Optimizer helps service professionals and delivery personnel minimize travel time and distance when visiting multiple locations across Canada. By calculating the most efficient route between stops, users can:
- Save Time: Reduce total travel time between locations
- Save Fuel: Minimize driving distance with optimized routing
- Increase Productivity: Complete more deliveries or service calls per day
- Improve Service: Provide more accurate arrival time estimates
- Current Location Detection: Automatically detect and use your current GPS location as starting point
- Canadian Address Validation: Restricts addresses to Canadian locations only
- Google Places Autocomplete: Smart address suggestions as you type
- Multiple Travel Modes: Support for driving, walking, and bicycling routes
- Intelligent Routing: Uses Google's Distance Matrix API to calculate optimal visit order
- Visual Map Display: Interactive Google Maps showing your optimized route
- Real-time Directions: Turn-by-turn directions for each leg of your journey
- Distance & Duration: Shows travel time and distance between each stop
- Tutorial Video: Built-in video tutorial explaining how to use the application
- Responsive Design: Works on desktop, tablet, and mobile devices
- Clean Interface: Simple, intuitive design focused on ease of use
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Styling: TailwindCSS framework
- Maps: Google Maps JavaScript API
- Services: Google Places API, Distance Matrix API, Directions API
- Responsive: Mobile-first responsive design
- Modern web browser with JavaScript enabled
- Internet connection for map services
- Location services permission (optional, for current location feature)
- Enter your starting address manually, or
- Click "Use Current Location" to automatically detect your position
- Only Canadian addresses are accepted
- Enter destination addresses using the autocomplete-enabled input fields
- Add multiple destinations using the "Add Customer" button
- Remove destinations by clicking the β button next to their address
- All addresses are validated to ensure they're in Canada
- Driving: For vehicle-based service calls (default)
- Walking: For dense urban areas or short distances
- Bicycling: For eco-friendly or traffic-heavy areas
- Click "Optimize Route" to calculate the most efficient path
- The system analyzes distances between all locations
- Uses nearest-neighbor algorithm for optimal stop ordering
- View the optimized route on the interactive map
- See detailed stop-by-stop directions
- Note travel time and distance for each leg
- Follow turn-by-turn directions to each destination
- Web server (Apache, Nginx, or simple HTTP server)
- Google Maps API key with the following APIs enabled:
- Maps JavaScript API
- Places API
- Distance Matrix API
- Directions API
-
Download the files
# Download or clone the project files # Ensure index.html is in your web server directory
-
Configure Google Maps API
- Get a Google Maps API key from Google Cloud Console
- Enable required APIs (Maps JavaScript, Places, Distance Matrix, Directions)
- Replace the API key in index.html:
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"></script>
-
Deploy to Web Server
# Copy files to your web server document root cp index.html /var/www/html/ # Or serve locally for development python -m http.server 8000
-
Access the Application
- Open your web browser
- Navigate to your server URL or
http://localhost:8000
- Grant location permissions when prompted (optional)
API Key Security: For production use, implement server-side API key management and domain restrictions in Google Cloud Console.
Geographic Restrictions: The application is pre-configured for Canada. To modify for other countries, update the componentRestrictions
in the code:
componentRestrictions: { country: "ca" } // Change "ca" to your country code
- Delivery Personnel: Package and parcel delivery drivers
- Service Technicians: Computer repair, appliance repair, HVAC technicians
- Field Sales Representatives: Multi-location sales visits
- Healthcare Workers: Home care nurses, mobile medical services
- Small Business Owners: Any business requiring multi-stop routing
- Independent Contractors: Freelance service providers
This application is specifically designed for Canadian markets:
- Address validation restricted to Canadian postal codes
- Map centered on Canada by default
- Optimized for Canadian geography and address formats
- All distance calculations in metric system
For suggestions, improvements, or technical support:
- Developer: Navjot
- Email: [email protected]
- Year: 2024
Β© 2024 Route Optimizer. All Rights Reserved.
- API Costs: Google Maps API usage may incur charges based on usage volume
- Internet Required: Application requires internet connection for map services
- Privacy: Location data is processed by Google Maps services
- Accuracy: Route optimization is based on road distances, not aerial distances
- Canada Only: Currently restricted to Canadian addresses only
Potential improvements for future versions:
- Offline map caching
- Route export to GPS devices
- Customer appointment scheduling integration
- Multi-day route planning
- Service time estimation per stop
- Route sharing with team members
- Integration with delivery management systems
- Package tracking and delivery confirmation