Closed ethanjweiner closed 3 years ago
Using https://github.com/telegeography/www.submarinecablemap.com/blob/master/public/api/v2/ as data source.
We have access to cable and landing point GeoJSON data. More importantly, however, we have access to cable data. Each cable includes information about the corresponding landing points. And the landing points data includes information about the corresponding cables.
Our "goal" is to have a list of all the landing points, and the nodes that this landing point is attached to. In order for the landing point to be chosen, it's "end router" must be in the relative direction of the destination. So now the question becomes: how can we ensure that the cable it takes is in the right direction? Should we allow it to be random?
My thought is that we simply ensure that the path taken brings the data CLOSER to the destination (i.e. latitude & longitude distance is shorter)
Furthermore, I think the best way to represent the data is as singular cables with two landing points --- this will simplify things immensely.
Potential pseudocode for landing_points() function
Idea: Only query for the cable upon landing on a landing point
Task Title
Task: Write landpoints() function
Task Description
This Task will...
Summary: Find a way to generate a path from each landpoint to its connected landpoints
Epic Parent
Feature: Awesome Feature Title