Informula

Informula

Share this post

Informula
Informula
How to Build a Simple Routing Tool via NN Algorithm and Python OOP? Part 2

How to Build a Simple Routing Tool via NN Algorithm and Python OOP? Part 2

Informula's avatar
Informula
Nov 22, 2023
∙ Paid

Share this post

Informula
Informula
How to Build a Simple Routing Tool via NN Algorithm and Python OOP? Part 2
Share

Previously on How to Build a Simple Routing Tool via NN Algorithm and Python OOP? Part 1, we talked about building routing part via Python OOP. In this article, we are going to cover how to demonstrate the results including route display and route plotting.

Step 3: Create Class Delivery_Demo.

  • Initialization with an instance variable route (output of plan_route ).

  • Define an instance method display_route to allow us to show the stops and total distance.

  • Define an instance method plot_route to allow us to visualize the route including the annotations.

Keep reading with a 7-day free trial

Subscribe to Informula to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Informula
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share