ethanjweiner / visualize-the-web

A geographic visualizer of HTTP requests across long distances, built with Python and Flask
2 stars 1 forks source link

Create data definitions for routers #18

Closed ethanjweiner closed 3 years ago

ethanjweiner commented 3 years ago

Task Title

Optimize the routers array for routing

Task Description

This Task will hone in on the data definitions for routers and oceanic endpoints. I will format the routers list so that the route function can most easily access and traverse the routers. I will specifically focus on differentiating between normal routers and oceanic endpoints. I might use classes to represent and distinguish between these two router types. I will spend some time thinking about how to best represent this data.

ethanjweiner commented 3 years ago

2 possible solutions:

ethanjweiner commented 3 years ago

Final solution: Represented routers & landing points as classes, where a landing point is a subclass of router. Now, when iterating over the routers & landing points, we simply perform the routing based on the class we are in.