How to Build a Simple Routing Tool via NN Algorithm and Python OOP? Part 2
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.