function waypointsFromSQL() {
routeInfo[0] = { firstWaypoint: 0, root: "hrv.a001", tier: 1, color: "TMblue", system: "hrva", label: "HRV A1" };
routeInfo[1] = { firstWaypoint: 104, root: "hrv.a002", tier: 1, color: "TMblue", system: "hrva", label: "HRV A2" };
routeInfo[2] = { firstWaypoint: 123, root: "hrv.a003", tier: 1, color: "TMblue", system: "hrva", label: "HRV A3" };
routeInfo[3] = { firstWaypoint: 178, root: "hrv.a004", tier: 1, color: "TMblue", system: "hrva", label: "HRV A4" };
routeInfo[4] = { firstWaypoint: 204, root: "hrv.a005", tier: 1, color: "TMblue", system: "hrva", label: "HRV A5" };
routeInfo[5] = { firstWaypoint: 221, root: "hrv.a006", tier: 1, color: "TMblue", system: "hrva", label: "HRV A6" };
routeInfo[6] = { firstWaypoint: 246, root: "hrv.a007", tier: 1, color: "TMblue", system: "hrva", label: "HRV A7" };
routeInfo[7] = { firstWaypoint: 268, root: "hrv.a008", tier: 1, color: "TMblue", system: "hrva", label: "HRV A8" };
routeInfo[8] = { firstWaypoint: 293, root: "hrv.a009", tier: 1, color: "TMblue", system: "hrva", label: "HRV A9" };
routeInfo[9] = { firstWaypoint: 317, root: "hrv.a010", tier: 1, color: "TMblue", system: "hrva", label: "HRV A10" };
routeInfo[10] = { firstWaypoint: 322, root: "hrv.a011", tier: 1, color: "TMblue", system: "hrva", label: "HRV A11" };
waypoints = [
new Waypoint("1",45.758931,15.899534),
new Waypoint("+X1",45.699286,15.837994),
new Waypoint("2",45.67585,15.754149),
new Waypoint("+X1A",45.666966,15.723152),
new Waypoint("3a",45.645781,15.680044),
new Waypoint("+X1B",45.61878,15.648308),
new Waypoint("+X2",45.570914,15.617409),
new Waypoint("4",45.514181,15.547972),
new Waypoint("+X3A",45.50967,15.5163),
new Waypoint("+X3",45.515896,15.481389),
new Waypoint("5",45.479377,15.429225),
new Waypoint("OdmVukGor",45.45329,15.374634),
new Waypoint("6a",45.420572,15.29372),
new Waypoint("7a",45.405697,15.25001),
new Waypoint("+X5",45.371926,15.269709),
new Waypoint("+X6",45.318418,15.283871),
new Waypoint("8",45.238741,15.268292),
new Waypoint("+X7",45.216571,15.258636),
new Waypoint("+X7A",45.174898,15.278206),
new Waypoint("+X8",45.145363,15.273399),
new Waypoint("+X9",45.127138,15.243702),
new Waypoint("+X10",45.113208,15.246448),
new Waypoint("+X10A",45.082309,15.207396),
new Waypoint("+X11",45.067974,15.207481),
new Waypoint("9",45.028399,15.159996),
new Waypoint("+X12",44.989388,15.096245),
new Waypoint("10a",44.964206,15.094142),
new Waypoint("+X13",44.938739,15.170403),
new Waypoint("+X14",44.92449,15.166626),
new Waypoint("11",44.891254,15.192719),
new Waypoint("+X15",44.862987,15.2104),
new Waypoint("+X16",44.821908,15.265846),
new Waypoint("+X16A",44.811131,15.297088),
new Waypoint("+X17",44.754353,15.371246),
new Waypoint("+X17A",44.70792,15.389786),
new Waypoint("12a",44.669645,15.419698),
new Waypoint("+X18",44.636658,15.439052),
new Waypoint("+X19",44.606296,15.439911),
new Waypoint("13",44.573304,15.426865),
new Waypoint("+X19A",44.533441,15.444846),
new Waypoint("+X20",44.499934,15.532694),
new Waypoint("+X21",44.461292,15.603418),
new Waypoint("14",44.439495,15.621142),
new Waypoint("+X22",44.41208,15.638695),
new Waypoint("15",44.392748,15.632086),
new Waypoint("+X23",44.337417,15.651741),
new Waypoint("+X24",44.328361,15.67131),
new Waypoint("+X25",44.30656,15.678091),
new Waypoint("+X26",44.255497,15.649166),
new Waypoint("+X27",44.249625,15.614233),
new Waypoint("+X28",44.264164,15.593119),
new Waypoint("+X30",44.258448,15.589514),
new Waypoint("+X32",44.240511,15.608139),
new Waypoint("16",44.238289,15.529497),
new Waypoint("+X34",44.217832,15.494499),
new Waypoint("17a",44.216986,15.453773),
new Waypoint("18",44.186682,15.43283),
new Waypoint("+X34A",44.16509,15.419655),
new Waypoint("+X35",44.136207,15.420685),
new Waypoint("19",44.114566,15.444632),
new Waypoint("+X36",44.086413,15.499992),
new Waypoint("20",44.011429,15.58445),
new Waypoint("+X517",43.94972,15.687876),
new Waypoint("21",43.888761,15.789671),
new Waypoint("+X37",43.864671,15.818253),
new Waypoint("22a",43.836214,15.887389),
new Waypoint("+X38",43.815021,15.912323),
new Waypoint("+X38A",43.782001,15.919061),
new Waypoint("23",43.766422,15.933266),
new Waypoint("24",43.7143,15.988685),
new Waypoint("25a",43.683407,16.062269),
new Waypoint("+X40",43.683515,16.11763),
new Waypoint("+X41",43.659365,16.189899),
new Waypoint("26",43.621491,16.242728),
new Waypoint("27",43.590307,16.402416),
new Waypoint("+X42",43.586422,16.453228),
new Waypoint("+X42A",43.5973,16.492367),
new Waypoint("28",43.599771,16.566181),
new Waypoint("+X43",43.602646,16.619654),
new Waypoint("+X44",43.589561,16.628752),
new Waypoint("+X45",43.581945,16.659436),
new Waypoint("29",43.565008,16.684885),
new Waypoint("+X46",43.515755,16.739388),
new Waypoint("+X47A",43.509312,16.763549),
new Waypoint("+X47",43.480982,16.806035),
new Waypoint("+X47B",43.47793,16.827235),
new Waypoint("30",43.464398,16.845131),
new Waypoint("31a",43.44104,16.92137),
new Waypoint("+X47D",43.42718,16.954994),
new Waypoint("+X47E",43.423315,17.000313),
new Waypoint("32",43.40236,17.03167),
new Waypoint("OdmRasGor",43.32299,17.1705),
new Waypoint("+X48",43.280173,17.211156),
new Waypoint("+X49",43.228194,17.234802),
new Waypoint("34",43.21934,17.2622),
new Waypoint("+X923",43.206458,17.284284),
new Waypoint("35",43.189502,17.378655),
new Waypoint("OdmDus",43.178401,17.420438),
new Waypoint("+X974",43.164121,17.443993),
new Waypoint("+X941",43.161053,17.473326),
new Waypoint("36",43.147904,17.48517),
new Waypoint("+X913",43.147153,17.489719),
new Waypoint("+X910",43.107469,17.478991),
new Waypoint("D425",43.101422,17.48538),
new Waypoint("SVN/HRV",46.270665,15.867273),
new Waypoint("1",46.261848,15.866511),
new Waypoint("+X0",46.259645,15.858421),
new Waypoint("+X1",46.244362,15.847435),
new Waypoint("2",46.201889,15.84559),
new Waypoint("+X2",46.140891,15.860138),
new Waypoint("3",46.130348,15.884471),
new Waypoint("+X21",46.098918,15.899835),
new Waypoint("4",46.090124,15.907903),
new Waypoint("+X20",46.075456,15.917569),
new Waypoint("+X3",46.036182,15.926056),
new Waypoint("+X31",46.028018,15.917773),
new Waypoint("5",45.999078,15.864172),
new Waypoint("+X4",45.928249,15.82819),
new Waypoint("+X5",45.905957,15.820656),
new Waypoint("+X52",45.86727,15.831733),
new Waypoint("6",45.853584,15.827265),
new Waypoint("+X6",45.830175,15.819111),
new Waypoint("7",45.789268,15.848937),
new Waypoint("SVN/HRV",45.845111,15.694841),
new Waypoint("1",45.832253,15.721178),
new Waypoint("2",45.798155,15.784435),
new Waypoint("+X1",45.784951,15.811708),
new Waypoint("3a",45.784188,15.82969),
new Waypoint("4a",45.789268,15.848937),
new Waypoint("5",45.758931,15.899534),
new Waypoint("+X2",45.748091,15.925455),
new Waypoint("6a",45.753361,15.98897),
new Waypoint("7",45.751557,16.00472),
new Waypoint("+X3",45.746623,16.052399),
new Waypoint("8",45.76426,16.089907),
new Waypoint("9",45.800301,16.131127),
new Waypoint("10",45.79232,16.164622),
new Waypoint("11",45.764454,16.225648),
new Waypoint("+X4",45.744407,16.321907),
new Waypoint("+X5",45.696648,16.364994),
new Waypoint("12",45.686201,16.38937),
new Waypoint("+X6",45.678181,16.468849),
new Waypoint("13",45.656528,16.494856),
new Waypoint("14",45.559211,16.591587),
new Waypoint("+X6A",45.538129,16.609011),
new Waypoint("+X6B",45.518406,16.648493),
new Waypoint("+X7",45.49973,16.66729),
new Waypoint("15",45.458814,16.761146),
new Waypoint("+X8",45.443633,16.818008),
new Waypoint("16",45.372817,16.882202),
new Waypoint("17a",45.329446,16.943021),
new Waypoint("+X10",45.288294,17.099876),
new Waypoint("+X33",45.254724,17.173412),
new Waypoint("18",45.228027,17.218323),
new Waypoint("+X11",45.234163,17.280121),
new Waypoint("19",45.227544,17.412386),
new Waypoint("+X12",45.229205,17.463627),
new Waypoint("+X12A",45.187361,17.635546),
new Waypoint("21",45.166835,17.677002),
new Waypoint("+X13",45.150872,17.759571),
new Waypoint("22",45.170223,17.940717),
new Waypoint("+X140",45.179813,17.97477),
new Waypoint("+X14A",45.184699,18.027363),
new Waypoint("23",45.178066,18.069184),
new Waypoint("+X15",45.170783,18.16143),
new Waypoint("+X16",45.155714,18.192501),
new Waypoint("24",45.144985,18.311934),
new Waypoint("+X17",45.144818,18.349571),
new Waypoint("25",45.131407,18.406734),
new Waypoint("+X18",45.109271,18.516769),
new Waypoint("26",45.111346,18.561831),
new Waypoint("+X18A",45.110604,18.672209),
new Waypoint("27",45.102221,18.71506),
new Waypoint("+X19",45.046723,18.848763),
new Waypoint("28",45.048148,18.909874),
new Waypoint("OdmSpaSumo",45.044885,19.003762),
new Waypoint("29",45.048982,19.071579),
new Waypoint("HRV/SRB",45.047656,19.103036),
new Waypoint("HUN/HRV",46.411987,16.700914),
new Waypoint("1",46.407597,16.685234),
new Waypoint("2",46.40897,16.665916),
new Waypoint("+X1",46.41289,16.61253),
new Waypoint("+X2",46.39549,16.566782),
new Waypoint("3a",46.349342,16.533651),
new Waypoint("4a",46.286417,16.482453),
new Waypoint("+X3",46.283199,16.443615),
new Waypoint("5",46.261025,16.400528),
new Waypoint("+X47",46.238396,16.410828),
new Waypoint("6",46.209544,16.407909),
new Waypoint("+X4",46.193438,16.411171),
new Waypoint("+X5",46.177423,16.377783),
new Waypoint("7",46.151936,16.367354),
new Waypoint("+X5A",46.127702,16.334911),
new Waypoint("+X5B",46.124281,16.302681),
new Waypoint("8",46.099119,16.28382),
new Waypoint("+X6",46.069301,16.297874),
new Waypoint("+X61",46.010078,16.294656),
new Waypoint("9",45.993488,16.286545),
new Waypoint("+X6M",45.960876,16.282768),
new Waypoint("+X7",45.943332,16.269379),
new Waypoint("10",45.903934,16.271632),
new Waypoint("11",45.850789,16.149259),
new Waypoint("12a",45.824657,16.137457),
new Waypoint("13",45.800301,16.131127),
new Waypoint("2",45.764454,18.573839),
new Waypoint("+X62",45.730157,18.584852),
new Waypoint("+X38",45.694277,18.627234),
new Waypoint("+X45",45.638672,18.61026),
new Waypoint("+X22",45.604644,18.564593),
new Waypoint("3",45.57504,18.55158),
new Waypoint("4",45.50452,18.50572),
new Waypoint("+X1",45.419781,18.450165),
new Waypoint("+X2",45.386335,18.397636),
new Waypoint("+X3",45.347893,18.400769),
new Waypoint("5",45.323834,18.379998),
new Waypoint("+X10",45.239965,18.331032),
new Waypoint("+X11",45.19852,18.33262),
new Waypoint("6",45.144985,18.311934),
new Waypoint("7",45.122233,18.317471),
new Waypoint("+X76",45.111127,18.323366),
new Waypoint("HRV/BIH",45.105603,18.314606),
new Waypoint("1",45.405697,15.25001),
new Waypoint("+X0",45.388637,15.196259),
new Waypoint("+X0A",45.373855,15.100622),
new Waypoint("2",45.363944,15.084143),
new Waypoint("+X1",45.358539,15.066977),
new Waypoint("+X2",45.376508,15.052128),
new Waypoint("+X3",45.373192,14.98724),
new Waypoint("3",45.38421,14.91364),
new Waypoint("+X4",45.380759,14.850598),
new Waypoint("+X5",45.3939,14.822016),
new Waypoint("4",45.374632,14.792597),
new Waypoint("+X6",45.367222,14.771719),
new Waypoint("5",45.318486,14.725971),
new Waypoint("+X7",45.316004,14.694729),
new Waypoint("+X8",45.325811,14.656105),
new Waypoint("+X9",45.321647,14.629326),
new Waypoint("6",45.334605,14.596667),
new Waypoint("+X10",45.347018,14.59259),
new Waypoint("+X11",45.362247,14.569674),
new Waypoint("7",45.376569,14.519151),
new Waypoint("+X12",45.376448,14.493841),
new Waypoint("8a",45.35164,14.492126),
new Waypoint("+X13",45.346264,14.490967),
new Waypoint("+X15",45.3487,14.46496),
new Waypoint("9",45.33723,14.470453),
new Waypoint("SVN/HRV",45.489464,14.277871),
new Waypoint("1",45.473765,14.275703),
new Waypoint("+X1",45.458505,14.268494),
new Waypoint("+X1A",45.43731,14.278322),
new Waypoint("+X2",45.425835,14.297333),
new Waypoint("3",45.397501,14.301023),
new Waypoint("+X3",45.38308,14.304199),
new Waypoint("4a",45.372838,14.323479),
new Waypoint("4",45.362964,14.335034),
new Waypoint("6",45.348258,14.374087),
new Waypoint("7",45.343489,14.404256),
new Waypoint("8a",45.344944,14.420264),
new Waypoint("+X4",45.334198,14.446764),
new Waypoint("10",45.33723,14.470453),
new Waypoint("+X5",45.32839,14.476333),
new Waypoint("11",45.323201,14.49234),
new Waypoint("12a",45.311793,14.531178),
new Waypoint("+X5A",45.311115,14.542626),
new Waypoint("13",45.288022,14.585638),
new Waypoint("+X6",45.266656,14.604993),
new Waypoint("14",45.268469,14.593878),
new Waypoint("15",45.260147,14.590659),
new Waypoint("1",45.112558,13.814449),
new Waypoint("+X1",45.128259,13.875046),
new Waypoint("2",45.138424,13.880861),
new Waypoint("+X2",45.208468,13.892555),
new Waypoint("3",45.227921,13.912125),
new Waypoint("4",45.244248,13.974631),
new Waypoint("5",45.273482,14.017096),
new Waypoint("+X3",45.319383,14.075031),
new Waypoint("OdmReb",45.329882,14.074001),
new Waypoint("+X4",45.349062,14.085202),
new Waypoint("6",45.345872,14.1096),
new Waypoint("7",45.324151,14.160677),
new Waypoint("+X50",45.323683,14.168158),
new Waypoint("+X5",45.312141,14.183435),
new Waypoint("OdoKva",45.314827,14.246489),
new Waypoint("+X6",45.315755,14.255898),
new Waypoint("+X7",45.328526,14.260426),
new Waypoint("+X8",45.329839,14.265146),
new Waypoint("8",45.326271,14.271305),
new Waypoint("+X9",45.326369,14.284844),
new Waypoint("9a",45.338165,14.287055),
new Waypoint("+A",45.347915,14.305787),
new Waypoint("+X10",45.357242,14.307503),
new Waypoint("11",45.360229,14.324493),
new Waypoint("12",45.362964,14.335034),
new Waypoint("1",45.452883,13.619635),
new Waypoint("+X0",45.429088,13.611674),
new Waypoint("2",45.403708,13.621244),
new Waypoint("3",45.352311,13.617682),
new Waypoint("+X1",45.324423,13.630857),
new Waypoint("+X2",45.318976,13.695102),
new Waypoint("+X2A",45.290377,13.717675),
new Waypoint("4",45.27645,13.708577),
new Waypoint("+X3",45.264587,13.715401),
new Waypoint("+X4",45.247247,13.707247),
new Waypoint("+X5",45.232047,13.721967),
new Waypoint("5",45.213986,13.724499),
new Waypoint("+X6",45.159134,13.729606),
new Waypoint("6",45.151386,13.739691),
new Waypoint("+X6A",45.126926,13.774667),
new Waypoint("7",45.112558,13.814449),
new Waypoint("+X7",45.072945,13.842473),
new Waypoint("+X8",45.034048,13.830929),
new Waypoint("+X9",45.02516,13.839898),
new Waypoint("8",44.986444,13.846679),
new Waypoint("+X11",44.973694,13.870583),
new Waypoint("9",44.951087,13.872557),
new Waypoint("+X12",44.932299,13.890839),
new Waypoint("10",44.892835,13.889079),
new Waypoint("3",43.147904,17.48517),
new Waypoint("OdmPoj",43.13614,17.507886),
new Waypoint("+X99",43.118277,17.533407),
new Waypoint("1",43.122506,17.554822),
new Waypoint("HRV/BIH",43.123101,17.56628),
new Waypoint("1",45.751557,16.00472),
new Waypoint("2",45.743748,16.010814),
new Waypoint("3",45.734793,16.010513),
new Waypoint("4",45.690863,16.066561),
new Waypoint("+X10",45.681119,16.079693),
new Waypoint("+X11",45.656288,16.074715),
new Waypoint("+X12",45.639728,16.097889),
new Waypoint("5",45.619921,16.104069),
new Waypoint("+X13",45.60323,16.126299),
new Waypoint("+X14",45.58377,16.191959),
new Waypoint("6",45.563703,16.217794),
new Waypoint("+X39",45.52312,16.260042),
new Waypoint("+X90",45.497276,16.311283),
new Waypoint("D36",45.500813,16.319633)
];
traveler = 'duke87';
segments = [
366023,
366024,
366025,
366026,
366027,
366028,
366029,
366030,
366031,
366032,
366033,
366034,
366035,
366036,
366037,
366038,
366039,
366040,
366041,
366042,
366043,
366044,
366045,
366046,
366047,
366048,
366049,
366050,
366051,
366052,
366053,
366054,
366055,
366056,
366057,
366058,
366059,
366060,
366061,
366062,
366063,
366064,
366065,
366066,
366067,
366068,
366069,
366070,
366071,
366072,
366073,
366074,
366075,
366076,
366077,
366078,
366079,
366080,
366081,
366082,
366083,
366084,
366085,
366086,
366087,
366088,
366089,
366090,
366091,
366092,
366093,
366094,
366095,
366096,
366097,
366098,
366099,
366100,
366101,
366102,
366103,
366104,
366105,
366106,
366107,
366108,
366109,
366110,
366111,
366112,
366113,
366114,
366115,
366116,
366117,
366118,
366119,
366120,
366121,
366122,
366123,
366124,
366125,
366126,
366127,
366128,
366129,
366130,
366131,
366132,
366133,
366134,
366135,
366136,
366137,
366138,
366139,
366140,
366141,
366142,
366143,
366144,
366145,
366146,
366147,
366148,
366149,
366150,
366151,
366152,
366153,
366154,
366155,
366156,
366157,
366158,
366159,
366160,
366161,
366162,
366163,
366164,
366165,
366166,
366167,
366168,
366169,
366170,
366171,
366172,
366173,
366174,
366175,
366176,
366177,
366178,
366179,
366180,
366181,
366182,
366183,
366184,
366185,
366186,
366187,
366188,
366189,
366190,
366191,
366192,
366193,
366194,
366195,
366196,
366197,
366198,
366199,
366200,
366201,
366202,
366203,
366204,
366205,
366206,
366207,
366208,
366209,
366210,
366211,
366212,
366213,
366214,
366215,
366216,
366217,
366218,
366219,
366220,
366221,
366222,
366223,
366224,
366225,
366226,
366227,
366228,
366229,
366230,
366231,
366232,
366233,
366234,
366235,
366236,
366237,
366238,
366239,
366240,
366241,
366242,
366243,
366244,
366245,
366246,
366247,
366248,
366249,
366250,
366251,
366252,
366253,
366254,
366255,
366256,
366257,
366258,
366259,
366260,
366261,
366262,
366263,
366264,
366265,
366266,
366267,
366268,
366269,
366270,
366271,
366272,
366273,
366274,
366275,
366276,
366277,
366278,
366279,
366280,
366281,
366282,
366283,
366284,
366285,
366286,
366287,
366288,
366289,
366290,
366291,
366292,
366293,
366294,
366295,
366296,
366297,
366298,
366299,
366300,
366301,
366302,
366303,
366304,
366305,
366306,
366307,
366308,
366309,
366310,
366311,
366312,
366313,
366314,
366315,
366316,
366317,
366318,
366319,
366320,
366321,
366322,
366323,
366324,
366325,
366326,
366327,
366328,
366329,
366330,
366331,
366332,
366333,
366334,
366335,
366336,
366337,
366338,
366339,
366340,
366341,
366342,
366343,
366344,
366345,
366346,
366347
];
clinched = [
366023,
366024,
366025,
366026,
366027,
366028,
366029,
366030,
366031,
366032,
366033,
366034,
366035,
366036,
366037,
366038,
366039,
366040,
366041,
366042,
366043,
366044,
366045,
366046,
366047,
366048,
366150,
366151,
366152,
366153,
366154,
366155,
366199,
366200,
366201,
366202,
366203,
366204,
366205,
366206,
366207,
366208,
366209,
366210,
366211,
366212,
366213,
366214,
366215,
366216,
366217,
366218,
366219,
366220,
366221,
366222,
366271,
366272,
366273,
366274,
366275,
366276,
366277,
366278,
366279,
366280,
366281,
366282,
366283,
366294,
366295,
366296,
366297,
366298,
366299,
366300,
366301,
366302,
366303,
366304,
366305,
366306,
366307,
366335,
366336
];
mapClinched = true;
mapStatus = mapStates.MAPVIEW;
genEdges = true;
}