// 'latitude': 50.6, 'longitude': -4.075

if ((mapnumber == 0) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('285',1,51.21053,-2.643442,'Wells Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('398',1,51.4959,-3.2175,'Llandaff Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('610',2,51.1463,-2.7147,'Glastonbury Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('698',0,51.5767,-3.2192,'Caerphilly Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('783',2,51.157476,-3.363526,'Cleeve Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1038',1,51.4517,-2.6001,'Bristol Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1087',1,50.7221,-3.53,'Exeter Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1203',0,51.21079,-2.378602,'Nunney Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1205',0,51.3172,-2.2869,'Farleigh Hungerford Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1359',1,51.3818,-2.3599,'Bath Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1779',0,50.94955,-2.502458,'Sherborne Old Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1892',0,51.4819,-3.1817,'Cardiff Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2701',0,50.992786,-3.485462,'Bampton Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('2973',2,50.8432,-2.911409,'Forde Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3169',2,50.664725,-2.598341,'Abbotsbury Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3179',0,50.14722,-5.047777,'Pendennis Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3182',0,51.593135,-2.742327,'Caldicot Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3186',0,50.42178,-4.67047,'Restormel Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3187',2,50.11709,-5.47779,'St. Michael\'s Mount');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3188',0,50.15582,-5.02407,'St. Mawes Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3191',0,51.57521,-4.1703,'Penrice Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3192',0,51.57711,-4.00263,'Oystermouth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3205',0,51.08086,-4.06287,'Barnstaple Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3206',0,50.449,-3.63664,'Berry Pomeroy Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3207',0,51.12896,-3.00487,'Bridgwater Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3208',0,50.63664,-4.36214,'Launceston Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3209',0,50.66694,-4.7575,'Tintagel Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3327',0,50.85092,-3.511427,'Bickleigh Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3358',0,50.222438,-5.244834,'Carn Brea Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3366',0,50.84727,-2.637719,'Chelborough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3368',0,50.73465,-2.817568,'Chideock Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3376',0,51.52201,-3.553,'Coity Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3380',0,50.89286,-2.824601,'Crewkerne Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3395',0,51.1811,-3.444,'Dunster Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3406',0,50.725894,-3.529779,'Exeter Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3426',0,50.63841,-2.206408,'Lulworth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3427',0,50.64379,-4.1096,'Lydford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3430',0,51.16227,-4.660081,'Marisco Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3431',0,50.7758,-2.846651,'Marshwood Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3433',0,50.94929,-2.723104,'Montacute Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3434',0,50.93613,-3.037418,'Neroche Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3435',0,51.50912,-3.583549,'Newcastle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3437',0,50.73101,-4.007776,'Okehampton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3444',0,51.57651,-4.102557,'Penard Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3452',0,50.383679,-4.048382,'Plympton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3453',0,50.76075,-2.680423,'Powerstock Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3468',0,51.14986,-3.163732,'Stowey Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3473',0,50.43205,-3.69095,'Totnes Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3474',0,50.40043,-4.237704,'Trematon Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3494',2,50.396712,-4.30949,'St. Germans Priory');
}
}
// 'latitude': 52.05, 'longitude': -4.075

if ((mapnumber == 1) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('281',1,52.18854,-2.220832,'Worcester Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('290',1,51.88124,-5.269094,'St. David\'s Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('398',1,51.4959,-3.2175,'Llandaff Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('545',0,51.8761,-2.6173,'Goodrich Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('547',1,52.0544,-2.716,'Hereford Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('556',1,51.8675,-2.2468,'Gloucester Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('696',0,51.6438,-2.6763,'Chepstow Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('697',0,51.67682,-4.920154,'Pembroke Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('698',0,51.5767,-3.2192,'Caerphilly Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('790',2,51.9702,-2.8093,'Kilpeck');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('791',0,52.36742,-2.72339,'Ludlow Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('794',2,52.63553,-2.528738,'Buildwas Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('822',2,51.69499,-2.678504,'Tintern Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('825',2,51.96865,-2.89355,'Abbey Dore');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('826',2,52.2751,-3.839375,'Strata Florida');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('827',2,52.59783,-2.557432,'Wenlock Priory');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('831',0,51.6889,-2.4571,'Berkeley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('941',0,51.76867,-2.851192,'Raglan Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('942',0,51.84634,-2.901433,'White Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('943',0,51.91537,-2.866,'Grosmont Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('944',0,51.87861,-2.790219,'Skenfrith Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1038',1,51.4517,-2.6001,'Bristol Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1390',0,52.1491,-3.3995,'Builth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1520',0,52.5314,-2.4186,'Bridgnorth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1607',0,52.43037,-2.829469,'Stokesay Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1778',0,52.4216,-3.0337,'Clun Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1892',0,51.4819,-3.1817,'Cardiff Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2046',0,51.819633,-3.017528,'Abergavenny Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2362',0,51.7396,-4.3056,'Kidwelly Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2365',0,51.7661,-4.3911,'Llansteffan Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('2421',2,51.944884,-3.036185,'Llanthony Priory');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2710',0,52.056982,-4.634169,'Cilgerran Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2714',0,52.395835,-2.931867,'Hopton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2717',0,51.672481,-4.694684,'Tenby Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2721',0,51.645481,-4.799835,'Manorbier Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2784',0,52.413934,-4.090636,'Aberystwyth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2789',0,51.6972,-4.8269,'Carew Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2792',0,51.802646,-4.969796,'Haverfordwest Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3156',2,51.6609,-3.8265,'Neath Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3181',0,52.61286,-2.689676,'Acton Burnell Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3182',0,51.593135,-2.742327,'Caldicot Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3183',0,51.61276,-4.19937,'Weobley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3190',0,51.822344,-4.9796,'LLawhaden Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3191',0,51.57521,-4.1703,'Penrice Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3192',0,51.57711,-4.00263,'Oystermouth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3298',0,51.79505,-4.470926,'Abercowy Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3326',0,51.64463,-2.200834,'Beverston Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3328',0,52.49559,-2.998616,'Bishop\'s Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3337',0,52.347663,-2.925781,'Brampton Bryan Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3339',0,52.09393,-2.972104,'Bredwardine Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3345',0,52.453027,-3.226565,'Bryn Amlwg Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3357',0,52.0815,-4.6606088,'Cardigan Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3362',0,52.664047,-2.980755,'Caus Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3367',0,52.457754,-2.858783,'Cheney Longville Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3374',0,52.10443,-3.106658,'Clifford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3376',0,51.52201,-3.553,'Coity Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3383',0,52.32422,-3.245661,'Cymaron Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3385',0,52.5945,-4.046145,'Cynfal Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3389',0,51.876837,-4.018306,'Dinefwr Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3390',0,52.238894,-4.206126,'Dinierth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3396',0,51.9615,-2.421,'Dymock Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3405',0,51.95336,-2.897758,'Ewyas Harold Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3410',0,52.10954,-2.483274,'Frome Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3420',0,51.9702,-2.8093,'Kilpeck Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3424',0,51.76915,-4.462263,'Laugharne Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3428',0,51.71991,-2.55583,'Lydney Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3432',0,51.81255,-2.716533,'Monmouth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3435',0,51.50912,-3.583549,'Newcastle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3442',0,52.10693,-3.217693,'Painscastle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3444',0,51.57651,-4.102557,'Penard Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3445',0,52.00237,-4.267,'Pencader Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3454',0,52.6498,-3.161,'Powis Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3461',0,52.3004,-3.514838,'Rhayader Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3476',0,51.88337,-3.186941,'Tretower Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3478',0,51.705086,-2.90335,'Usk Castle');
}
}
// 'latitude': 53.05, 'longitude': -3.61

if ((mapnumber == 2) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 0))
{
AddLocation('699',0,53.2645,-4.0917,'Beaumaris Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('700',0,53.1394,-4.2768,'Caernarvon Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('794',2,52.63553,-2.528738,'Buildwas Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('795',2,52.72494,-2.38993,'Lilleshall Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('817',0,53.1289,-2.6934,'Beeston Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('827',2,52.59783,-2.557432,'Wenlock Priory');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('829',0,52.8599,-4.11,'Harlech Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1042',1,53.19189,-2.89044,'Chester Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1382',0,53.29012,-3.466517,'Rhuddlan Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1383',0,53.2513,-3.13027,'Flint Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1385',0,53.0779,-2.8802,'Holt Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1386',0,53.11197,-3.310147,'Ruthin Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1388',0,53.28013,-3.82581,'Conway Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1389',0,53.1807,-3.0198,'Hawarden Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1520',0,52.5314,-2.4186,'Bridgnorth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1894',0,52.71092,-2.75189,'Shrewsbury Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2016',0,53.1166,-4.1142,'Dolbadarn Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2163',0,52.87312,-3.004296,'Whittington Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('2164',2,52.98875,-3.18649,'Valle Crucis Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2273',0,53.0526,-3.9081,'Dolwyddelan Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2306',0,52.9353,-3.0891,'Chirk Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2416',0,53.180544,-3.420695,'Denbigh Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3181',0,52.61286,-2.689676,'Acton Burnell Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3185',0,53.333235,-2.6956,'Halton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3210',0,53.19993,-3.06667,'Ewloe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3296',0,53.292608,-4.077219,'Aber Lleiniog Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3302',0,53.13038,-2.869794,'Aldford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3362',0,52.664047,-2.980755,'Caus Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3381',0,52.916021,-4.232481,'Cricceth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3384',0,52.75818,-3.880417,'Cymmer Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3385',0,52.5945,-4.046145,'Cynfal Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3388',0,53.29749,-3.830502,'Deganwy Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3402',0,52.9055,-2.889071,'Ellesmere Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3454',0,52.6498,-3.161,'Powis Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3455',0,53.338498,-3.393605,'Prestatyn Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3457',0,53.12179,-2.93537,'Pulford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3475',0,52.96529,-2.200953,'Trentham Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3492',2,53.389527,-3.01106,'Birkenhead Priory');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3493',2,53.3423,-2.6799,'Norton Priory');
}
}
// 'latitude': 51.2, 'longitude': -1.435

if ((mapnumber == 3) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('480',1,51.0647,-1.7973,'Salisbury Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('489',0,51.26165,-0.960903,'Odiham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('527',0,50.6404,-2.0593,'Corfe Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('556',1,51.8675,-2.2468,'Gloucester Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('619',2,51.99084,-2.160148,'Tewkesbury Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('636',1,51.06102,-1.313583,'Winchester Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('660',2,52.09111,-1.946557,'Evesham Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('661',2,51.9684,-1.928,'Hailes Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('684',1,51.0934,-1.8057,'Old Sarum');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('761',0,50.6878,-1.312,'Carisbrooke Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('763',0,50.8376,-1.1138,'Porchester Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('785',0,51.03611,-2.089228,'Old Wardour Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('806',0,51.26025,-1.623042,'Ludgershall Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('841',2,51.2003,-0.759,'Waverley Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('916',2,52.0521,-1.0783,'Biddlesden Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('947',0,50.8562,-0.5536,'Arundel Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1014',1,50.8363,-0.780937,'Chichester Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1205',0,51.3172,-2.2869,'Farleigh Hungerford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1206',0,51.4199,-1.3384,'Donnington Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1348',0,51.60287,-1.123516,'Wallingford Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1359',1,51.3818,-2.3599,'Bath Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1363',0,51.2188,-0.8029,'Farnham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1538',0,51.48365,-0.604464,'Windsor Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('1597',2,51.84867,-1.356403,'Woodstock');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2915',0,51.35078,-1.998515,'Devizes Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3167',2,50.99,-1.501,'Romsey Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3306',0,50.90915,-0.540636,'Amberley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3309',0,51.86965,-1.559876,'Ascott D\'Oilly Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3310',0,51.64748,-1.930578,'Ashton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3312',0,52.09192,-1.113968,'Astwell Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3318',0,51.26868,-1.051765,'Basing House');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3324',0,51.76365,-0.55962,'Berkhamsted Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3326',0,51.64463,-2.200834,'Beverston Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3330',0,50.9525,-1.215527,'Bishop\'s Waltham Palace');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3335',0,52.05843,-1.552191,'Brailes Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3340',0,51.8129,-2.086987,'Brimpsfield Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3344',0,52.04063,-1.391994,'Broughton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3352',0,50.82,-1.308604,'Calshot Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3361',0,52.093549,-0.835471,'Castlethorpe');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3370',0,50.733394,-1.775013,'Christchurch Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3387',0,51.980924,-1.315687,'Deddington Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3392',0,50.99172,-1.743481,'Downton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3403',0,52.06107,-2.030585,'Elmley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3408',0,51.65931,-1.572036,'Faringdon Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3418',0,51.6903,-1.457457,'Hinton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3426',0,50.63841,-2.206408,'Lulworth Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3429',0,51.58451,-2.098095,'Malmesbury Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3440',0,51.75218,-1.262598,'Oxford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3469',0,51.97803,-1.46127,'Swerford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3482',0,51.059194,-1.31018,'Winchester Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3484',2,51.882,-1.616,'Bruern Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3487',2,50.82186,-1.45,'Beaulieu Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3489',2,51.886,-0.517572,'Dunstable Priory');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3490',2,51.456288,-0.965058,'Reading Abbey');
}
}
// 'latitude': 51.2, 'longitude': 0.45

if ((mapnumber == 4) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('271',1,51.2796,1.0829,'Canterbury Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('277',1,51.38877,0.503685,'Rochester Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('278',1,51.7509,-0.34272,'St. Albans Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('283',1,51.5143,-0.0976,'St. Paul\'s Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('520',2,51.4997,-0.1284,'Westminster Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('637',0,51.1273,1.3229,'Dover Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('680',2,50.9151,0.4873,'Battle Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('683',2,51.6875,-0.0039,'Waltham Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('756',0,50.81941,0.332539,'Pevensey Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('765',0,51.3897,0.502298,'Rochester Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('816',0,51.5076,-0.0763,'Tower of London');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('947',0,50.8562,-0.5536,'Arundel Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('948',0,51.0021,0.5427,'Bodiam Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('951',0,51.89059,0.90308,'Colchester Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1101',0,52.09452,1.530099,'Orford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1208',0,51.2493,0.6294,'Leeds Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1229',0,50.87351,0.008484,'Lewes Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1342',0,51.9928,0.6014,'Hedingham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1391',0,50.8691,0.3393,'Herstmonceux Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1538',0,51.48365,-0.604464,'Windsor Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1896',0,51.41689,0.749738,'Queenborough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2927',0,51.47694,0,'Greenwich Palace');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2943',0,51.79546,-0.080055,'Hertford Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('2976',2,51.40377,-0.340203,'Hampton Court Palace');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3202',0,51.37042,0.21341,'Eynsford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3204',0,51.18722,0.11365,'Hever Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3299',0,51.20236,-0.406856,'Abinger Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3303',0,51.29328,0.511395,'Allington Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3306',0,50.90915,-0.540636,'Amberley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3307',0,51.97683,0.042719,'Anstey Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3322',0,51.89586,-0.116474,'Benington Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3324',0,51.76365,-0.55962,'Berkhamsted Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3329',0,51.871935,0.162909,'Bishop\'s Stortford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3331',0,51.23925,-0.10617,'Bletchingley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3336',0,50.88365,-0.316815,'Bramber Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3351',0,52.02416,-0.401142,'Cainhoe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3354',0,50.93302,0.733898,'Camber Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3355',0,51.83696,0.312183,'Canfield Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3356',0,51.2796,1.0829,'Canterbury Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3369',0,51.242997,0.959893,'Chilham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3371',0,52.076899,0.582071,'Clare Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3386',0,51.219443,1.403571,'Deal Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3397',0,51.9042,0.3375,'Easton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3409',0,51.09764,1.160713,'Folkestone Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3413',0,50.85637,0.584471,'Hastings Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3422',0,50.975581,-0.344004,'Knepp Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3438',0,51.70512,0.247558,'Ongar Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3451',0,51.80342,0.414906,'Pleshey Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3459',0,51.23905,-0.207893,'Reigate Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3472',0,51.19653,0.272812,'Tonbridge Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3479',0,52.0254,0.24026,'Walden Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3480',0,51.200556,1.401891,'Walmer Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3489',2,51.886,-0.517572,'Dunstable Priory');
}
}
// 'latitude': 52.75, 'longitude': -1.435

if ((mapnumber == 5) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('270',1,53.2344,-0.5373,'Lincoln Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('281',1,52.18854,-2.220832,'Worcester Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('300',0,52.3481,-1.5933,'Kenilworth Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('495',1,52.6852,-1.8309,'Lichfield Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('529',0,52.7467,-1.4652,'Ashby de la Zouch Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('619',2,51.99084,-2.160148,'Tewkesbury Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('630',0,52.27882,-1.586617,'Warwick Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('660',2,52.09111,-1.946557,'Evesham Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('661',2,51.9684,-1.928,'Hailes Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('807',2,53.4022,-1.1826,'Roche Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('808',0,53.4843,-1.2264,'Conisbrough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('815',0,53.07721,-0.812471,'Newark Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('901',2,52.9547,-1.9047,'Croxden Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('912',2,52.7744,-1.2573,'Garendon Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('914',2,52.3164,-1.9339,'Bordesley Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('916',2,52.0521,-1.0783,'Biddlesden Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('919',2,52.33886,-1.534688,'Stoneleigh Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1041',1,52.1096,-2.078804,'Pershore Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1131',1,53.07792,-0.955631,'Southwell Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1895',0,52.79656,-2.142926,'Stafford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2045',0,52.94897,-1.154605,'Nottingham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2050',0,52.5151,-2.0795,'Dudley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2920',0,53.23429,-0.540707,'Lincoln Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3305',0,52.986021,-1.893541,'Alton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3311',0,52.50161,-1.540338,'Astley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3312',0,52.09192,-1.113968,'Astwell Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3314',0,52.369685,-1.50004,'Baginton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3319',0,52.29371,-1.77122,'Beaudesert Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3321',0,52.894331,-0.782472,'Belvoir Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3323',0,52.32266,-1.904589,'Beoley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3333',0,53.23127,-1.297367,'Bolsover Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3335',0,52.05843,-1.552191,'Brailes Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3338',0,52.37962,-1.402042,'Brandon Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3341',0,52.41354,-1.356007,'Brinklow Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3344',0,52.04063,-1.391994,'Broughton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3348',0,52.69741,-0.678542,'Burley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3353',0,52.41852,-1.451509,'Caludon Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3361',0,52.093549,-0.835471,'Castlethorpe');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3363',0,52.982437,-2.074617,'Caverswall Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3365',0,52.854043,-1.985961,'Chartley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3387',0,51.980924,-1.315687,'Deddington Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3403',0,52.06107,-2.030585,'Elmley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3411',0,53.19417,-1.649717,'Haddon Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3419',0,52.21391,-1.976537,'Inkberrow Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3439',0,53.49234,-0.786607,'Owston ferry Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3448',0,53.33999,-1.777414,'Peveril Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3462',0,52.5136,-0.72385,'Rockingham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3467',0,52.79656,-2.142926,'Stafford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3469',0,51.97803,-1.46127,'Swerford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3475',0,52.96529,-2.200953,'Trentham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3477',0,52.859568,-1.690623,'Tutbury Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3483',0,52.291632,-0.515037,'Yelden Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3485',2,52.412105,-1.409107,'Combe Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3491',2,52.62048,-1.107151,'Thorney Abbey');
}
}
// 'latitude': 52.75, 'longitude': 0.8

if ((mapnumber == 6) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('270',1,53.2344,-0.5373,'Lincoln Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('273',1,52.3986,0.264,'Ely Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('275',1,52.6317,1.3006,'Norwich Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('629',1,52.56149,-0.23208,'Peterborough Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('920',2,53.12762,-0.058567,'Revesby Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('955',0,52.224,1.3456,'Framlingham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1101',0,52.09452,1.530099,'Orford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1342',0,51.9928,0.6014,'Hedingham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1346',0,52.62834,1.296553,'Norwich Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1392',0,53.10252,-0.19414,'Tattershall Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1696',0,52.5246,-0.4361,'Fotheringay Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1866',0,52.7933,0.4694,'Castle Rising');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('1868',2,52.7005,0.6832,'Castle Acre Priory');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2920',0,53.23429,-0.540707,'Lincoln Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('2922',2,52.67618,-0.16444,'Crowland Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3175',0,52.211953,0.11479,'Cambridge Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3176',0,52.66423,0.16011,'Wisbech Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3201',0,52.32017,1.149868,'Eye Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3211',0,52.650404,1.70175,'Caister Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3300',0,52.70387,0.692299,'Acre Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3307',0,51.97683,0.042719,'Anstey Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3313',0,52.899128,1.152095,'Baconsthorpe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3317',0,52.454894,-0.457351,'Barnwell Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3332',0,53.165106,0.016992,'Bolingbroke Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3346',0,52.455984,1.436105,'Bungay Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3348',0,52.69741,-0.678542,'Burley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3351',0,52.02416,-0.401142,'Cainhoe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3371',0,52.076899,0.582071,'Clare Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3372',0,52.58183,1.445136,'Claxton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3397',0,51.9042,0.3375,'Easton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3398',0,52.3757,0.3867,'Eaton socon Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3414',0,52.223,0.9645,'Haughley Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3458',0,52.2915,0.096759,'Rampton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3470',0,52.41106,0.755303,'Thetford Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3479',0,52.0254,0.24026,'Walden Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3483',0,52.291632,-0.515037,'Yelden Castle');
}
}
// 'latitude': 54.25, 'longitude': -1.75

if ((mapnumber == 7) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('530',1,54.13569,-1.520917,'Ripon Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('537',2,53.8387,-0.4256,'Beverley Minster');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('658',2,54.1108,-1.5824,'Fountains Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('685',1,53.96329,-1.083921,'York Minster');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('695',2,54.25743,-1.115792,'Rievaulx Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('807',2,53.4022,-1.1826,'Roche Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('808',0,53.4843,-1.2264,'Conisbrough Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('843',2,54.2658,-1.7359,'Jervaulx Abbey');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1015',1,54.7743,-1.5779,'Durham Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1039',1,54.8948,-2.9389,'Carlisle Cathedral');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('1086',2,54.20321,-1.159441,'Byland Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('1663',2,54.48913,-0.610001,'Whitby Abbey');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1709',0,54.28406,-1.806867,'Middleham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1893',0,54.7751,-1.5776,'Durham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2020',0,54.40148,-1.735021,'Richmond Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2307',0,54.28769,-0.391571,'Scarborough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2309',0,53.95605,-1.077984,'York Castle (Clifford\'s Tower)');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2613',0,53.696,-1.3048,'Pontefract Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3189',0,54.897223,-2.94207,'Carlisle Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3203',0,54.480195,-3.529643,'Egremont Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3224',0,54.5742,-2.4888,'Appleby Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3225',0,54.52176,-2.3244,'Brough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3304',0,53.62232,-1.77167,'Almondbury Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3316',0,54.543479,-1.925711,'Barnard Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3334',0,54.322142,-1.949515,'Bolton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3343',0,54.65391,-2.72,'Bougham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3349',0,54.01641,-0.882823,'Buttercrambe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3350',0,54.97639,-3.521855,'Caerlaverock Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3364',0,53.831569,-1.129685,'Cawood Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3375',0,53.86996,-2.393847,'Clitheroe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3416',0,54.24535,-1.063873,'Helmsey Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3421',0,54.00695,-1.468993,'Knarsborough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3439',0,53.49234,-0.786607,'Owston ferry Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3447',0,54.41837,-2.337449,'Pendragon Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3449',0,54.24994,-0.775,'Pickering Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3450',0,54.062217,-3.173408,'Piel Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3456',0,54.96515,-1.857839,'Prudhoe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3464',0,54.087774,-1.005,'Sheriff Hutton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3465',0,53.963618,-2.015731,'Skipton Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3486',2,54.13541,-3.198142,'Furness Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3496',2,54.44402,-3.46494,'Calder Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3497',2,54.84522,-3.283165,'Holme Cultram Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3498',2,54.965945,-2.695067,'Lanercost Priory');
}
}
// 'latitude': 55.3, 'longitude': -3.25

if ((mapnumber == 8) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 0))
{
AddLocation('946',0,55.4169,-1.7062,'Alnwick Castle');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1015',1,54.7743,-1.5779,'Durham Cathedral');
}
if ((loctype == -1) || (loctype == 1))
{
AddLocation('1039',1,54.8948,-2.9389,'Carlisle Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1893',0,54.7751,-1.5776,'Durham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('2494',0,55.609281,-1.710582,'Bamburgh Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3189',0,54.897223,-2.94207,'Carlisle Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3224',0,54.5742,-2.4888,'Appleby Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3225',0,54.52176,-2.3244,'Brough Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3297',0,55.99875,-3.471858,'Abercorn Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3316',0,54.543479,-1.925711,'Barnard Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3343',0,54.65391,-2.72,'Bougham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3350',0,54.97639,-3.521855,'Caerlaverock Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3378',0,55.55386,-4.523794,'Craigie Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3382',0,55.844363,-2.990861,'Crichton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3391',0,56.045962,-2.778286,'Dirleton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3400',0,55.948966,-3.20147,'Edinburgh Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3412',0,55.336662,-2.1068,'Harbottle Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3436',0,55.71845,-2.1598,'Norham Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3443',0,55.652,-3.215663,'Peebles Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3456',0,54.96515,-1.857839,'Prudhoe Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3481',0,55.34562,-1.612077,'Warkworth Castle');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3497',2,54.84522,-3.283165,'Holme Cultram Abbey');
}
if ((loctype == -1) || (loctype == 2))
{
AddLocation('3498',2,54.965945,-2.695067,'Lanercost Priory');
}
}
// 'latitude': 57.4, 'longitude': -3.75

if ((mapnumber == 9) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1562',0,56.12283,-3.946983,'Stirling Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('1564',0,57.3213,-4.447773,'Urquhart Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3297',0,55.99875,-3.471858,'Abercorn Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3379',0,56.25743,-2.64239,'Crail Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3382',0,55.844363,-2.990861,'Crichton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3391',0,56.045962,-2.778286,'Dirleton Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3393',0,57.687719,-3.361356,'Duffus Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3399',0,57.51347,-4.36546,'Ederdover Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3400',0,55.948966,-3.20147,'Edinburgh Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3436',0,55.71845,-2.1598,'Norham Castle');
}
}
// 'latitude': 53.4, 'longitude': -8.05

if ((mapnumber == 10) || (mapnumber == -1))
{
if ((loctype == -1) || (loctype == 1))
{
AddLocation('290',1,51.88124,-5.269094,'St. David\'s Cathedral');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3360',0,54.7132,-5.8063,'Carrickfergus Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3544',0,54.261062,-5.8486748,'Dundrum Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3545',0,53.55378,-6.79037,'Trim Castle');
}
if ((loctype == -1) || (loctype == 0))
{
AddLocation('3546',0,53.343,-6.26632,'Dublin Castle');
}
}

