βš’οΈ 🚚 Estimate driving time and distance for logistics with Open Route API

⚑ 1,802 views Β· βš’οΈ Engineering

Description

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.

Example of Results

Ideal for:

Workflow

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:

Steps:

  1. βœ… Load departure/destination city coordinates from a Google Sheet
  2. πŸ” Loop through each record
  3. 🚚 Query OpenRouteService using the truck (driving-hgv) profile
  4. 🧾 Extract and store results: distance, duration, number of steps
  5. πŸ“€ Update the Google Sheet with new values

What do I need to get started?

This workflow is beginner-friendly and requires:

Next Steps

πŸ—’οΈ Follow the sticky notes inside the workflow to:

Thumbnail

πŸŽ₯ Check the Tutorial

πŸš€ You can customize the workflow to:

This template was built using n8n v1.93.0
Submitted: June 1, 2025

πŸ”— Nodes Used

Google Sheets, HTTP Request

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup