function waypointsFromSQL() { routeInfo[0] = { firstWaypoint: 0, root: "kwt.r001", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R1" }; routeInfo[1] = { firstWaypoint: 11, root: "kwt.r002", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R2" }; routeInfo[2] = { firstWaypoint: 21, root: "kwt.r003", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R3" }; routeInfo[3] = { firstWaypoint: 30, root: "kwt.r004", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R4" }; routeInfo[4] = { firstWaypoint: 42, root: "kwt.r005", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R5" }; routeInfo[5] = { firstWaypoint: 60, root: "kwt.r006", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R6" }; routeInfo[6] = { firstWaypoint: 96, root: "kwt.r0065", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R6.5" }; routeInfo[7] = { firstWaypoint: 103, root: "kwt.r007", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R7" }; routeInfo[8] = { firstWaypoint: 114, root: "kwt.r008", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R8" }; routeInfo[9] = { firstWaypoint: 117, root: "kwt.r025", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R25" }; routeInfo[10] = { firstWaypoint: 141, root: "kwt.r030", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R30" }; routeInfo[11] = { firstWaypoint: 170, root: "kwt.r035", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R35" }; routeInfo[12] = { firstWaypoint: 175, root: "kwt.r040", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R40" }; routeInfo[13] = { firstWaypoint: 208, root: "kwt.r045", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R45" }; routeInfo[14] = { firstWaypoint: 213, root: "kwt.r050", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R50" }; routeInfo[15] = { firstWaypoint: 224, root: "kwt.r051", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R51" }; routeInfo[16] = { firstWaypoint: 234, root: "kwt.r055", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R55" }; routeInfo[17] = { firstWaypoint: 246, root: "kwt.r060", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R60" }; routeInfo[18] = { firstWaypoint: 259, root: "kwt.r070", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R70" }; routeInfo[19] = { firstWaypoint: 273, root: "kwt.r080", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R80" }; routeInfo[20] = { firstWaypoint: 297, root: "kwt.r085", tier: 4, color: "TMlightsalmon", system: "kwtr", label: "KWT R85" }; waypoints = [ new Waypoint("R650/R750",29.382544,47.981565), new Waypoint("R100/R450",29.38551,47.99408), new Waypoint("R100/R800",29.380988,47.997143), new Waypoint("R30",29.373906,47.99636), new Waypoint("+R35",29.364925,47.99224), new Waypoint("R40",29.361138,47.986822), new Waypoint("R50",29.358978,47.974291), new Waypoint("R80",29.35981,47.96339), new Waypoint("R85",29.360661,47.961073), new Waypoint("R150",29.367286,47.964281), new Waypoint("R250",29.372195,47.969549), new Waypoint("R25_E",29.36889,48.012829), new Waypoint("R30",29.365692,48.010876), new Waypoint("R35",29.356916,48.003291), new Waypoint("R40",29.350366,47.994161), new Waypoint("R45",29.345652,47.983003), new Waypoint("R50",29.343646,47.972521), new Waypoint("R102",29.343969,47.967639), new Waypoint("R80",29.348963,47.956223), new Waypoint("R85",29.354896,47.95087), new Waypoint("R25_W",29.357122,47.949464), new Waypoint("R25",29.359904,48.024802), new Waypoint("R30",29.357772,48.020897), new Waypoint("R35",29.349767,48.01343), new Waypoint("R40",29.340457,48.000593), new Waypoint("R45",29.334803,47.987509), new Waypoint("R50",29.33196,47.971287), new Waypoint("R55",29.333344,47.952147), new Waypoint("R60",29.323579,47.936139), new Waypoint("R601",29.318228,47.925067), new Waypoint("R101/R114",29.332923,48.054156), new Waypoint("R128",29.331857,48.046153), new Waypoint("R30",29.33094,48.039672), new Waypoint("R102/R362",29.328097,48.029115), new Waypoint("R40",29.322868,48.012228), new Waypoint("R45",29.320558,47.993388), new Waypoint("R50",29.318574,47.974656), new Waypoint("R55",29.317022,47.960923), new Waypoint("R60",29.314907,47.941976), new Waypoint("R601",29.313018,47.926247), new Waypoint("R602",29.307199,47.904811), new Waypoint("R80",29.310501,47.885628), new Waypoint("R25",29.323228,48.088553), new Waypoint("R104/R105",29.325889,48.07776), new Waypoint("AbuHonSt",29.323383,48.065937), new Waypoint("R30",29.31429,48.052933), new Waypoint("R40",29.307227,48.022099), new Waypoint("R45",29.305318,47.999697), new Waypoint("R50",29.303971,47.979097), new Waypoint("R55",29.302886,47.963562), new Waypoint("R60",29.301576,47.945366), new Waypoint("R601",29.300603,47.927427), new Waypoint("R602",29.298731,47.905626), new Waypoint("R603",29.296561,47.878718), new Waypoint("R604",29.29555,47.864814), new Waypoint("AlSulRd",29.295237,47.852755), new Waypoint("KhaAhmRd",29.2954,47.832005), new Waypoint("100St",29.295691,47.800956), new Waypoint("ToR6",29.297403,47.78615), new Waypoint("R80",29.311661,47.785163), new Waypoint("R25/R30",29.268871,48.084862), new Waypoint("R91",29.264996,48.067074), new Waypoint("R302",29.264434,48.057053), new Waypoint("R40",29.264687,48.04244), new Waypoint("430St",29.26435,48.022249), new Waypoint("JabAMASSt",29.264575,48.012722), new Waypoint("R50",29.265735,47.987981), new Waypoint("R55",29.265698,47.970514), new Waypoint("R60",29.266147,47.952104), new Waypoint("R601",29.26712,47.925324), new Waypoint("R602",29.267457,47.907987), new Waypoint("R604",29.266072,47.864256), new Waypoint("R7_W",29.265735,47.838507), new Waypoint("ToR5",29.283554,47.784905), new Waypoint("SulAgrArea",29.288944,47.767053), new Waypoint("AlMarRd",29.295868,47.734866), new Waypoint("29St",29.29759,47.722721), new Waypoint("18St",29.299573,47.703581), new Waypoint("AlBaqSt",29.303428,47.676373), new Waypoint("AlAkbSt",29.312185,47.654443), new Waypoint("R70",29.338638,47.630367), new Waypoint("MarAlMitSt",29.365009,47.643585), new Waypoint("R80",29.373948,47.661524), new Waypoint("X717440",29.40833,47.697959), new Waypoint("X150886",29.437159,47.738085), new Waypoint("X658059",29.474555,47.768383), new Waypoint("X384864",29.524793,47.817693), new Waypoint("+X621038",29.549231,47.872667), new Waypoint("X875785",29.573765,47.900519), new Waypoint("RawRd",29.608443,47.914553), new Waypoint("X641856",29.636991,47.935967), new Waypoint("+X550940",29.649235,47.990084), new Waypoint("R801_W",29.642717,48.006649), new Waypoint("JASCau",29.615382,48.058491), new Waypoint("+X719283",29.585801,48.109303), new Waypoint("R801_E",29.597342,48.142326), new Waypoint("R7",29.226362,47.885156), new Waypoint("3St",29.227785,47.90451), new Waypoint("R602",29.244899,47.931547), new Waypoint("R60_N",29.257452,47.953756), new Waypoint("R60_S",29.257452,47.962124), new Waypoint("R55",29.259174,47.97178), new Waypoint("R50",29.260101,47.988582), new Waypoint("R30",29.183995,48.112006), new Waypoint("R303",29.180098,48.090978), new Waypoint("R40",29.176295,48.06879), new Waypoint("20Rd",29.173016,48.0545), new Waypoint("+X608251",29.182206,48.020811), new Waypoint("R51",29.179611,47.991285), new Waypoint("+X208972",29.189465,47.885199), new Waypoint("R6.5",29.226362,47.885156), new Waypoint("8St",29.247146,47.873011), new Waypoint("R604",29.254709,47.860308), new Waypoint("R6",29.265735,47.838507), new Waypoint("R305",29.03742,48.15623), new Waypoint("R30",29.036876,48.118486), new Waypoint("R40",29.033284,48.092222), new Waypoint("R85",29.35174,47.945344), new Waypoint("R2_W",29.357122,47.949464), new Waypoint("R100_S",29.364888,47.958326), new Waypoint("R150",29.36874,47.961996), new Waypoint("R550",29.37966,47.973518), new Waypoint("R650",29.385494,47.980042), new Waypoint("R700",29.388616,47.985406), new Waypoint("R100_N",29.390878,47.993796), new Waypoint("R800",29.382334,48.00283), new Waypoint("R68",29.379155,48.00328), new Waypoint("R2_E",29.36889,48.012829), new Waypoint("R3",29.359904,48.024802), new Waypoint("R128",29.341547,48.049328), new Waypoint("R104_N",29.34035,48.062224), new Waypoint("R113",29.342033,48.06937), new Waypoint("R108_N",29.345886,48.081064), new Waypoint("R101",29.348374,48.092072), new Waypoint("R104_S",29.346223,48.095291), new Waypoint("R108_S",29.33341,48.093081), new Waypoint("R5",29.323228,48.088553), new Waypoint("R302",29.308265,48.086085), new Waypoint("R120",29.297244,48.085098), new Waypoint("R140",29.286708,48.086472), new Waypoint("R6/R30",29.268871,48.084862), new Waypoint("R1",29.373906,47.99636), new Waypoint("R2",29.365692,48.010876), new Waypoint("R3",29.357772,48.020897), new Waypoint("R35",29.343595,48.032656), new Waypoint("R4",29.33094,48.039672), new Waypoint("R5",29.31429,48.052933), new Waypoint("R302",29.304111,48.061044), new Waypoint("R120/R206",29.293501,48.069434), new Waypoint("R140",29.282946,48.076537), new Waypoint("R6/R25",29.268871,48.084862), new Waypoint("R207",29.248831,48.091578), new Waypoint("R208",29.212663,48.103209), new Waypoint("R7",29.183995,48.112006), new Waypoint("R104",29.178965,48.113508), new Waypoint("R102",29.171602,48.112693), new Waypoint("R210",29.160622,48.110461), new Waypoint("R211",29.136578,48.114302), new Waypoint("R2115",29.119268,48.117027), new Waypoint("R101",29.10622,48.118057), new Waypoint("R212",29.090771,48.11574), new Waypoint("R213",29.072131,48.111534), new Waypoint("R304",29.061665,48.108959), new Waypoint("R305",29.045834,48.113937), new Waypoint("R8",29.036876,48.118486), new Waypoint("Blo1",29.010819,48.132756), new Waypoint("R306",28.996148,48.14312), new Waypoint("105St",28.965815,48.164749), new Waypoint("AriCamp",28.939669,48.185112), new Waypoint("R40",28.918626,48.206034), new Waypoint("R1",29.364925,47.992241), new Waypoint("R2",29.356916,48.003291), new Waypoint("R3",29.349767,48.01343), new Waypoint("R30",29.343595,48.032656), new Waypoint("R127",29.341799,48.039436), new Waypoint("R1",29.361138,47.986822), new Waypoint("R2",29.350366,47.994161), new Waypoint("R3",29.340457,48.000593), new Waypoint("R4",29.322868,48.012228), new Waypoint("R5",29.307227,48.022099), new Waypoint("R206/R404",29.279717,48.035016), new Waypoint("R6",29.264687,48.04244), new Waypoint("R207",29.239001,48.050165), new Waypoint("R208",29.206192,48.059864), new Waypoint("R7",29.176295,48.06879), new Waypoint("R104",29.169344,48.072138), new Waypoint("R210",29.154878,48.078983), new Waypoint("R211",29.130927,48.091418), new Waypoint("R212",29.093452,48.097801), new Waypoint("R304",29.063297,48.098145), new Waypoint("R305",29.050242,48.09557), new Waypoint("R8",29.033284,48.092222), new Waypoint("Blo13",28.9914,48.102093), new Waypoint("R306",28.959413,48.122349), new Waypoint("101Rd",28.938683,48.153076), new Waypoint("AriCamp",28.930796,48.181486), new Waypoint("R30",28.918626,48.206034), new Waypoint("X973026",28.89183,48.22335), new Waypoint("X849922",28.870956,48.234186), new Waypoint("250St",28.851139,48.244357), new Waypoint("X809141",28.79995,48.270493), new Waypoint("R270",28.746421,48.282938), new Waypoint("R309",28.735904,48.285255), new Waypoint("R278",28.677411,48.297958), new Waypoint("R285",28.633528,48.318901), new Waypoint("WafFarmRd",28.608336,48.332462), new Waypoint("+X667442",28.573819,48.343706), new Waypoint("KWT/SAU",28.533965,48.398091), new Waypoint("R2",29.345652,47.983003), new Waypoint("R3",29.334803,47.987509), new Waypoint("R4",29.320558,47.993388), new Waypoint("R5",29.305318,47.999697), new Waypoint("R404",29.285332,48.002186), new Waypoint("R1",29.358978,47.974291), new Waypoint("R2",29.343646,47.972521), new Waypoint("R3",29.33196,47.971287), new Waypoint("R4",29.318574,47.974656), new Waypoint("R5",29.303971,47.979097), new Waypoint("R404",29.28391,47.985449), new Waypoint("R6",29.265735,47.987981), new Waypoint("R6.5",29.260101,47.988582), new Waypoint("R51",29.252201,47.988539), new Waypoint("R55",29.252163,47.973132), new Waypoint("R60",29.243158,47.969398), new Waypoint("R50",29.252201,47.988539), new Waypoint("101St_N",29.233253,47.992744), new Waypoint("101St_S",29.223104,47.997551), new Waypoint("R208",29.19692,48.007121), new Waypoint("R7",29.179611,47.991285), new Waypoint("+X662793",29.163864,47.990191), new Waypoint("R211",29.104224,48.051882), new Waypoint("6Ave",29.089674,48.051538), new Waypoint("R304",29.082764,48.051195), new Waypoint("R604",28.980176,47.961588), new Waypoint("R85",29.348505,47.939916), new Waypoint("R80",29.341257,47.945838), new Waypoint("R3",29.333344,47.952147), new Waypoint("R4",29.317022,47.960923), new Waypoint("R5",29.302886,47.963562), new Waypoint("R204/R502",29.292528,47.965579), new Waypoint("R200/R210",29.283601,47.967188), new Waypoint("R250",29.272015,47.969356), new Waypoint("R6",29.265698,47.970514), new Waypoint("R6.5",29.259174,47.97178), new Waypoint("R50",29.252163,47.973132), new Waypoint("KuwIntAir",29.241581,47.975106), new Waypoint("FreeTraZone",29.351553,47.913566), new Waypoint("R85",29.339854,47.925324), new Waypoint("R80",29.331717,47.930689), new Waypoint("R3",29.323579,47.936139), new Waypoint("R4",29.314907,47.941976), new Waypoint("R5",29.301576,47.945366), new Waypoint("R502",29.289234,47.947769), new Waypoint("R103",29.279783,47.949593), new Waypoint("R200",29.277294,47.950044), new Waypoint("R6",29.266147,47.952104), new Waypoint("R6.5_W",29.257452,47.953756), new Waypoint("R6.5_E",29.257452,47.962124), new Waypoint("R50",29.243158,47.969398), new Waypoint("R6",29.338638,47.630367), new Waypoint("X366244",29.324664,47.602644), new Waypoint("+X342805",29.312896,47.588568), new Waypoint("AASAirBase",29.322924,47.549858), new Waypoint("+X189499",29.314243,47.5072), new Waypoint("+X971790",29.277266,47.436905), new Waypoint("+X533265",29.237803,47.393904), new Waypoint("AlDubRd",29.181616,47.250481), new Waypoint("+X432316",29.131396,47.186108), new Waypoint("+X873548",29.114151,47.145767), new Waypoint("+X356232",29.112876,47.032385), new Waypoint("+X235667",29.088727,46.878662), new Waypoint("+X507266",29.106201,46.718931), new Waypoint("KWT/SAU",29.089983,46.656919), new Waypoint("R1",29.35981,47.96339), new Waypoint("R2",29.348963,47.956223), new Waypoint("R55",29.341257,47.945838), new Waypoint("R60",29.331717,47.930689), new Waypoint("MBAQSt",29.327077,47.920432), new Waypoint("R4",29.310501,47.885628), new Waypoint("SulRd",29.30964,47.865629), new Waypoint("KalAlAhmSt",29.309191,47.832198), new Waypoint("R5",29.311661,47.785163), new Waypoint("R605",29.32371,47.750916), new Waypoint("BisBinAwaSt",29.340696,47.71328), new Waypoint("R607",29.352666,47.686973), new Waypoint("R6",29.373948,47.661524), new Waypoint("+X130445",29.39945,47.639809), new Waypoint("+X603406",29.513646,47.654915), new Waypoint("ASRIronHor",29.575547,47.654657), new Waypoint("+X598704",29.602566,47.666588), new Waypoint("+X143275",29.70371,47.669849), new Waypoint("UmmRd",29.771008,47.671738), new Waypoint("RauRd",29.867145,47.68178), new Waypoint("NRAMSt",29.918489,47.672424), new Waypoint("AbdAlfSt",29.979063,47.655644), new Waypoint("+X285329",30.022584,47.652683), new Waypoint("KWT/IRQ",30.092675,47.710018), new Waypoint("R1",29.360661,47.961073), new Waypoint("R2",29.354896,47.95087), new Waypoint("R25",29.35174,47.945344), new Waypoint("R55",29.348505,47.939916), new Waypoint("R60",29.339854,47.925324), new Waypoint("AlJahSt",29.331913,47.908437), new Waypoint("R80",29.326226,47.896121), new Waypoint("EasGraRd",29.317882,47.881958), new Waypoint("100St",29.317789,47.862689) ]; traveler = 'sneezy'; segments = [ 1151759, 1151760, 1151761, 1151762, 1151763, 1151764, 1151765, 1151766, 1151767, 1151768, 1151769, 1151770, 1151771, 1151772, 1151773, 1151774, 1151775, 1151776, 1151777, 1151778, 1151779, 1151780, 1151781, 1151782, 1151783, 1151784, 1151785, 1151786, 1151787, 1151788, 1151789, 1151790, 1151791, 1151792, 1151793, 1151794, 1151795, 1151796, 1151797, 1151798, 1151799, 1151800, 1151801, 1151802, 1151803, 1151804, 1151805, 1151806, 1151807, 1151808, 1151809, 1151810, 1151811, 1151812, 1151813, 1151814, 1151815, 1151816, 1151817, 1151818, 1151819, 1151820, 1151821, 1151822, 1151823, 1151824, 1151825, 1151826, 1151827, 1151828, 1151829, 1151830, 1151831, 1151832, 1151833, 1151834, 1151835, 1151836, 1151837, 1151838, 1151839, 1151840, 1151841, 1151842, 1151843, 1151844, 1151845, 1151846, 1151847, 1151848, 1151849, 1151850, 1151851, 1151852, 1151853, 1151854, 1151855, 1151856, 1151857, 1151858, 1151859, 1151860, 1151861, 1151862, 1151863, 1151864, 1151865, 1151866, 1151867, 1151868, 1151869, 1151870, 1151871, 1151872, 1151873, 1151874, 1151875, 1151876, 1151877, 1151878, 1151879, 1151880, 1151881, 1151882, 1151883, 1151884, 1151885, 1151886, 1151887, 1151888, 1151889, 1151890, 1151891, 1151892, 1151893, 1151894, 1151895, 1151896, 1151897, 1151898, 1151899, 1151900, 1151901, 1151902, 1151903, 1151904, 1151905, 1151906, 1151907, 1151908, 1151909, 1151910, 1151911, 1151912, 1151913, 1151914, 1151915, 1151916, 1151917, 1151918, 1151919, 1151920, 1151921, 1151922, 1151923, 1151924, 1151925, 1151926, 1151927, 1151928, 1151929, 1151930, 1151931, 1151932, 1151933, 1151934, 1151935, 1151936, 1151937, 1151938, 1151939, 1151940, 1151941, 1151942, 1151943, 1151944, 1151945, 1151946, 1151947, 1151948, 1151949, 1151950, 1151951, 1151952, 1151953, 1151954, 1151955, 1151956, 1151957, 1151958, 1151959, 1151960, 1151961, 1151962, 1151963, 1151964, 1151965, 1151966, 1151967, 1151968, 1151969, 1151970, 1151971, 1151972, 1151973, 1151974, 1151975, 1151976, 1151977, 1151978, 1151979, 1151980, 1151981, 1151982, 1151983, 1151984, 1151985, 1151986, 1151987, 1151988, 1151989, 1151990, 1151991, 1151992, 1151993, 1151994, 1151995, 1151996, 1151997, 1151998, 1151999, 1152000, 1152001, 1152002, 1152003, 1152004, 1152005, 1152006, 1152007, 1152008, 1152009, 1152010, 1152011, 1152012, 1152013, 1152014, 1152015, 1152016, 1152017, 1152018, 1152019, 1152020, 1152021, 1152022, 1152023, 1152024, 1152025, 1152026, 1152027, 1152028, 1152029, 1152030, 1152031, 1152032, 1152033, 1152034, 1152035, 1152036, 1152037, 1152038, 1152039, 1152040, 1152041, 1152042, 1152043 ]; clinched = [ ]; mapClinched = true; mapStatus = mapStates.MAPVIEW; genEdges = true; }