function waypointsFromSQL() { routeInfo[0] = { firstWaypoint: 0, root: "spm.n001", tier: 4, color: "TMlightsalmon", system: "spmn", label: "SPM N1" }; routeInfo[1] = { firstWaypoint: 3, root: "spm.n002", tier: 4, color: "TMlightsalmon", system: "spmn", label: "SPM N2" }; routeInfo[2] = { firstWaypoint: 7, root: "spm.n003", tier: 4, color: "TMlightsalmon", system: "spmn", label: "SPM N3" }; routeInfo[3] = { firstWaypoint: 11, root: "spm.n004", tier: 4, color: "TMlightsalmon", system: "spmn", label: "SPM N4" }; waypoints = [ new Waypoint("N2",46.782459,-56.16919), new Waypoint("AveRogBir",46.777669,-56.187837), new Waypoint("CapBro",46.766088,-56.232684), new Waypoint("TerPla",46.775377,-56.163139), new Waypoint("RouPoiBla",46.774407,-56.177387), new Waypoint("N1",46.782459,-56.16919), new Waypoint("LaFri",46.79436,-56.160436), new Waypoint("CapBla",47.105128,-56.398787), new Waypoint("RueSou",47.103492,-56.381107), new Waypoint("N4",47.100045,-56.377974), new Waypoint("End",47.093793,-56.367245), new Waypoint("AerMiq",47.097328,-56.383338), new Waypoint("N3",47.100045,-56.377974), new Waypoint("RueJacVig",47.101038,-56.376321) ]; traveler = ''; segments = [ 268425, 268426, 268427, 268428, 268429, 268430, 268431, 268432, 268433, 268434 ]; clinched = [ ]; mapClinched = true; mapStatus = mapStates.MAPVIEW; genEdges = true; }