{
  "name": "🚚 Estimate driving time and distance for logistics with Open Route API",
  "nodes": [
    {
      "id": "4660840a-499a-4d44-be7c-1d0edfee9634",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        660,
        420
      ]
    },
    {
      "id": "4401f929-3ad6-4b8d-90bf-2edc58d4b381",
      "name": "Extract Results",
      "type": "n8n-nodes-base.set",
      "position": [
        1220,
        440
      ]
    },
    {
      "id": "14165f3a-104a-415a-b84b-86e903f86be8",
      "name": "Request Open Route API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        980,
        440
      ]
    },
    {
      "id": "27f17e62-6528-4c29-b10e-38f79dc50811",
      "name": "Collect Routes",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        300,
        420
      ]
    },
    {
      "id": "0ceec3de-34c0-4361-b6fc-527d2108cd4d",
      "name": "Save Results",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1440,
        440
      ]
    },
    {
      "id": "40e078a1-4cd5-46f0-938d-756c4a5d150d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 540,
        "height": 640,
        "content": "### 1. Trigger the workflow\nThis starts by collecting all the routes (Departure, Destination) that need distance and driving time by **truck**.\n\n#### How to setup?\n\n- **Load records in the Google Shee"
      }
    },
    {
      "id": "b723a6a2-6504-47f4-9ced-f84617a62dbe",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        80,
        420
      ]
    },
    {
      "id": "3b5fa269-e880-4552-8b39-a9eccd8d0d4d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        0
      ],
      "parameters": {
        "width": 1240,
        "height": 640,
        "content": "### 2. Loop to collect all driving distances and time \nThis starts by collecting all the routes (Departure, Destination) that need distance and driving time by **truck**.\n\n#### How to setup?\n- **Setup"
      }
    },
    {
      "id": "e0e79eea-04f0-462a-a930-01a0df4a0058",
      "name": "5 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        1660,
        440
      ]
    },
    {
      "id": "53d7aefb-6ecc-465f-8b1e-6141312a80e8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        660
      ],
      "parameters": {
        "width": 580,
        "height": 380,
        "content": "### [Check the Tutorial](https://www.youtube.com/watch?v=uJtp2NsmR2E)\n![Thumbnail](https://www.samirsaci.com/content/images/2025/06/image-11.png)"
      }
    }
  ],
  "connections": {
    "5 sec": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Results": {
      "main": [
        [
          {
            "node": "5 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect Routes": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Results": {
      "main": [
        [
          {
            "node": "Save Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Request Open Route API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Open Route API": {
      "main": [
        [
          {
            "node": "Extract Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Collect Routes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}