function waypointsFromSQL() { routeInfo[0] = { firstWaypoint: 0, root: "mne.m001", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M1" }; routeInfo[1] = { firstWaypoint: 54, root: "mne.m0011", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M1.1" }; routeInfo[2] = { firstWaypoint: 59, root: "mne.m002", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M2" }; routeInfo[3] = { firstWaypoint: 128, root: "mne.m003", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M3" }; routeInfo[4] = { firstWaypoint: 160, root: "mne.m004", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M4" }; routeInfo[5] = { firstWaypoint: 166, root: "mne.m005", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M5" }; routeInfo[6] = { firstWaypoint: 191, root: "mne.m006", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M6" }; routeInfo[7] = { firstWaypoint: 230, root: "mne.m007", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M7" }; routeInfo[8] = { firstWaypoint: 242, root: "mne.m008", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M8" }; routeInfo[9] = { firstWaypoint: 259, root: "mne.m009", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M9" }; routeInfo[10] = { firstWaypoint: 266, root: "mne.m010", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M10" }; routeInfo[11] = { firstWaypoint: 289, root: "mne.m011", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M11" }; routeInfo[12] = { firstWaypoint: 295, root: "mne.m012", tier: 4, color: "TMlightsalmon", system: "mnem", label: "MNE M12" }; waypoints = [ new Waypoint("HRV/MNE",42.487368,18.437548), new Waypoint("+X381712",42.471369,18.479261), new Waypoint("Nji",42.457091,18.492265), new Waypoint("VCriBri",42.461935,18.511984), new Waypoint("BokBri",42.453006,18.537712), new Waypoint("M12",42.455128,18.558418), new Waypoint("+X406341",42.439547,18.588181), new Waypoint("Den",42.440228,18.618114), new Waypoint("Bij",42.454447,18.65442), new Waypoint("+X422711",42.459909,18.675513), new Waypoint("KamLepFry",42.466628,18.674355), new Waypoint("+X315152",42.478839,18.686414), new Waypoint("Gra",42.489172,18.64912), new Waypoint("M8",42.495691,18.654571), new Waypoint("+X694084",42.51741,18.688431), new Waypoint("Ris",42.512855,18.695469), new Waypoint("Per",42.489283,18.694353), new Waypoint("+X169094",42.483523,18.732805), new Waypoint("DonOra",42.490359,18.761601), new Waypoint("Prc",42.421682,18.769927), new Waypoint("R1",42.41617,18.765764), new Waypoint("M11",42.391912,18.737805), new Waypoint("R22_S",42.378551,18.749928), new Waypoint("+X116202",42.33282,18.773017), new Waypoint("Las",42.306451,18.804688), new Waypoint("+X757102",42.285628,18.805547), new Waypoint("+X270284",42.27788,18.83297), new Waypoint("TopPut",42.285501,18.836617), new Waypoint("M10",42.283072,18.857603), new Waypoint("+X684257",42.280897,18.884854), new Waypoint("+X206509",42.221017,18.911762), new Waypoint("+X584420",42.215487,18.931525), new Waypoint("+X116353",42.208383,18.927898), new Waypoint("M2",42.211228,18.944421), new Waypoint("+X877047",42.196573,18.982658), new Waypoint("+X420433",42.172246,19.001799), new Waypoint("M1.1",42.153828,19.032698), new Waypoint("UliCrnBri",42.106756,19.090848), new Waypoint("UliBul",42.093828,19.098401), new Waypoint("R28",42.092152,19.111522), new Waypoint("StaBar",42.085866,19.124537), new Waypoint("R29_W",42.0589,19.129965), new Waypoint("+X546550",42.052926,19.126682), new Waypoint("+X937086",42.024877,19.155693), new Waypoint("UliUvaMas",42.01281,19.154298), new Waypoint("+X241354",41.984217,19.158912), new Waypoint("R22",41.927506,19.22998), new Waypoint("+X948311",41.949979,19.272251), new Waypoint("+X206858",41.978762,19.258518), new Waypoint("R29_E",42.013782,19.262638), new Waypoint("Sas",42.002956,19.29873), new Waypoint("R15",42.009581,19.309732), new Waypoint("+X967667",42.008234,19.329414), new Waypoint("MNE/ALB",42.016684,19.371815), new Waypoint("M1",42.153828,19.032698), new Waypoint("+X960831",42.159841,19.0236), new Waypoint("+X748847",42.199561,19.052825), new Waypoint("+X655513",42.226642,19.053168), new Waypoint("M2",42.240337,19.076643), new Waypoint("M1",42.211228,18.944421), new Waypoint("+X562280",42.205633,18.952446), new Waypoint("+X610417",42.216568,18.947039), new Waypoint("+X116921",42.218666,18.963089), new Waypoint("+X982913",42.219683,18.950729), new Waypoint("+X543225",42.222543,18.963776), new Waypoint("+X242315",42.211037,19.003429), new Waypoint("+X378173",42.2207,19.029436), new Waypoint("GorBrc",42.24002,19.015274), new Waypoint("+X749659",42.23144,19.05776), new Waypoint("M1.1",42.240337,19.076643), new Waypoint("R15",42.247097,19.0897), new Waypoint("+X293554",42.263749,19.096041), new Waypoint("+X596504",42.307134,19.179296), new Waypoint("BijPol",42.304055,19.196355), new Waypoint("Gol",42.344209,19.221783), new Waypoint("AerPod",42.366836,19.226976), new Waypoint("JugObi",42.395279,19.239378), new Waypoint("M3",42.42051,19.254913), new Waypoint("BulJosSla",42.417691,19.264376), new Waypoint("M4",42.423932,19.26826), new Waypoint("R27",42.435573,19.275159), new Waypoint("UliSko",42.44256,19.276854), new Waypoint("A1",42.46996,19.300618), new Waypoint("+X263771",42.501624,19.314051), new Waypoint("+X919429",42.503744,19.331517), new Waypoint("R13_S",42.515812,19.344371), new Waypoint("+X551970",42.556115,19.336238), new Waypoint("+X113381",42.591353,19.360442), new Waypoint("+X268970",42.602536,19.379754), new Waypoint("+X231855",42.614191,19.370484), new Waypoint("+X130258",42.648386,19.380226), new Waypoint("+X517750",42.673822,19.367523), new Waypoint("+X111790",42.685148,19.37572), new Waypoint("Med",42.718138,19.370506), new Waypoint("+X957549",42.743703,19.389517), new Waypoint("+X917853",42.811553,19.392457), new Waypoint("R21",42.818825,19.402628), new Waypoint("+X342300",42.801006,19.396491), new Waypoint("+X865888",42.803454,19.403272), new Waypoint("+X144796",42.795731,19.402864), new Waypoint("+X521799",42.804186,19.411769), new Waypoint("+X786050",42.79496,19.433012), new Waypoint("+X454996",42.808247,19.507084), new Waypoint("R13_N",42.815445,19.511917), new Waypoint("JunMojBit",42.828724,19.513951), new Waypoint("+X370799",42.843358,19.511526), new Waypoint("+X509487",42.851444,19.526331), new Waypoint("RovTre",42.862172,19.525044), new Waypoint("+X640180",42.87892,19.539528), new Waypoint("+X604761",42.904891,19.537168), new Waypoint("+X692286",42.903696,19.552917), new Waypoint("BioGora",42.916395,19.574697), new Waypoint("R10",42.955488,19.576038), new Waypoint("+X896426",42.965091,19.576993), new Waypoint("+X300730",42.967367,19.565899), new Waypoint("+X927159",42.974009,19.568624), new Waypoint("+X277648",42.988325,19.5503), new Waypoint("+X993348",42.993293,19.592239), new Waypoint("+X306424",42.982894,19.65291), new Waypoint("R11",42.989675,19.678488), new Waypoint("+X287178",42.984495,19.706125), new Waypoint("M5",42.994133,19.744534), new Waypoint("Cuk_S",43.020494,19.734321), new Waypoint("+X692680",43.039944,19.771614), new Waypoint("Cuk_N",43.046146,19.766078), new Waypoint("Sut",43.09083,19.773073), new Waypoint("+X259017",43.141767,19.77891), new Waypoint("MNE/SRB",43.166124,19.76964), new Waypoint("M2",42.42051,19.254913), new Waypoint("+X657447",42.422379,19.237361), new Waypoint("M10",42.435177,19.228134), new Waypoint("+X300701",42.458975,19.179082), new Waypoint("Spuz",42.487796,19.162517), new Waypoint("+X392789",42.514152,19.125867), new Waypoint("R14",42.546662,19.100332), new Waypoint("+X424752",42.583864,19.047289), new Waypoint("+X664777",42.66845,18.974032), new Waypoint("R23",42.678476,18.973839), new Waypoint("+X976935",42.726508,18.93912), new Waypoint("UliTre",42.764449,18.940532), new Waypoint("M7",42.784016,18.928285), new Waypoint("+X560048",42.808499,18.90378), new Waypoint("Vir",42.827796,18.899231), new Waypoint("R7",42.851632,18.916525), new Waypoint("GorPol",42.8631,18.934637), new Waypoint("+X356400",42.886656,18.95442), new Waypoint("M6",42.901307,18.960042), new Waypoint("+X825356",42.937732,18.931975), new Waypoint("+X655040",42.942099,18.914766), new Waypoint("DonBre",42.997711,18.889103), new Waypoint("+X431877",43.049541,18.848376), new Waypoint("+X112737",43.059325,18.826962), new Waypoint("+X129543",43.079389,18.84696), new Waypoint("+X600163",43.097536,18.824215), new Waypoint("Gor",43.126703,18.813357), new Waypoint("R16",43.168816,18.857925), new Waypoint("+X821695",43.219189,18.853139), new Waypoint("+X643663",43.244639,18.835459), new Waypoint("+X922706",43.318543,18.860071), new Waypoint("MNE/BIH",43.348748,18.845286), new Waypoint("M2",42.423932,19.26826), new Waypoint("Mat",42.364284,19.329801), new Waypoint("+X420009",42.332662,19.337611), new Waypoint("+X672881",42.324413,19.365807), new Waypoint("+X534267",42.309911,19.366021), new Waypoint("MNE/ALB",42.330124,19.419794), new Waypoint("M2",42.994133,19.744534), new Waypoint("+X816566",42.978687,19.757152), new Waypoint("+X719393",43.001885,19.785948), new Waypoint("+X342895",42.996848,19.80158), new Waypoint("+X589506",42.969738,19.810581), new Waypoint("Crn",42.967258,19.841394), new Waypoint("Pet",42.931479,19.856458), new Waypoint("R2",42.85651,19.868238), new Waypoint("VojaMas",42.856116,19.874976), new Waypoint("R12_W",42.857846,19.878966), new Waypoint("+X641640",42.845482,19.89285), new Waypoint("+X873433",42.833304,19.945378), new Waypoint("+X900870",42.835428,20.00104), new Waypoint("+X951905",42.831258,19.997177), new Waypoint("+X546924",42.833335,20.025887), new Waypoint("+X720077",42.852907,20.070176), new Waypoint("R12_E",42.851177,20.09438), new Waypoint("+X999571",42.830361,20.143604), new Waypoint("RifBur",42.845993,20.175823), new Waypoint("R6",42.85319,20.182346), new Waypoint("+X660224",42.851554,20.202999), new Waypoint("+X858639",42.895271,20.289388), new Waypoint("+X297129",42.883386,20.300031), new Waypoint("+X817582",42.901339,20.314021), new Waypoint("MNE/SRB",42.90992,20.340457), new Waypoint("M3",42.901307,18.960042), new Waypoint("+X300334",42.904639,19.015102), new Waypoint("+X787290",42.894705,19.079046), new Waypoint("Krn",42.900867,19.093122), new Waypoint("+X862889",42.916269,19.090827), new Waypoint("+X189330",42.930159,19.069605), new Waypoint("+X762482",42.94191,19.071579), new Waypoint("+X744532",42.950517,19.099989), new Waypoint("R20_S",42.959438,19.093637), new Waypoint("+X376497",42.988639,19.072008), new Waypoint("+X691167",43.027741,19.090033), new Waypoint("+X388290",43.044617,19.079561), new Waypoint("+X136077",43.064248,19.108057), new Waypoint("+X774092",43.075785,19.100504), new Waypoint("R16",43.115771,19.122155), new Waypoint("R20_N",43.121308,19.124751), new Waypoint("VukaKar",43.151419,19.12841), new Waypoint("NorHer",43.160709,19.13563), new Waypoint("+X406853",43.16337,19.19363), new Waypoint("R26",43.14475,19.23352), new Waypoint("+X561609",43.152194,19.258111), new Waypoint("+X982975",43.14781,19.267938), new Waypoint("+X652068",43.160568,19.26163), new Waypoint("R10",43.14853,19.292078), new Waypoint("+X831689",43.165686,19.286928), new Waypoint("+X682243",43.153446,19.315338), new Waypoint("+X527073",43.170882,19.308472), new Waypoint("+X636245",43.211056,19.33598), new Waypoint("+X773109",43.225599,19.381385), new Waypoint("+X374410",43.254424,19.377823), new Waypoint("+X731806",43.302945,19.335809), new Waypoint("+X934667",43.342502,19.325852), new Waypoint("R18",43.348213,19.339113), new Waypoint("R3",43.354299,19.365249), new Waypoint("+X549481",43.338538,19.385719), new Waypoint("R11",43.344968,19.397306), new Waypoint("+X223810",43.344656,19.451208), new Waypoint("+X631120",43.332982,19.454556), new Waypoint("MNE/SRB",43.337352,19.477215), new Waypoint("M3",42.784016,18.928285), new Waypoint("R17",42.777574,18.888803), new Waypoint("+X531096",42.781732,18.862925), new Waypoint("+X479193",42.752559,18.810439), new Waypoint("+X337625",42.738124,18.760056), new Waypoint("+X160533",42.746634,18.742762), new Waypoint("Rud",42.744523,18.717914), new Waypoint("Rij",42.75456,18.666865), new Waypoint("M8",42.733333,18.601656), new Waypoint("M9",42.727028,18.590627), new Waypoint("Kuc",42.712998,18.570929), new Waypoint("MNE/BIH",42.712328,18.564674), new Waypoint("M1",42.495691,18.654571), new Waypoint("DonMor",42.490834,18.646245), new Waypoint("+X282153",42.489995,18.642125), new Waypoint("+X568033",42.522724,18.68547), new Waypoint("+X354651",42.534046,18.685598), new Waypoint("+X460132",42.537746,18.6762), new Waypoint("Led",42.549587,18.713644), new Waypoint("+X169474",42.565566,18.707743), new Waypoint("+X952773",42.564365,18.699031), new Waypoint("+X795185",42.574669,18.686628), new Waypoint("Dra",42.611538,18.683324), new Waypoint("+X572422",42.638126,18.684139), new Waypoint("R8",42.655235,18.674097), new Waypoint("Nugo",42.679533,18.638306), new Waypoint("+X129427",42.693665,18.636203), new Waypoint("+X572238",42.712336,18.607321), new Waypoint("M7",42.733333,18.601656), new Waypoint("M7",42.727028,18.590627), new Waypoint("BroVil",42.756529,18.559728), new Waypoint("Pet",42.771652,18.520546), new Waypoint("+X859730",42.785764,18.507199), new Waypoint("+X942484",42.830282,18.504539), new Waypoint("+X611186",42.846237,18.48454), new Waypoint("MNE/BIH",42.862659,18.47939), new Waypoint("M3",42.435177,19.228134), new Waypoint("JugObi",42.417405,19.208565), new Waypoint("+X793530",42.411354,19.175735), new Waypoint("+X297412",42.400073,19.170155), new Waypoint("Lij",42.396809,19.152946), new Waypoint("Rva",42.383338,19.102607), new Waypoint("DobZupa",42.385684,19.055872), new Waypoint("Met",42.377537,19.058146), new Waypoint("RijCrn",42.377489,18.991134), new Waypoint("R1",42.386667,18.930323), new Waypoint("Obz",42.315052,18.935065), new Waypoint("+X348593",42.30242,18.93837), new Waypoint("+X865095",42.306927,18.902793), new Waypoint("+X628285",42.300437,18.894596), new Waypoint("Lap",42.315718,18.854814), new Waypoint("Sta",42.301294,18.875864), new Waypoint("+X537222",42.306166,18.864384), new Waypoint("Mar",42.302738,18.857281), new Waypoint("+X624763",42.299643,18.853183), new Waypoint("+X770952",42.28477,18.858762), new Waypoint("+X911647",42.287628,18.860779), new Waypoint("+X698868",42.286913,18.863525), new Waypoint("M1",42.283072,18.857603), new Waypoint("M1",42.391912,18.737805), new Waypoint("UliAer",42.415584,18.717924), new Waypoint("Uli21Nov",42.429507,18.70255), new Waypoint("UliBeo",42.439437,18.693538), new Waypoint("+X981293",42.456014,18.681693), new Waypoint("LepKamFry",42.465544,18.68607), new Waypoint("M1",42.455128,18.558418), new Waypoint("Podi_W",42.4585,18.538323), new Waypoint("Podi_E",42.463989,18.545753), new Waypoint("Ter",42.489679,18.511662), new Waypoint("Kru",42.517331,18.485527), new Waypoint("+X204450",42.532781,18.466945), new Waypoint("MNE/BIH",42.562137,18.443878) ]; traveler = 'michih'; segments = [ 391819, 391820, 391821, 391822, 391823, 391824, 391825, 391826, 391827, 391828, 391829, 391830, 391831, 391832, 391833, 391834, 391835, 391836, 391837, 391838, 391839, 391840, 391841, 391842, 391843, 391844, 391845, 391846, 391847, 391848, 391849, 391850, 391851, 391852, 391853, 391854, 391855, 391856, 391857, 391858, 391859, 391860, 391861, 391862, 391863, 391864, 391865, 391866, 391867, 391868, 391869, 391870, 391871, 391872, 391873, 391874, 391875, 391876, 391877, 391878, 391879, 391880, 391881, 391882, 391883, 391884, 391885, 391886, 391887, 391888, 391889, 391890, 391891, 391892, 391893, 391894, 391895, 391896, 391897, 391898, 391899, 391900, 391901, 391902, 391903, 391904, 391905, 391906, 391907, 391908, 391909, 391910, 391911, 391912, 391913, 391914, 391915, 391916, 391917, 391918, 391919, 391920, 391921, 391922, 391923, 391924, 391925, 391926, 391927, 391928, 391929, 391930, 391931, 391932, 391933, 391934, 391935, 391936, 391937, 391938, 391939, 391940, 391941, 391942, 391943, 391944, 391945, 391946, 391947, 391948, 391949, 391950, 391951, 391952, 391953, 391954, 391955, 391956, 391957, 391958, 391959, 391960, 391961, 391962, 391963, 391964, 391965, 391966, 391967, 391968, 391969, 391970, 391971, 391972, 391973, 391974, 391975, 391976, 391977, 391978, 391979, 391980, 391981, 391982, 391983, 391984, 391985, 391986, 391987, 391988, 391989, 391990, 391991, 391992, 391993, 391994, 391995, 391996, 391997, 391998, 391999, 392000, 392001, 392002, 392003, 392004, 392005, 392006, 392007, 392008, 392009, 392010, 392011, 392012, 392013, 392014, 392015, 392016, 392017, 392018, 392019, 392020, 392021, 392022, 392023, 392024, 392025, 392026, 392027, 392028, 392029, 392030, 392031, 392032, 392033, 392034, 392035, 392036, 392037, 392038, 392039, 392040, 392041, 392042, 392043, 392044, 392045, 392046, 392047, 392048, 392049, 392050, 392051, 392052, 392053, 392054, 392055, 392056, 392057, 392058, 392059, 392060, 392061, 392062, 392063, 392064, 392065, 392066, 392067, 392068, 392069, 392070, 392071, 392072, 392073, 392074, 392075, 392076, 392077, 392078, 392079, 392080, 392081, 392082, 392083, 392084, 392085, 392086, 392087, 392088, 392089, 392090, 392091, 392092, 392093, 392094, 392095, 392096, 392097, 392098, 392099, 392100, 392101, 392102, 392103, 392104, 392105, 392106, 392107 ]; clinched = [ 391847, 391848, 391849, 391850, 391851, 391852, 391853, 391854, 391872, 391873, 391874, 391875, 391886, 391887, 391888, 391889, 391890, 391891, 391892, 391893, 391894, 391895, 391896, 391897, 391898, 391920, 391921, 391922, 391923, 391924, 391925, 391926, 391927, 391928, 391929, 391930, 391931, 391932, 391933, 391934, 391935, 391936, 391937, 391938, 391939, 391940, 391941, 391942, 391943, 391944, 391945, 391956, 391957, 391958, 391959, 391960, 391961, 391962, 391963, 391964, 391965, 391966, 391967, 391968, 391969, 391970, 391971, 391972, 391973, 391974, 391975, 391976, 391977, 391978, 391979, 392042, 392043, 392044, 392045, 392046, 392047, 392048, 392049, 392050, 392051, 392052, 392075, 392076, 392077, 392078, 392079, 392080, 392081, 392082, 392083, 392084, 392085, 392086, 392087, 392088, 392089, 392090, 392091, 392092, 392093, 392094, 392095, 392096 ]; mapClinched = true; mapStatus = mapStates.MAPVIEW; genEdges = true; }