Low Code for Data Science

A journal of articles written by (and for) the KNIME Community around visual programming, data…

DATA STORIES | GEOGRAPHIC ROUTING | KNIME ANALYTICS PLATFORM

Bus Route Optimization in KNIME

Ricardo Auerbach
Low Code for Data Science
7 min readAug 30, 2023

--

Photo by Thomas Park on Unsplash.

Use Case: Improve student mobility

Challenge: Cope with drivers’ discretion to chose bus route

Goal: Reduce route time and distance travelled

A no-code solution with KNIME

Workflow 1: Bus Stop Generator

Fig. 1. This workflow determines adequate bus stop locations based on proximity to student addresses.
Fig. 2. A comparison between the map view of students’ addresses, and their respective bus stops.

Workflow 2: Bus Route Optimizer

Fig. 3. This workflow performs bus route optimization.

Data Preparation

Fig. 4. Data cleaning workflow to convert addresses to coordinates (lat/lon).
Fig. 5. Filtering duplicate addresses and viewing bus stop location on a map.

Route Optimization Loop

Fig. 6. This is the part of the workflow where we calculated the total route times and shuffle the order until the fastest possible route is identified and then stored.
Fig. 7. Results from “Drivetime and Distance Query” component.
Fig. 8. Outputs of the Parameter Optimization Loop End. The best parameter random seed will be converted into a flow variable and used in the final portion of the workflow.
Fig. 9. By using the most optimal random seed we can insert it as a flow variable into the “Shuffle” node to get the exact same route order again.
Fig. 10. After generating the route data the total time and distance is written to an Excel file.

Summary of Results

--

--

Low Code for Data Science
Low Code for Data Science

Published in Low Code for Data Science

A journal of articles written by (and for) the KNIME Community around visual programming, data science algorithms & techniques, integration with external tools, case studies, success stories, data processing, and (of course) KNIME Software.

Ricardo Auerbach
Ricardo Auerbach

Written by Ricardo Auerbach

Process Engineer at Benteler Steel/Tube

No responses yet