<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kenya &#8211; Galago Travel</title>
	<atom:link href="https://galagotravel.co.uk/category/destinations/kenya/feed" rel="self" type="application/rss+xml" />
	<link>https://galagotravel.co.uk/category/destinations/kenya</link>
	<description>Worldwide Wildlife Adventures &#38; African Safaris</description>
	<lastBuildDate>Sun, 02 Jul 2023 19:47:54 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Amboseli</title>
		<link>https://galagotravel.co.uk/destinations/kenya/amboseli</link>
					<comments>https://galagotravel.co.uk/destinations/kenya/amboseli#respond</comments>
		
		<dc:creator><![CDATA[kenny]]></dc:creator>
		<pubDate>Mon, 31 Oct 2022 16:37:45 +0000</pubDate>
				<category><![CDATA[Kenya]]></category>
		<category><![CDATA[Amboseli]]></category>
		<category><![CDATA[Chyulu Hills]]></category>
		<category><![CDATA[Ol Donyo]]></category>
		<guid isPermaLink="false">https://galagotravel.co.uk/?p=213</guid>

					<description><![CDATA[<p>Possibly one of the most iconic National Parks in the world, with its grassy plains accompanied by the towering Mount Kilamanjaro in the backdrop, Amboseli is a firm favourite on anyone’s safari to Kenya. Consisting of sweeping grasslands with scattered acacia trees - aside from its unique location in the shadow Africa’s most famous mountain – [&#8230;]</p>
<p>The post <a href="https://galagotravel.co.uk/destinations/kenya/amboseli">Amboseli</a> appeared first on <a href="https://galagotravel.co.uk">Galago Travel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-213"  class="panel-layout" ><div id="pg-213-0"  class="panel-grid panel-has-style" ><div class="c-row--margin-default c-row--column-default panel-row-style panel-row-style-for-213-0" ><div id="pgc-213-0-0"  class="panel-grid-cell" ><div id="panel-213-0-0-0" class="so-panel widget widget_sow-image-grid panel-first-child panel-last-child" data-index="0" ><div class="so-widget-sow-image-grid so-widget-sow-image-grid-default-3cf8946c8151">

<div class="c-image-grid   no-variation no-layout "><div class="c-image-grid__item  large-4 medium-4 small-12"><div class="crop">

							<div class="c-image-grid__image" 
								style="
									background-position-x: 50%;
									background-position-y: 50%;
									background-image: url(https://galagotravel.co.uk/wp-content/uploads/2022/10/GreatPlains-Kenya-ChyuluHills-14-2-2.webp)
								">
							</div>

						</div></div><div class="c-image-grid__item  large-4 medium-4 small-12"><div class="crop">

							<div class="c-image-grid__image" 
								style="
									background-position-x: 50%;
									background-position-y: 50%;
									background-image: url(https://galagotravel.co.uk/wp-content/uploads/2022/10/GreatPlains-Kenya-ChyuluHills-56-2-2.webp)
								">
							</div>

						</div></div><div class="c-image-grid__item  large-4 medium-4 small-12"><div class="crop">

							<div class="c-image-grid__image" 
								style="
									background-position-x: 50%;
									background-position-y: 50%;
									background-image: url(https://galagotravel.co.uk/wp-content/uploads/2023/01/amboseli-2-1.webp)
								">
							</div>

						</div></div></div></div></div></div></div></div><div id="pg-213-1"  class="panel-grid panel-has-style" ><div class="c-row--margin-large c-row--column-default panel-row-style panel-row-style-for-213-1" ><div id="pgc-213-1-0"  class="panel-grid-cell" ><div id="panel-213-1-0-0" class="so-panel widget widget_sow-editor panel-first-child" data-index="1" ><div class="so-widget-sow-editor so-widget-sow-editor-base">
<div class="c-text no-variation no-layout no-variation ">

	
			<div class="c-text__content"><p>Possibly one of the most iconic National Parks in the world, with its grassy plains accompanied by the towering Mount Kilamanjaro in the backdrop, Amboseli is a firm favourite on anyone’s safari to Kenya. Consisting of sweeping grasslands with scattered acacia trees - aside from its unique location in the shadow Africa’s most famous mountain – Amboseli is renowned for it’s Elephants which can provide spectacularly close views and encounters.</p>
<p>Aside from Elephants, Amboseli is also home to a healthy population of Lion, Leopard, Cheetah and Buffalo as well as commoner plains game. For obvious reasons, the area is a favourite for photographers – and the target is to capture the local wildlife on the grassy plains with the iconic Kilamanjaro in the background.</p>
<p>&nbsp;</p>
</div>
    
</div>
</div></div><div id="panel-213-1-0-1" class="so-panel widget widget_sow-headline" data-index="2" ><div class="so-widget-sow-headline so-widget-sow-headline-default-b209e37e7be4">
<div class="c-heading  no-variation  no-variation no-layout">
	<h3 class='c-heading__heading'>When to go:</h3></div></div></div><div id="panel-213-1-0-2" class="so-panel widget widget_sow-editor panel-last-child" data-index="3" ><div class="so-widget-sow-editor so-widget-sow-editor-base">
<div class="c-text no-variation no-layout no-variation ">

	
			<div class="c-text__content"><p>Generally, the best game viewing is between June to October in the drier months when game is more concentrated around more permanent water sources. </p>
</div>
    
</div>
</div></div></div></div></div><div id="pg-213-2"  class="panel-grid panel-has-style" ><div class="c-row--margin-large c-row--column-default panel-row-style panel-row-style-for-213-2" ><div id="pgc-213-2-0"  class="panel-grid-cell" ><div id="panel-213-2-0-0" class="so-panel widget widget_sow-button panel-first-child panel-last-child" data-index="4" ><div class="so-widget-sow-button so-widget-sow-button-atom-d75171398898"><div class="c-buttons c-buttons--horizontal-align-centre no-variation no-layout">
		<a class="c-button default-text no-variation " href="/category/amboseli-camps"> Camps </a>
		<a class="c-button default-text c-button--hollow " href="https://galagotravel.co.uk/contact-us"> Contact us </a></div></div></div></div></div></div><div id="pg-213-3"  class="panel-grid panel-has-style" ><div class="c-row--margin-large c-row--column-default siteorigin-panels-stretch panel-row-style panel-row-style-for-213-3" data-stretch-type="full-stretched" ><div id="pgc-213-3-0"  class="panel-grid-cell" ><div id="panel-213-3-0-0" class="so-panel widget widget_sow-snazzy-maps panel-first-child panel-last-child" data-index="5" ><div class="so-widget-sow-snazzy-maps so-widget-sow-snazzy-maps-default-d75171398898">
<script type="text/javascript" id="snazzy-google-api" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBj0eBxQ1zGM-hCazW7lPp_L_OEEGYhsvo"></script>
<script type="text/javascript" id="snazzy-cluster" src="https://unpkg.com/@googlemaps/markerclusterer/dist/index.min.js"></script>

<link rel='stylesheet' id='snazzy-css' href='https://galagotravel.co.uk/wp-content/plugins/hx-core-widgets/widgets/snazzy-maps/css/snazzy-info-window.min.css' type='text/css' media='all' />


<div class="c-interactive-map full-width-map">
    <div class="c-interactive-map__anchor" id="map-canvas"></div>
    
    
    <div class="c-interactive-map__canvas"></div>
</div>

<script type="text/javascript">
    var markers;
    var map;

    function initMap() {
        map = new google.maps.Map(document.querySelector('.c-interactive-map__canvas'), {
            zoom: 6,
            center: {
                lat: -2.66109,
                lng: 37.271801            }
        });

        var infoWin = new google.maps.InfoWindow();

        var markerIcon = {
            path: 'M22.5,-8.17124146e-14 C10.1609334,-0.000616968601 0.123390651,9.93655035 0,22.275 C0,37.6875 19.828125,54.84375 20.671875,55.575 C21.72438,56.4752467 23.27562,56.4752467 24.328125,55.575 C25.3125,54.84375 45,37.6875 45,22.275 C44.8766093,9.93655035 34.8390666,-0.000616968601 22.5,-8.17124146e-14 Z',
            fillColor: '#b97731',
            fillOpacity: 0.95,
            scale: .75,
            strokeColor: '#b97731',
            strokeWeight: 1,
            anchor: new google.maps.Point(12, 24)
        };

        markers = locations.map(function(location) {
            var marker = new google.maps.Marker({
                position: location,
                icon: markerIcon
            });

            google.maps.event.addListener(marker, 'mouseover', function() {
                infoWin.setContent(location.info);
                infoWin.open(map, marker);
            });
            return marker;
        });

		// Ensure MarkerClusterer is defined before using it
		if (typeof markerClusterer !== 'undefined' && typeof markerClusterer.MarkerClusterer !== 'undefined') {
			new markerClusterer.MarkerClusterer({ map, markers });
		} else {
			console.error("MarkerClusterer is not defined");
		}
    }

    var locations = [
                        {
            lat: -2.66109,
            lng: 37.271801,
            info: '<div class="c-interactive-map__info-window"><h3 class="c-interactive-map__subheading">Amboseli</h3>Possibly one of the most iconic National Parks in the world, with its grassy plains accompanied by the towering Mount Kilamanjaro in the backdrop, Amboseli is a firm favourite on anyone\u2019s safari to Kenya.</div>'
        },
            ];

    // Load the map once the DOM is fully loaded
    document.addEventListener("DOMContentLoaded", function() {
        google.maps.event.addDomListener(window, "load", initMap);
    });

    function myClick(id) {
        map.setCenter(markers[id].getPosition());
        map.setZoom(5);
        google.maps.event.trigger(markers[id], 'mouseover');
    }

    // get current location
    function geoFindMe() {
        const status = document.querySelector('#status');
        const mapLink = document.querySelector('#map-link');

        mapLink.textContent = '';

        function success(position) {
            const latitude = position.coords.latitude;
            const longitude = position.coords.longitude;

            status.textContent = '';
            mapLink.textContent = `LatLong(${latitude}, ${longitude})`;
        }

        function error() {
            status.textContent = 'Unable to retrieve your location';
        }

        if (!navigator.geolocation) {
            status.textContent = 'Geolocation is not supported by your browser';
        } else {
            status.textContent = 'Locating…';
            navigator.geolocation.getCurrentPosition(success, error);
        }
    }

    document.querySelector('#find-me').addEventListener('click', geoFindMe);

    // get location calculate distance between two points
    
    function toRad(v) { return v * Math.PI / 180; }
    function kmToMiles(km) { return (km * 0.62137).toFixed(2); }

		navigator.geolocation.getCurrentPosition(function(position) {
			const latitude  = position.coords.latitude;
			const longitude = position.coords.longitude;
			console.log(latitude, longitude);

			// current location
			var l1 = 	LatLong(latitude, longitude);

			// location of each shop
			var l2	=	LatLong(-2.66109, 37.271801);
			

			function LatLong(lat, lon) {
				return {Latitude: lat, Longitude: lon}
			}

			function haversine(l1, l2) {
				var R = 6371; // km 
				var x1 = l2.Latitude-l1.Latitude;
				var dLat = toRad(x1);  
				var x2 = l2.Longitude-l1.Longitude;
				var dLon = toRad(x2);  
				var a = Math.sin(dLat/2) * Math.sin(dLat/2) + 
						Math.cos(toRad(l1.Latitude)) * Math.cos(toRad(l2.Latitude)) * 
						Math.sin(dLon/2) * Math.sin(dLon/2);  
				var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); 
				var d = R * c;
				return d;
			}

			document.getElementById("distance-0").innerHTML = kmToMiles(haversine(l1, l2))+' miles <span>from location</span>';
		});

		
</script></div></div></div></div></div><div id="pg-213-4"  class="panel-grid panel-has-style" ><div class="c-row--margin-default c-row--column-default panel-row-style panel-row-style-for-213-4" ><div id="pgc-213-4-0"  class="panel-grid-cell" ><div id="panel-213-4-0-0" class="so-panel widget widget_sow-editor panel-first-child panel-last-child" data-index="6" ><div class="so-widget-sow-editor so-widget-sow-editor-base">
<div class="c-text no-variation no-layout no-variation ">

	
			<div class="c-text__content"><p style="text-align: center;"><em>Images courtesy of the Great Plains Conservation</em></p>
</div>
    
</div>
</div></div></div></div></div></div><p>The post <a href="https://galagotravel.co.uk/destinations/kenya/amboseli">Amboseli</a> appeared first on <a href="https://galagotravel.co.uk">Galago Travel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://galagotravel.co.uk/destinations/kenya/amboseli/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Masai Mara</title>
		<link>https://galagotravel.co.uk/destinations/kenya/masai-mara-game-reserve</link>
					<comments>https://galagotravel.co.uk/destinations/kenya/masai-mara-game-reserve#respond</comments>
		
		<dc:creator><![CDATA[kenny]]></dc:creator>
		<pubDate>Mon, 31 Oct 2022 16:37:17 +0000</pubDate>
				<category><![CDATA[Kenya]]></category>
		<category><![CDATA[Honeymoon]]></category>
		<category><![CDATA[Masai Mara]]></category>
		<category><![CDATA[Maasai Mara]]></category>
		<guid isPermaLink="false">https://galagotravel.co.uk/?p=209</guid>

					<description><![CDATA[<p>One of the most renowned wildlife areas in the planet, the Masai Mara lies to the south of the country and is most certainly a contender for offering the best wildlife watching anywhere in the world. Forming part of the larger Serengeti ecosystem, the Mara plays host to the ‘Great Migration’ - involving the movement of [&#8230;]</p>
<p>The post <a href="https://galagotravel.co.uk/destinations/kenya/masai-mara-game-reserve">Masai Mara</a> appeared first on <a href="https://galagotravel.co.uk">Galago Travel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id="pl-209"  class="panel-layout" ><div id="pg-209-0"  class="panel-grid panel-has-style" ><div class="c-row--margin-default c-row--column-default panel-row-style panel-row-style-for-209-0" ><div id="pgc-209-0-0"  class="panel-grid-cell" ><div id="panel-209-0-0-0" class="so-panel widget widget_sow-image-grid panel-first-child panel-last-child" data-index="0" ><div class="so-widget-sow-image-grid so-widget-sow-image-grid-default-3cf8946c8151">

<div class="c-image-grid   no-variation no-layout "><div class="c-image-grid__item  large-4 medium-4 small-12"><div class="crop">

							<div class="c-image-grid__image" 
								style="
									background-position-x: 50%;
									background-position-y: 50%;
									background-image: url(https://galagotravel.co.uk/wp-content/uploads/2022/10/Kenya-Kichwa-Guest-delight-Romantic-dinner-with-butler-at-sunset-2-2.webp)
								">
							</div>

						</div></div><div class="c-image-grid__item  large-4 medium-4 small-12"><div class="crop">

							<div class="c-image-grid__image" 
								style="
									background-position-x: 50%;
									background-position-y: 50%;
									background-image: url(https://galagotravel.co.uk/wp-content/uploads/2023/01/maasai-mara-game-reserve-3-1.webp)
								">
							</div>

						</div></div><div class="c-image-grid__item  large-4 medium-4 small-12"><div class="crop">

							<div class="c-image-grid__image" 
								style="
									background-position-x: 50%;
									background-position-y: 50%;
									background-image: url(https://galagotravel.co.uk/wp-content/uploads/2022/10/Kenya-Bateleur-Camp-guest-delight-coffee-stop-at-sunrise-2-2.webp)
								">
							</div>

						</div></div></div></div></div></div></div></div><div id="pg-209-1"  class="panel-grid panel-has-style" ><div class="c-row--margin-small c-row--column-default panel-row-style panel-row-style-for-209-1" ><div id="pgc-209-1-0"  class="panel-grid-cell" ><div id="panel-209-1-0-0" class="so-panel widget widget_sow-editor panel-first-child" data-index="1" ><div class="so-widget-sow-editor so-widget-sow-editor-base">
<div class="c-text no-variation no-layout no-variation ">

	
			<div class="c-text__content"><p>One of the most renowned wildlife areas in the planet, the Masai Mara lies to the south of the country and is most certainly a contender for offering the best wildlife watching anywhere in the world. Forming part of the larger <a href="https://galagotravel.co.uk/destinations/tanzania/serengeti-national-park">Serengeti</a> ecosystem, the Mara plays host to the ‘Great Migration’ - involving the movement of some 2 million Blue Wildebeest, half a million Thompson’s Gazelles and 250,000 Zebra.</p>
<p>This gigantic mass of herbivores is in-turn followed by a large number of predators with Lions, Cheetah, Leopard and Hyaena being spotted almost daily.</p>
<p>&nbsp;</p>
</div>
    
</div>
</div></div><div id="panel-209-1-0-1" class="so-panel widget widget_sow-headline" data-index="2" ><div class="so-widget-sow-headline so-widget-sow-headline-default-b209e37e7be4">
<div class="c-heading  no-variation  no-variation no-layout">
	<h3 class='c-heading__heading'>When to go:</h3></div></div></div><div id="panel-209-1-0-2" class="so-panel widget widget_sow-editor" data-index="3" ><div class="so-widget-sow-editor so-widget-sow-editor-base">
<div class="c-text no-variation no-layout no-variation ">

	
			<div class="c-text__content"><p>When to go to the Masai Mara completely depends on what you want from your safari. If your focus is seeing the spectacle of the great migration, then it is key to factor this into your itinerary.</p>
<p>The rains begin in November as scattered showers and thunderstorms from November and in March and April these can become intensified. As a result, March and April are viewed as low season, and this very busy destination can become much quieter and also, much cheaper!</p>
<p>&nbsp;</p>
</div>
    
</div>
</div></div><div id="panel-209-1-0-3" class="so-panel widget widget_sow-headline" data-index="4" ><div class="so-widget-sow-headline so-widget-sow-headline-default-b209e37e7be4">
<div class="c-heading  no-variation  no-variation no-layout">
	<h3 class='c-heading__heading'>Tracking the Wildebeest Migration:</h3></div></div></div><div id="panel-209-1-0-4" class="so-panel widget widget_sow-editor panel-last-child" data-index="5" ><div class="so-widget-sow-editor so-widget-sow-editor-base">
<div class="c-text no-variation no-layout no-variation ">

	
			<div class="c-text__content"><p>The thousands of wildebeest and zebra congregate on the southern short grass plains of the souther Serengeti in January. They remain in the <a href="https://galagotravel.co.uk/destinations/tanzania/serengeti-national-park">Serengeti National Park</a> in <a href="https://galagotravel.co.uk/category/destinations/tanzania">Tanzania</a> until around July, when the reach the northern reaches of the park and the border with Kenya.</p>
<p>It is from July-September that herds start to cross the Mara River into the Maasai Mara offering the spectacle of the river crossings and the constant battle for survival.</p>
<p>The massive hers remain in the northern <a href="https://galagotravel.co.uk/destinations/tanzania/serengeti-national-park">Serengeti</a> and Masai Mara during the dry season (July to October) where they have access to the permanent waters of the Mara River. In November, they start to slowly head towards the southern Serengeti for the cycle to start again.</p>
</div>
    
</div>
</div></div></div></div></div><div id="pg-209-2"  class="panel-grid panel-has-style" ><div class="c-row--margin-large c-row--column-default panel-row-style panel-row-style-for-209-2" ><div id="pgc-209-2-0"  class="panel-grid-cell" ><div id="panel-209-2-0-0" class="so-panel widget widget_sow-button panel-first-child panel-last-child" data-index="6" ><div class="so-widget-sow-button so-widget-sow-button-atom-d75171398898"><div class="c-buttons c-buttons--horizontal-align-centre no-variation no-layout">
		<a class="c-button default-text no-variation " href="https://galagotravel.co.uk/category/masai-mara-camps"> Camps </a>
		<a class="c-button default-text c-button--hollow " href="https://galagotravel.co.uk/contact-us"> Contact us </a></div></div></div></div></div></div><div id="pg-209-3"  class="panel-grid panel-has-style" ><div class="c-row--margin-large c-row--column-default siteorigin-panels-stretch panel-row-style panel-row-style-for-209-3" data-stretch-type="full-stretched" ><div id="pgc-209-3-0"  class="panel-grid-cell" ><div id="panel-209-3-0-0" class="so-panel widget widget_sow-snazzy-maps panel-first-child panel-last-child" data-index="7" ><div class="so-widget-sow-snazzy-maps so-widget-sow-snazzy-maps-default-d75171398898">
<script type="text/javascript" id="snazzy-google-api" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBj0eBxQ1zGM-hCazW7lPp_L_OEEGYhsvo"></script>
<script type="text/javascript" id="snazzy-cluster" src="https://unpkg.com/@googlemaps/markerclusterer/dist/index.min.js"></script>

<link rel='stylesheet' id='snazzy-css' href='https://galagotravel.co.uk/wp-content/plugins/hx-core-widgets/widgets/snazzy-maps/css/snazzy-info-window.min.css' type='text/css' media='all' />


<div class="c-interactive-map full-width-map">
    <div class="c-interactive-map__anchor" id="map-canvas"></div>
    
    
    <div class="c-interactive-map__canvas"></div>
</div>

<script type="text/javascript">
    var markers;
    var map;

    function initMap() {
        map = new google.maps.Map(document.querySelector('.c-interactive-map__canvas'), {
            zoom: 6,
            center: {
                lat: -1.162953,
                lng: 35.136265            }
        });

        var infoWin = new google.maps.InfoWindow();

        var markerIcon = {
            path: 'M22.5,-8.17124146e-14 C10.1609334,-0.000616968601 0.123390651,9.93655035 0,22.275 C0,37.6875 19.828125,54.84375 20.671875,55.575 C21.72438,56.4752467 23.27562,56.4752467 24.328125,55.575 C25.3125,54.84375 45,37.6875 45,22.275 C44.8766093,9.93655035 34.8390666,-0.000616968601 22.5,-8.17124146e-14 Z',
            fillColor: '#b97731',
            fillOpacity: 0.95,
            scale: .75,
            strokeColor: '#b97731',
            strokeWeight: 1,
            anchor: new google.maps.Point(12, 24)
        };

        markers = locations.map(function(location) {
            var marker = new google.maps.Marker({
                position: location,
                icon: markerIcon
            });

            google.maps.event.addListener(marker, 'mouseover', function() {
                infoWin.setContent(location.info);
                infoWin.open(map, marker);
            });
            return marker;
        });

		// Ensure MarkerClusterer is defined before using it
		if (typeof markerClusterer !== 'undefined' && typeof markerClusterer.MarkerClusterer !== 'undefined') {
			new markerClusterer.MarkerClusterer({ map, markers });
		} else {
			console.error("MarkerClusterer is not defined");
		}
    }

    var locations = [
                        {
            lat: -1.162953,
            lng: 35.136265,
            info: '<div class="c-interactive-map__info-window"><h3 class="c-interactive-map__subheading">Maasai Mara National Park, Masai Mara National Reserve, Kenya</h3>One of the most renowned wildlife areas in the planet, the Maasai Mara lies to the south of the country and is most certainly a contender for offering the best wildlife watching anywhere in the world.</div>'
        },
            ];

    // Load the map once the DOM is fully loaded
    document.addEventListener("DOMContentLoaded", function() {
        google.maps.event.addDomListener(window, "load", initMap);
    });

    function myClick(id) {
        map.setCenter(markers[id].getPosition());
        map.setZoom(5);
        google.maps.event.trigger(markers[id], 'mouseover');
    }

    // get current location
    function geoFindMe() {
        const status = document.querySelector('#status');
        const mapLink = document.querySelector('#map-link');

        mapLink.textContent = '';

        function success(position) {
            const latitude = position.coords.latitude;
            const longitude = position.coords.longitude;

            status.textContent = '';
            mapLink.textContent = `LatLong(${latitude}, ${longitude})`;
        }

        function error() {
            status.textContent = 'Unable to retrieve your location';
        }

        if (!navigator.geolocation) {
            status.textContent = 'Geolocation is not supported by your browser';
        } else {
            status.textContent = 'Locating…';
            navigator.geolocation.getCurrentPosition(success, error);
        }
    }

    document.querySelector('#find-me').addEventListener('click', geoFindMe);

    // get location calculate distance between two points
    
    function toRad(v) { return v * Math.PI / 180; }
    function kmToMiles(km) { return (km * 0.62137).toFixed(2); }

		navigator.geolocation.getCurrentPosition(function(position) {
			const latitude  = position.coords.latitude;
			const longitude = position.coords.longitude;
			console.log(latitude, longitude);

			// current location
			var l1 = 	LatLong(latitude, longitude);

			// location of each shop
			var l2	=	LatLong(-1.162953, 35.136265);
			

			function LatLong(lat, lon) {
				return {Latitude: lat, Longitude: lon}
			}

			function haversine(l1, l2) {
				var R = 6371; // km 
				var x1 = l2.Latitude-l1.Latitude;
				var dLat = toRad(x1);  
				var x2 = l2.Longitude-l1.Longitude;
				var dLon = toRad(x2);  
				var a = Math.sin(dLat/2) * Math.sin(dLat/2) + 
						Math.cos(toRad(l1.Latitude)) * Math.cos(toRad(l2.Latitude)) * 
						Math.sin(dLon/2) * Math.sin(dLon/2);  
				var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); 
				var d = R * c;
				return d;
			}

			document.getElementById("distance-0").innerHTML = kmToMiles(haversine(l1, l2))+' miles <span>from location</span>';
		});

		
</script></div></div></div></div></div></div><p>The post <a href="https://galagotravel.co.uk/destinations/kenya/masai-mara-game-reserve">Masai Mara</a> appeared first on <a href="https://galagotravel.co.uk">Galago Travel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://galagotravel.co.uk/destinations/kenya/masai-mara-game-reserve/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
