function waypointsFromSQL() { routeInfo[0] = { firstWaypoint: 0, root: "pak.m001", tier: 1, color: "TMblue", system: "pakm", label: "PAK M1" }; routeInfo[1] = { firstWaypoint: 31, root: "pak.m002", tier: 1, color: "TMblue", system: "pakm", label: "PAK M2" }; routeInfo[2] = { firstWaypoint: 78, root: "pak.m003", tier: 1, color: "TMblue", system: "pakm", label: "PAK M3" }; routeInfo[3] = { firstWaypoint: 98, root: "pak.m004", tier: 1, color: "TMblue", system: "pakm", label: "PAK M4" }; routeInfo[4] = { firstWaypoint: 132, root: "pak.m005", tier: 1, color: "TMblue", system: "pakm", label: "PAK M5" }; routeInfo[5] = { firstWaypoint: 173, root: "pak.m009", tier: 1, color: "TMblue", system: "pakm", label: "PAK M9" }; routeInfo[6] = { firstWaypoint: 195, root: "pak.m010", tier: 1, color: "TMblue", system: "pakm", label: "PAK M10" }; routeInfo[7] = { firstWaypoint: 210, root: "pak.m011", tier: 1, color: "TMblue", system: "pakm", label: "PAK M11" }; routeInfo[8] = { firstWaypoint: 223, root: "pak.m014", tier: 1, color: "TMblue", system: "pakm", label: "PAK M14" }; routeInfo[9] = { firstWaypoint: 262, root: "pak.m015", tier: 1, color: "TMblue", system: "pakm", label: "PAK M15" }; routeInfo[10] = { firstWaypoint: 305, root: "pak.m016", tier: 1, color: "TMblue", system: "pakm", label: "PAK M16" }; waypoints = [ new Waypoint("M2",33.590099,72.870233), new Waypoint("N80",33.611474,72.857809), new Waypoint("M14",33.63815,72.837896), new Waypoint("SanPas",33.652119,72.827339), new Waypoint("+X118789",33.67064,72.812233), new Waypoint("+X962818",33.681068,72.756443), new Waypoint("FatJangRd",33.743755,72.704687), new Waypoint("N5",33.822334,72.629092), new Waypoint("M15",33.847688,72.620552), new Waypoint("+X807623",33.857106,72.591949), new Waypoint("GhaRd",33.888943,72.547874), new Waypoint("+X500980",33.912594,72.535686), new Waypoint("TarRd",33.928655,72.509422), new Waypoint("+X137664",33.939657,72.468739), new Waypoint("+X223696",34.008985,72.411919), new Waypoint("S6",34.042623,72.409), new Waypoint("+X336611",34.068445,72.37484), new Waypoint("M16",34.067023,72.212963), new Waypoint("ToruRd",34.065221,72.112541), new Waypoint("+X932111",34.065743,72.101383), new Waypoint("+X178625",34.099439,72.05555), new Waypoint("N45",34.107727,72.016604), new Waypoint("+X363956",34.112515,71.851273), new Waypoint("+X777625",34.126158,71.806984), new Waypoint("S9",34.119443,71.790161), new Waypoint("+X868234",34.110383,71.744499), new Waypoint("+X367711",34.089701,71.739435), new Waypoint("+X410942",34.082948,71.719265), new Waypoint("+X331806",34.045406,71.692486), new Waypoint("NorByp",34.026308,71.644635), new Waypoint("PesRingRd",34.023818,71.620517), new Waypoint("M1",33.590099,72.870233), new Waypoint("+X847481",33.55005,72.903643), new Waypoint("AirWay",33.534071,72.899652), new Waypoint("+X956696",33.47763,72.837982), new Waypoint("+X663770",33.348741,72.811203), new Waypoint("ChaRd",33.308599,72.778952), new Waypoint("+X688656",33.268403,72.761335), new Waypoint("+X763028",33.203289,72.666492), new Waypoint("NeeDul",33.167292,72.653189), new Waypoint("+X303467",33.142797,72.623835), new Waypoint("+X796122",33.002041,72.647438), new Waypoint("N130",32.937968,72.684072), new Waypoint("+X827469",32.907767,72.651472), new Waypoint("+X690212",32.802453,72.659369), new Waypoint("+X586689",32.792434,72.673359), new Waypoint("+X552771",32.793516,72.70546), new Waypoint("KalKah",32.77397,72.717996), new Waypoint("+X722799",32.765047,72.734814), new Waypoint("+X813592",32.688293,72.761078), new Waypoint("+X950199",32.652619,72.738606), new Waypoint("+X479898",32.630737,72.776383), new Waypoint("LilRd",32.5764,72.801418), new Waypoint("+X754497",32.496153,72.839012), new Waypoint("R6",32.460982,72.878044), new Waypoint("+X755091",32.420689,72.949219), new Waypoint("SarGujRd",32.316623,73.020737), new Waypoint("+X639802",32.285246,73.031359), new Waypoint("KMBhaRd",32.188107,73.037217), new Waypoint("+X270666",32.13899,73.061399), new Waypoint("+X128015",32.044387,73.079596), new Waypoint("R7",31.97317,73.110837), new Waypoint("+X988306",31.946554,73.144569), new Waypoint("E3",31.929984,73.283872), new Waypoint("M4",31.923774,73.330822), new Waypoint("KotSar",31.916124,73.501303), new Waypoint("+X385778",31.915887,73.544884), new Waypoint("KDHafRd",31.871964,73.666613), new Waypoint("R5",31.764224,73.953266), new Waypoint("GujRd",31.747037,74.008026), new Waypoint("+X507758",31.726561,74.119606), new Waypoint("LahByp",31.67832,74.197787), new Waypoint("N60",31.634365,74.206885), new Waypoint("JarRd",31.594913,74.217625), new Waypoint("M3",31.574477,74.229212), new Waypoint("L20",31.538488,74.261935), new Waypoint("+X170320",31.487528,74.230156), new Waypoint("N5",31.466081,74.229239), new Waypoint("1",31.574477,74.229212), new Waypoint("+X197382",31.536737,74.173937), new Waypoint("2",31.514789,74.095917), new Waypoint("+X795505",31.47428,74.005795), new Waypoint("+X248112",31.435181,73.897991), new Waypoint("3",31.404858,73.765984), new Waypoint("+X396948",31.355616,73.644962), new Waypoint("4",31.240655,73.460083), new Waypoint("+X529852",31.182333,73.357086), new Waypoint("+X899232",31.096821,73.112726), new Waypoint("5",31.037969,73.028612), new Waypoint("+X892660",31.012373,72.985182), new Waypoint("+X192013",30.988757,72.871628), new Waypoint("+X110978",30.890477,72.633791), new Waypoint("6",30.84001,72.557659), new Waypoint("7",30.789369,72.424021), new Waypoint("+X506328",30.744159,72.359133), new Waypoint("+X394537",30.684241,72.238283), new Waypoint("+X349295",30.676121,72.176399), new Waypoint("8",30.654674,72.132454), new Waypoint("1",31.923774,73.330822), new Waypoint("+X973321",31.843441,73.293056), new Waypoint("2",31.76821,73.265977), new Waypoint("3",31.665728,73.218298), new Waypoint("4",31.570565,73.118134), new Waypoint("5",31.517386,73.066206), new Waypoint("6",31.458393,72.963724), new Waypoint("+X213599",31.409326,72.908535), new Waypoint("7",31.334541,72.775004), new Waypoint("+X358804",31.222564,72.681599), new Waypoint("8",31.169996,72.621346), new Waypoint("+X513044",31.117104,72.52882), new Waypoint("9",31.045213,72.443161), new Waypoint("10",30.96473,72.338104), new Waypoint("+X653962",30.894492,72.238712), new Waypoint("+X682965",30.87615,72.187901), new Waypoint("11",30.819484,72.150822), new Waypoint("12",30.654674,72.132454), new Waypoint("13",30.561005,72.08353), new Waypoint("+X450789",30.491284,72.034435), new Waypoint("+X577120",30.468428,71.99358), new Waypoint("14",30.440904,71.973324), new Waypoint("+X989958",30.403453,71.948433), new Waypoint("15",30.360804,71.890755), new Waypoint("16",30.325619,71.852131), new Waypoint("+X769053",30.299389,71.843204), new Waypoint("+X320360",30.279972,71.854191), new Waypoint("+X250325",30.248984,71.821918), new Waypoint("+X661509",30.213907,71.706476), new Waypoint("+X860840",30.169469,71.603565), new Waypoint("18",30.13674,71.569319), new Waypoint("+X378084",30.11187,71.540565), new Waypoint("19",30.094569,71.493874), new Waypoint("20",30.079418,71.401949), new Waypoint("1",30.079418,71.401949), new Waypoint("+X661170",30.06772,71.378088), new Waypoint("+X990154",30.048071,71.371822), new Waypoint("+X899192",30.006902,71.38916), new Waypoint("+X891775",29.975978,71.381779), new Waypoint("+X292202",29.891481,71.401176), new Waypoint("2",29.823742,71.370106), new Waypoint("+X529843",29.617267,71.332169), new Waypoint("3",29.499005,71.248569), new Waypoint("4",29.3821,71.208401), new Waypoint("+X868664",29.361007,71.195011), new Waypoint("5",29.246491,71.040688), new Waypoint("+X522919",29.177719,70.984898), new Waypoint("6",29.11595,70.858555), new Waypoint("+X894379",29.036811,70.765171), new Waypoint("+X413693",29.009717,70.711269), new Waypoint("+X914028",28.889547,70.591106), new Waypoint("7",28.847155,70.505619), new Waypoint("+X833503",28.771948,70.412922), new Waypoint("+X199758",28.738388,70.342026), new Waypoint("+X950958",28.68991,70.304432), new Waypoint("8",28.635383,70.237999), new Waypoint("+X867976",28.590476,70.211906), new Waypoint("+X952419",28.566959,70.1544), new Waypoint("+X256355",28.503921,70.079041), new Waypoint("+X937031",28.439186,69.960938), new Waypoint("+X856706",28.355075,69.847298), new Waypoint("9",28.329183,69.788804), new Waypoint("+X530956",28.310653,69.752369), new Waypoint("+X878747",28.202541,69.672718), new Waypoint("+X512902",28.121498,69.50449), new Waypoint("+X528621",28.072359,69.434967), new Waypoint("+X449222",28.054636,69.339867), new Waypoint("10",28.002198,69.2588), new Waypoint("+X511317",27.923441,69.185028), new Waypoint("+X832563",27.87937,69.099712), new Waypoint("11",27.860439,69.083319), new Waypoint("+X927912",27.822719,69.05817), new Waypoint("+X333484",27.766305,69.05345), new Waypoint("+X945915",27.676117,68.972425), new Waypoint("12",27.661161,68.937836), new Waypoint("LyaExwy",24.945694,67.087026), new Waypoint("RasShaRd",24.976605,67.121444), new Waypoint("AhsRd",24.991864,67.136164), new Waypoint("M10",24.989569,67.180989), new Waypoint("MalLink",24.987531,67.194926), new Waypoint("MalCanRd",24.984983,67.21251), new Waypoint("MemGoth",24.975944,67.268), new Waypoint("JinAve",24.992427,67.317674), new Waypoint("KarByp",25.006206,67.355547), new Waypoint("FiePark",25.025554,67.387481), new Waypoint("DHACity",25.036004,67.42883), new Waypoint("LucCem",25.049525,67.467856), new Waypoint("+X636979",25.080857,67.521715), new Waypoint("+X311517",25.081246,67.564459), new Waypoint("DadaBhoy",25.157822,67.667885), new Waypoint("IndVal",25.165754,67.724337), new Waypoint("+X389067",25.159425,67.757492), new Waypoint("Noo",25.17734,67.799056), new Waypoint("+X643958",25.199893,67.878685), new Waypoint("ThaBKRd",25.248772,67.95413), new Waypoint("Bho",25.352297,68.18377), new Waypoint("N55",25.399553,68.27282), new Waypoint("M9",24.989569,67.180989), new Waypoint("+X128805",25.010251,67.182341), new Waypoint("NBSupHwy",25.05608,67.139345), new Waypoint("LyaBasRd",25.077582,67.10174), new Waypoint("KSARd",25.082013,67.059968), new Waypoint("HubDamRd",25.074424,67.01364), new Waypoint("ShaQad",25.013906,66.972849), new Waypoint("+X793719",24.979017,66.926737), new Waypoint("ToN25",24.9775,66.910321), new Waypoint("+X336154",24.946535,66.931533), new Waypoint("+X170690",24.921282,66.947025), new Waypoint("+X489322",24.913889,66.952057), new Waypoint("+X233747",24.90556,66.961863), new Waypoint("+X997648",24.889239,66.982377), new Waypoint("MauRd",24.875691,66.967571), new Waypoint("L20",31.609778,74.402407), new Waypoint("+X816911",31.632264,74.372377), new Waypoint("+X243325",31.650313,74.338474), new Waypoint("KKNMRd",31.676758,74.32605), new Waypoint("1",31.704328,74.321566), new Waypoint("+X290359",31.748533,74.311008), new Waypoint("2",31.861303,74.334869), new Waypoint("3",32.046624,74.36933), new Waypoint("4",32.196569,74.381132), new Waypoint("5",32.318382,74.400573), new Waypoint("6",32.359518,74.401002), new Waypoint("+X535248",32.386666,74.409885), new Waypoint("7",32.478053,74.39199), new Waypoint("M1",33.63815,72.837896), new Waypoint("+X529921",33.586363,72.81528), new Waypoint("TalFJRd",33.531271,72.642803), new Waypoint("+X306753",33.491768,72.518177), new Waypoint("+X652263",33.371216,72.345657), new Waypoint("JandPGRd",33.294916,72.198458), new Waypoint("+X678625",33.278413,72.171764), new Waypoint("+X687119",33.260975,72.169361), new Waypoint("+X576416",33.254444,72.127304), new Waypoint("+X476138",33.203827,72.007484), new Waypoint("JTTRd",33.096845,71.865692), new Waypoint("+X532211",33.021654,71.793337), new Waypoint("+X657814",32.932515,71.749907), new Waypoint("+X385521",32.910973,71.691113), new Waypoint("+X754564",32.918467,71.637812), new Waypoint("+X929712",32.909748,71.622705), new Waypoint("+X131866",32.910541,71.588202), new Waypoint("KBBanuRd",32.886182,71.55241), new Waypoint("+X644726",32.877749,71.544685), new Waypoint("+X527508",32.833912,71.568117), new Waypoint("KBKRd",32.794273,71.568375), new Waypoint("+X975331",32.774899,71.560392), new Waypoint("+X204099",32.764578,71.520309), new Waypoint("+X544226",32.767104,71.384611), new Waypoint("+X766829",32.758299,71.314573), new Waypoint("+X366526",32.750539,71.247196), new Waypoint("+X142476",32.682514,71.232948), new Waypoint("EkMiaRd",32.661958,71.243248), new Waypoint("S11",32.57499,71.271315), new Waypoint("+X609678",32.558352,71.272173), new Waypoint("+X149620",32.470559,71.225395), new Waypoint("+X637474",32.445935,71.192951), new Waypoint("+X352232",32.394276,71.154585), new Waypoint("+X432689",32.390073,71.116219), new Waypoint("+X975516",32.354552,71.086006), new Waypoint("+X754680",32.315608,71.013651), new Waypoint("AbdKhel",32.300537,70.960865), new Waypoint("+X796024",32.262931,70.862589), new Waypoint("N55",32.13343,70.780277), new Waypoint("M1",33.847688,72.620552), new Waypoint("+X337956",33.897314,72.695847), new Waypoint("+X748085",33.913698,72.748632), new Waypoint("N35_HarW",33.91295,72.788887), new Waypoint("S1",33.920536,72.855631), new Waypoint("N125",33.933426,72.906314), new Waypoint("+X305803",33.966302,72.972726), new Waypoint("+X332996",33.972371,73.022625), new Waypoint("N35_HarE",33.993722,73.038483), new Waypoint("+X919514",34.013076,73.075819), new Waypoint("+X603369",34.050704,73.111074), new Waypoint("+X135709",34.071431,73.152037), new Waypoint("N35_Hav",34.095005,73.163152), new Waypoint("+X277973",34.142072,73.199244), new Waypoint("+X588276",34.226458,73.175726), new Waypoint("N35_MC",34.258369,73.216066), new Waypoint("+X982981",34.272716,73.221216), new Waypoint("+X918873",34.304698,73.194695), new Waypoint("+X895540",34.318451,73.160191), new Waypoint("S12",34.3344,73.15311), new Waypoint("+X688953",34.358972,73.166317), new Waypoint("OghiRd",34.373877,73.197699), new Waypoint("Sin",34.376339,73.225808), new Waypoint("+X644821",34.397172,73.254958), new Waypoint("+X281378",34.434576,73.270247), new Waypoint("N35_Bed",34.443113,73.261656), new Waypoint("+X345610",34.486321,73.259883), new Waypoint("+X905090",34.491083,73.23805), new Waypoint("+X621425",34.536921,73.176112), new Waypoint("+X379409",34.539736,73.145084), new Waypoint("+X313942",34.559242,73.136029), new Waypoint("+X469033",34.55896,73.120408), new Waypoint("+X751906",34.568837,73.113499), new Waypoint("+X444590",34.588978,73.059018), new Waypoint("Dha",34.58378,73.059404), new Waypoint("+X118646",34.578502,73.062301), new Waypoint("+X853353",34.582583,73.049769), new Waypoint("+X123723",34.603321,73.051207), new Waypoint("+X578785",34.616743,73.016446), new Waypoint("KuzaBan",34.629933,73.008528), new Waypoint("+X175420",34.647027,72.989066), new Waypoint("+X530137",34.656748,72.993271), new Waypoint("N35_SB",34.677853,72.991694), new Waypoint("N45/N95",34.641364,72.029715), new Waypoint("+X951275",34.597006,72.035122), new Waypoint("+X536793",34.541596,72.0189), new Waypoint("+X757444",34.52399,72.034435), new Waypoint("+X623269",34.522151,72.06542), new Waypoint("PalBunRd",34.508926,72.071171), new Waypoint("+X917564",34.477234,72.076149), new Waypoint("KatRd",34.424293,72.122841), new Waypoint("+X911060",34.405812,72.129278), new Waypoint("+X735703",34.336668,72.07675), new Waypoint("+X728585",34.305549,72.092371), new Waypoint("+X777595",34.283212,72.127905), new Waypoint("BakRd",34.263778,72.130909), new Waypoint("+X488228",34.25374,72.148075), new Waypoint("+X509536",34.252215,72.193136), new Waypoint("S1",34.229864,72.211504), new Waypoint("MGKKRd",34.152762,72.206869), new Waypoint("+X812301",34.083837,72.204723), new Waypoint("M1",34.067023,72.212963) ]; traveler = ''; segments = [ 415928, 415929, 415930, 415931, 415932, 415933, 415934, 415935, 415936, 415937, 415938, 415939, 415940, 415941, 415942, 415943, 415944, 415945, 415946, 415947, 415948, 415949, 415950, 415951, 415952, 415953, 415954, 415955, 415956, 415957, 415958, 415959, 415960, 415961, 415962, 415963, 415964, 415965, 415966, 415967, 415968, 415969, 415970, 415971, 415972, 415973, 415974, 415975, 415976, 415977, 415978, 415979, 415980, 415981, 415982, 415983, 415984, 415985, 415986, 415987, 415988, 415989, 415990, 415991, 415992, 415993, 415994, 415995, 415996, 415997, 415998, 415999, 416000, 416001, 416002, 416003, 416004, 416005, 416006, 416007, 416008, 416009, 416010, 416011, 416012, 416013, 416014, 416015, 416016, 416017, 416018, 416019, 416020, 416021, 416022, 416023, 416024, 416025, 416026, 416027, 416028, 416029, 416030, 416031, 416032, 416033, 416034, 416035, 416036, 416037, 416038, 416039, 416040, 416041, 416042, 416043, 416044, 416045, 416046, 416047, 416048, 416049, 416050, 416051, 416052, 416053, 416054, 416055, 416056, 416057, 416058, 416059, 416060, 416061, 416062, 416063, 416064, 416065, 416066, 416067, 416068, 416069, 416070, 416071, 416072, 416073, 416074, 416075, 416076, 416077, 416078, 416079, 416080, 416081, 416082, 416083, 416084, 416085, 416086, 416087, 416088, 416089, 416090, 416091, 416092, 416093, 416094, 416095, 416096, 416097, 416098, 416099, 416100, 416101, 416102, 416103, 416104, 416105, 416106, 416107, 416108, 416109, 416110, 416111, 416112, 416113, 416114, 416115, 416116, 416117, 416118, 416119, 416120, 416121, 416122, 416123, 416124, 416125, 416126, 416127, 416128, 416129, 416130, 416131, 416132, 416133, 416134, 416135, 416136, 416137, 416138, 416139, 416140, 416141, 416142, 416143, 416144, 416145, 416146, 416147, 416148, 416149, 416150, 416151, 416152, 416153, 416154, 416155, 416156, 416157, 416158, 416159, 416160, 416161, 416162, 416163, 416164, 416165, 416166, 416167, 416168, 416169, 416170, 416171, 416172, 416173, 416174, 416175, 416176, 416177, 416178, 416179, 416180, 416181, 416182, 416183, 416184, 416185, 416186, 416187, 416188, 416189, 416190, 416191, 416192, 416193, 416194, 416195, 416196, 416197, 416198, 416199, 416200, 416201, 416202, 416203, 416204, 416205, 416206, 416207, 416208, 416209, 416210, 416211, 416212, 416213, 416214, 416215, 416216, 416217, 416218, 416219, 416220, 416221, 416222, 416223, 416224, 416225, 416226, 416227, 416228, 416229, 416230, 416231, 416232, 416233, 416234, 416235, 416236, 416237, 416238, 416239, 416240 ]; clinched = [ ]; mapClinched = true; mapStatus = mapStates.MAPVIEW; genEdges = true; }