π Estimate Driving Time and Distance for Logistics with Open Route API
Tags*: Supply Chain, Logistics, Route Planning, Transportation, GPS API
Context
Hi! Iβm Samir β a Supply Chain Engineer and Data Scientist based in Paris, and founder of LogiGreen Consulting.
I help companies improve their logistics operations using data, AI, and automation to reduce costs and minimize environmental footprint.
> Letβs use n8n to build smarter and greener transport operations!
π¬ For business inquiries, you can add find me on LinkedIn
Who is this template for?
This workflow is designed for logistics and transport teams who want to automate distance and travel time calculations for truck shipments.
Ideal for:
Control tower dashboards
Transport cost simulations
Route optimization studies
How does it work?
This n8n workflow connects to a Google Sheet where you store city-to-city shipment lanes, and uses the OpenRouteService API to calculate:
π Distance (in meters)
β±οΈ Travel time (in seconds)
πͺͺ Number of route steps
Steps:
β
Load departure/destination city coordinates from a Google Sheet
π Loop through each record
π Query OpenRouteService using the truck (driving-hgv) profile
π§Ύ Extract and store results: distance, duration, number of steps
π€ Update the Google Sheet with new values
What do I need to get started?
This workflow is beginner-friendly and requires:
A Google Sheet with route pairs (departure and destination coordinates)
A free OpenRouteService API key
π Get one here
Next Steps
ποΈ Follow the sticky notes inside the workflow to:
Select your sheet Plug in your API key Launch the flow!
π₯ Check the Tutorial
π You can customize the workflow to: Add CO2 emission estimates for Sustainability Reporting Connect to your TMS via API or EDI
This template was built using n8n v1.93.0
Submitted: June 1, 2025
Related Templates
Convert JSON Objects to Base64 Strings with File Processing
Encode JSON to Base64 String in n8n This example workflow demonstrates how to convert a JSON object into a base64-encod...
AI Agent with Ollama for current weather and wiki
This workflow template demonstrates how to create an AI-powered agent that provides users with current weather informati...
Automate Daily YouTrack Task Summaries to Discord by Assignee
Daily YouTrack In-Progress Tasks Summary to Discord by Assignee Keep your team in sync with a daily summary of tasks cu...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments