Skip to content

Commit

Permalink
Uncommented stuff
Browse files Browse the repository at this point in the history
But it turns out the code doesn't work again
I don't know why
  • Loading branch information
Crazy-Ginger committed May 8, 2018
1 parent bce06ca commit f82d8ae
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Tester/Module1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ Module Module1
List_print(node_list, False)

'shortest = Permute(node_list.Count, node_list, cont)
shortest = Approximation(node_list, cont)
shortest = Permute(node_list.Count, node_list, cont)
Console.WriteLine("Shortest distance was: " & shortest.distance / 1000 & " km")
For i As Integer = 0 To shortest.nodes.Count - 1
Console.Write(shortest.nodes.Item(i) & ", ")
Next
'Console.WriteLine()
'Console.WriteLine(shortest.URL)
Console.WriteLine(shortest.URL)
Console.ReadLine()
End Sub

Expand Down Expand Up @@ -668,7 +668,12 @@ Module Module1
Return shortest
End Function


Function Status_check(ByVal URL As String)
'Dim file As System.IO.StreamWriter
'file = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\awardle\source\repos\Complex_Algorithm\Complex_Algorithm\Tester\Test file.txt", True)
'file.WriteLine(URL)
'file.Close()
Dim passed(2) As Integer
For count As Integer = 1 To 4

Expand All @@ -692,6 +697,7 @@ Module Module1
End If
Next

'Console.WriteLine(status.ToString)
'test if the status of the route is valid or not
If status.ToString = "OK" Then
passed(2) = 1
Expand Down
27 changes: 27 additions & 0 deletions Tester/Test file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Manchester|via:Huddersfield|via:Halifax|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Halifax&waypoints=via:Manchester|via:Huddersfield|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Manchester|via:Halifax|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Huddersfield&waypoints=via:Manchester|via:Halifax|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Halifax&waypoints=via:Manchester|via:Liverpool|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Huddersfield&waypoints=via:Manchester|via:Liverpool|via:Halifax|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Huddersfield|via:Manchester|via:Halifax|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Halifax&waypoints=via:Huddersfield|via:Manchester|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Huddersfield|via:Halifax|via:Manchester|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Manchester&waypoints=via:Huddersfield|via:Halifax|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Halifax&waypoints=via:Huddersfield|via:Liverpool|via:Manchester|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Manchester&waypoints=via:Huddersfield|via:Liverpool|via:Halifax|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Halifax|via:Manchester|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Huddersfield&waypoints=via:Halifax|via:Manchester|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Halifax|via:Huddersfield|via:Manchester|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Manchester&waypoints=via:Halifax|via:Huddersfield|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Huddersfield&waypoints=via:Halifax|via:Liverpool|via:Manchester|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Manchester&waypoints=via:Halifax|via:Liverpool|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Halifax&waypoints=via:Liverpool|via:Manchester|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Huddersfield&waypoints=via:Liverpool|via:Manchester|via:Halifax|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Halifax&waypoints=via:Liverpool|via:Huddersfield|via:Manchester|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Manchester&waypoints=via:Liverpool|via:Huddersfield|via:Halifax|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Huddersfield&waypoints=via:Liverpool|via:Halifax|via:Manchester|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Manchester&waypoints=via:Liverpool|via:Halifax|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Bristol&waypoints=via:Manchester|via:Huddersfield|via:Liverpool|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Liverpool&waypoints=via:Manchester|via:Huddersfield|via:Bristol|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w
https://maps.googleapis.com/maps/api/directions/json?origin=Leeds&destination=Bristol&waypoints=via:Manchester|via:Liverpool|via:Huddersfield|&key=AIzaSyBqN-1pDwR8taEDQESDP5mnJjiJkIXmv-w

0 comments on commit f82d8ae

Please sign in to comment.