
/* 
 * Tour map data
 */
 
var segment = [];

// Tourist office -> Maam Cross via coast road
segment[0] = [

[53.27360560080534,-9.048914909362793],
[53.27288702692689,-9.048056602478027],
[53.269550632835475,-9.052348136901855],
[53.27044891839713,-9.054193496704102],
[53.26811333667939,-9.058613777160645],
[53.26695833154078,-9.063420295715332],
[53.26600863727581,-9.063849449157715],
[53.263210766706266,-9.06972885131836],
[53.259539888242635,-9.073891639709473],
[53.259411530147645,-9.076294898986816],
[53.25828196230105,-9.079771041870117],
[53.25833330694124,-9.083032608032227],
[53.257383421120245,-9.09243106842041],
[53.25835897923823,-9.096379280090332],
[53.258204945225174,-9.101958274841309],
[53.259129140982694,-9.107108116149902],
[53.26084911880798,-9.108352661132812],

// Knocknacarra Cross

[53.25966824595241,-9.129295349121094],
[53.2526850270062,-9.138908386230469],
[53.24837129282137,-9.167404174804688],
[53.25083633704159,-9.225082397460938],
[53.246111544189475,-9.259414672851562],
[53.244468015680724,-9.293403625488281],
[53.246933284772695,-9.375457763671875],
[53.23933158223225,-9.422149658203125],
[53.24261897065545,-9.439315795898438],
[53.236865875206114,-9.491500854492188],
[53.24261897065545,-9.504547119140625],

// Turn North at end of coast road

[53.242208060911366,-9.504032135009766],
[53.25443093862203,-9.508495330810547],
[53.26192727859246,-9.514331817626953],
[53.264904912034204,-9.518451690673828],
[53.27075689767349,-9.522056579589844],
[53.2772239499918,-9.530982971191406],

// Costello

[53.28800019647412,-9.549179077148438],
[53.29928668308589,-9.552955627441406],
[53.3095445378531,-9.554328918457031],
[53.32246592648425,-9.545745849609375],
[53.33804842797028,-9.547119140625],
[53.350141445696984,-9.540939331054688],
[53.36899151145959,-9.542312622070312],
[53.38517132750102,-9.552955627441406],

// Screebe

[53.41219224211108,-9.53887939453125],
[53.423855060571064,-9.54986572265625],
[53.42902046224041,-9.54437255859375],
[53.45601353425455,-9.540424346923828]

// Maam Cross
];


// Maam cross to Kylemore
segment[1] = [
[53.45601353425455,-9.540424346923828],

[53.46434315862569,-9.545402526855469],
[53.47476566231431,-9.544715881347656],
[53.48538989384905,-9.548492431640625],
[53.496828398894436,-9.565315246582031],
[53.515205247812005,-9.560508728027344],

// Maam Village, turn left go west

[53.530309133364725,-9.587631225585938],
[53.53459439022722,-9.610977172851562],
[53.582111242944066,-9.670028686523438],
[53.58557604899167,-9.682731628417969],
[53.5957650089208,-9.693374633789062],

// Leenane Village

[53.594746223481366,-9.702301025390625],
[53.60004363950399,-9.731826782226562],
[53.595561253798245,-9.766502380371094],
[53.58720644767799,-9.7723388671875],
[53.57966532649166,-9.78607177734375],
[53.572734461292164,-9.796028137207031],
[53.572734461292164,-9.806671142578125],
[53.56457904753257,-9.83001708984375]

];



// Kylemore to Recess via Clifden
segment[2] = [
[53.56457904753257,-9.83001708984375],

[53.56442611850372,-9.848384857177734],
[53.55830850393589,-9.88443374633789],
[53.561469381929676,-9.924774169921875],
[53.54943639126142,-9.965801239013672],
[53.543724621971336,-9.977130889892578],
[53.54188853242615,-10.027942657470703],
[53.52444170940724,-10.048198699951172],
[53.49003715860239,-10.020561218261719],

// Clifden 
[53.4891690269392,-10.019187927246094],
[53.47752413195796,-9.890785217285156],
[53.46199263259523,-9.796714782714844],
[53.45626906849953,-9.781608581542969],
[53.46628479936206,-9.754142761230469]
];

// Kylemore to Recess via Inagh Valley (1130 tour)
segment[3] = [
[53.56457904753257,-9.83001708984375],

[53.55356674410732,-9.807357788085938],
[53.54785553226706,-9.788475036621094],
[53.5347984392613,-9.771995544433594],
[53.52683979828348,-9.749336242675781],
[53.51234715013561,-9.732170104980469],
[53.492947823329835,-9.737319946289062],
[53.46679574269017,-9.752082824707031]
];

// Recess to Maam Cross
segment[4] = [

[53.46679574269017,-9.752082824707031],

[53.46536508587308,-9.693374633789062],
[53.453304776718916,-9.654579162597656],
[53.457393400909694,-9.598617553710938],
[53.45146476740151,-9.57183837890625],
[53.45637128176698,-9.5416259765625]
];

// Maam Cross to Galway via Oughterard
segment[5] = [
[53.45601353425455,-9.540424346923828],

[53.45391809544313,-9.4976806640625],
[53.44287700317514,-9.463691711425781],
[53.440832041503604,-9.449272155761719],
[53.42099080500762,-9.399490356445312],
[53.42774195592149,-9.317779541015625],

// Oughterard

[53.422422956909095,-9.297866821289062],
[53.4019590658484,-9.274177551269531],
[53.3898807515603,-9.246368408203125],
[53.379847003377186,-9.250144958496094],
[53.369401202898764,-9.229202270507812],
[53.310365059781184,-9.141998291015625],
[53.30277463019688,-9.103889465332031],
[53.29169428400564,-9.082260131835938],

// Westwood Hotel 

[53.28825674065113,-9.069900512695312],
[53.2768903561471,-9.06320571899414],
[53.27540198265747,-9.056596755981445],
[53.27583823542862,-9.054150581359863],
[53.27393922028594,-9.051146507263184],
[53.27655675969879,-9.047412872314453],
[53.27524801002816,-9.045782089233398]

// Tourist office via Cathedral, Eglinton St

];

/*
 * Burren tours start at segment[6]
 */
 
segment[6] = [

// Tourist Office

[53.27524801002816,-9.045867919921875],
[53.27617183748472,-9.041748046875],
[53.282176229283294,-9.033637046813965],
[53.27699300068432,-9.008145332336426],
[53.274118860466274,-8.994498252868652],
[53.27591522074958,-8.979992866516113],
[53.27932809731428,-8.972611427307129],
[53.27812207432504,-8.94111156463623],
[53.27704432286048,-8.926692008972168],

// Roundabout @ Oranmore


[53.27198879259303,-8.917808532714844],
[53.26295407216514,-8.923301696777344],
[53.236865875206114,-8.881759643554688],
[53.20788317698886,-8.867683410644531],

// Kilcolgan	

[53.17594868587775,-8.918495178222656],
[53.14610110597345,-8.917808532714844],
[53.138687455935994,-8.936519622802734],


// Kinvarra

[53.13853299128651,-8.938064575195312],
[53.14471114406023,-8.982009887695312],
[53.13976869293118,-9.019088745117188],
[53.15088840824351,-9.058914184570312],
[53.147593977922504,-9.0802001953125],
[53.134825673075575,-9.065093994140625],
[53.12246563507,-9.069900512695312],
[53.13770917044239,-9.103546142578125],
[53.11587216116045,-9.14886474609375],

// Ballyvaughan

[53.10350667171587,-9.160537719726562],
[53.0894881516915,-9.157791137695312],
[53.08082737207479,-9.163970947265625],
[53.07629007771122,-9.1571044921875],
[53.005281082080714,-9.12689208984375],
[52.98709720000118,-9.140625],

// Lemnagh Castle

[52.983996910763665,-9.183883666992188],
[52.99123057287246,-9.19281005859375],
[52.99061059215795,-9.214439392089844],
[53.012098063815756,-9.222335815429688],
[53.02366381157404,-9.261817932128906],
[53.025522303308485,-9.287910461425781],

// Lisdoonvarna

[53.00693378258219,-9.360694885253906],
[52.99309046161807,-9.399833679199219],
[52.98068969032323,-9.422149658203125]

// Cliffs of Moher
];

segment[7] = [
[53.00755352,-9.3548583],
[53.016848656,-9.376487731],
[53.04616682,-9.340438842],
[53.06143740,-9.363784790],
[53.09629182,-9.304733276],
[53.15397670,-9.26422119],
// Black head
[53.11587216,-9.149208068]
// Ballyvaughan
];

segment[8] = [
// Tourist Office
[53.27527367,-9.045825004],
[53.27506837,-9.04644727],
[53.27414452,-9.047863483],
[53.275106867,-9.049172401],
[53.2745166,-9.05048131],
[53.27431133,-9.050620794],
[53.27393922,-9.051264524],
[53.27508120,-9.053506851],
[53.27587031,-9.054204225],
[53.27562010,-9.055083990],
[53.275761,-9.055309295],
[53.27544047,-9.056446552],
[53.27544689,-9.056864976],
[53.275818989,-9.057658910],
[53.275748419,-9.058560132],
[53.277005831,-9.063527584],
// UCHG

[53.277051,-9.063764],
[53.275023,-9.063270],
[53.272804,-9.062326],
[53.271803,-9.063013],
[53.269429,-9.065695],
[53.267825,-9.066017],



[53.266464,-9.070437],
[53.265361,-9.072089],
[53.264231,-9.072475],
[53.263025,-9.072411],
[53.261741,-9.074192],
[53.259482,-9.076402],


// Salthill Roundabout

[53.259270,-9.074235],
[53.263455,-9.069428],
[53.263172,-9.058743],
[53.264481,-9.055953],
[53.267382,-9.054408],
[53.269692,-9.056511],
[53.270795,-9.053893],
[53.270333,-9.052734],
[53.273285,-9.048486],
[53.273618,-9.049044],
[53.274183,-9.047756]

// Eyre Square
];


var POI = [

// Connemara Tours

// 0
{lat: 53.275145, lon: -9.045964, name: "Start of Tour", desc: "Start of tour at Galway Tourist Office"
},

// 1
{lat: 53.428457, lon: -9.318809, 
name: "Oughterard", 
desc:"A picturesque village with many pubs and gift shops."
},

// 2 
{lat: 53.420300, lon: -9.377346, 
name: "Glengowla Mines", 
desc:"This Connemara mine, abandoned in 1865, is a unique reminder of the 19th century methods of ore extraction and processing. The tour explores large marble chambers and caverns studded with lead and silver pyrite and veins of calcite and quartz."
},

// 3
{lat: 53.455962, lon: -9.540681, name: "Maam Cross", 
desc: "Maam Cross is major cross roads in the heart of Connemara. Once the site of a railway station on the Galway-Clifden line. Here we have a break to stretch legs and visit gift and coffee shop."},

// 4
{lat: 53.595637, lon: -9.695520, name: "Leenane Village", 
img: "TheField",
desc: "Leenane Village, the famous location of 'The Field (1990)' movie by Jim Sheridan."
},

// 5
{lat: 53.560118, lon: -9.875764, 
name: "Kylemore Abbey", 
desc: "Kylemore Abbey is the home of the Benedictine Order of Nuns in Ireland. A visit to Connemara is not complete without experiencing the beauty and tranquility that is Kylemore Abbey & Garden",
img: "KylemoreAbbey"},

// 6
{lat: 53.489143, lon: -10.020046, 
name: "Clifden", 
desc: "Founded at the 1800s, Clifden is often regarded as the 'Capital of Connemara'. Famous for being the location of the first trans-atlantic wireless link and the landing site of Alcock and Browne's first trans-atlantic flight (1919).",
img: "Clifden"
},

// 7
{lat: 53.513367, lon: -9.734745, name: "Inagh Valley", 
desc: "Inagh Valley desc here"
},


// Burren Tours
// 8
{
lat: 53.142574, lon: -8.9246749, name: "Dunguaire Castle",
desc: "Dunguarie Castle was built in 1520 by the O'Hynes clan on the picturesque shores of Galway Bay near Kinvara village. The castle was restored in several phases during the 1900s and is open to visitors from April through to October. ",
img: "DunguaireCastle"
},

// 9
{lat: 53.138687, lon: -8.936862, name: "Kinvarra Village",
desc: "Beautiful harbour town, famous for the annual Crinni� na mBad boat festival.",
img: "Kinvarra"
},

// 10
{lat: 53.089462, lon: -9.143629, name: "Aillwee Cave",
desc: 
"This cave features an underground river, waterfall, the remains of a bear (long extinct in Ireland) as well as some very impressive stalactites and stalagmites. <b>Note: the 11.30am tour does not visit this location.</b>",
img: "AillweeCave"
},

// 11
{lat: 53.048717, lon: -9.1399759, name: "Poulnabrone Dolmen",
desc: "This is Ireland's most famous dolmen. It was excavated in 1968 and found to contain the remains of between 16 and 22 adults and 6 juveniles, including a newborn baby. Radiocarbon dating suggests that the burials took place 3800 and 3200 BC.",
img: "Poulnabrone"
},

// 12
{lat: 52.987710, lon: -9.139997, name: "Lemenagh Casltle", img: "LemenaghCastle",
desc: "This structure dates from 1480s. Originally a castle, it was upgraded to a fortified house  in the 1640s. It was one of the principal strongholds of the O'Briens."
},

// 13
{lat: 52.971645, lon: -9.425926, name: "Cliffs of Moher", 
desc: "The Cliffs of Moher stretch for 8km & rise up to 214 metres above the Atlantic Ocean.",
img: "CliffsOfMoher"
},


// 14
{lat: 53.016642, lon: -9.377174, name: "Doolin", desc: "Doolin desc"
},

// 15
{lat: 53.153770, lon: -9.264822, name: "Black Head Lighthouse",
img: "BlackHead", 
imgCredit: "Wikimedia Commons, http://commons.wikimedia.org/wiki/Image:Burren_lighthouse.JPG"
},

// 16
{lat: 53.274327, lon: -9.049172, name: "Eyre Square"
},

//17
{lat: 53.275797, lon: -9.055138, name: "Court House"
},

// 18
{lat: 53.277663, lon: -9.061961, name: "University"
},

// 19
{lat: 53.271216, lon: -9.066006, name: "Saint Mary's College"
},

// 20
{lat: 53.259440, lon: -9.076273, name: "Salthill"},

// 21
{lat: 53.265771, lon: -9.058056, name: "Claddagh Village"},

//22 
{lat: 53.269968, lon: -9.054108, name: "Spanish Arch"}


];

var arrows = [
[53.245289,-9.306106, 270], // 0  Spiddal W
[53.359362,-9.541625, 0], // 1  Screeb N
[53.535002,-9.602394, 315], // 2 Road to Maam, NW
// [53.516838,-9.735260, 135], // 3 Inagh Valley
[53.538471,-9.774398, 135], // 3 Inagh Valley
[53.453918,-9.646682, 90], // 4 East to Maam Cross
[53.346657,-9.194869, 135], // 5 Moycullen SE
[53.346657,-9.194869, 315], // 6 Moycullen NW
[53.512347,-10.08, 180], // 7 Clifden S
[53.059374,-9.2, 180], // 8 Poulnabrone road W
[53.078352,-9.340782, 45], // 9 Road to Black Head
 
[53.274613,-9.048486, 315], // 10 Eyresquare NW
[53.274831,-9.052949, 315], // 11 Eglinton St NW
[53.276416,-9.063978, 180], // 12 UCHG S
[53.270770,-9.064236, 225],  // 13 St. Marys SW
[53.261067,-9.071875, 45], // 14 Whitestrand Road NE
[53.263686,-9.056854, 45], // 15 Claddagh NE
[53.271719,-9.050975, 45] // 16 Merchant's Road NE
];


