<!--
$dist = '<a href="https://www.google.com/maps/dir/?api=1&origin='.$_POST['latitude'].','.
					$_POST['longitude'].'&destination='.$outlet['outlet_address'].'&destination_place_id='.
					$outlet['google_place_id'].'" target="_blank">&nbsp;'.$dist.' (click for directions)</a>';	

https://www.google.com/maps/dir/?api=1&origin=lat,lng&travelmode=driving&destination=address&dir_action=navigate
-->
<?php
$link = '<a href="https://www.google.com/maps/dir/?api=1&origin=lat,lng&travelmode=driving&destination=address&dir_action=navigate">Directions</a>';
?>
<div class="container no-padding">
	<div class="row forms-grid">
		<div class="col-md-12">&nbsp;</div>
		<div class="col-xs-7"><h2>Directions</h2></div>
		<div class="col-xs-4">
			<button onclick="navigate('<?php echo($row['address_lat']); ?>','<?php echo($row['address_lng']); ?>')" 
					style="margin:0;">
				<i class="fa fa-location-arrow"></i>&nbsp;Navigate
			</button>
		</div>
		<div class="col-xs-1"></div>
		<div class="col-xs-12">
			<?php include(SABLE_INCLUDES_PATH.'googleMapsDisplay.php'); ?>
		</div>

	</div>
</div>
<?php
//SableDebug::debug($row);
?>
<script>
	showLocation("<?= ($row['address_lng'] ?? '') ?>", "<?= ($row['address_lat'] ?? '') ?>", "<?= ($row['address'] ?? '') ?>");
	getCurrentLocation();
</script>