function insertAfter(referenceNode, newNode) { referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); } function add_before(name) { var objTo = document.getElementById(name) var divtest = document.createElement("div"); divtest.innerHTML = \'
';
$Output .= '';
$Map = new MapGoogle($this->System);
$Map->Key = 'AIzaSyDQ-tOjP9mO8ZpSEuBc5_oCRg30rpQZiBI';
$Map->Width = 400;
$Map->Height = 300;
$Map->Path = array($_GET['from'], $_GET['to']);
//$Map->Path = array('Praha', 'Brno', 'Zlín', 'Vsetín');
$Track = $Map->Route();
$Output .= 'Trasa'; $PricePerKm = 0.8; $Output .= '
'; $Output .= 'Vzdálenost: '.round($Track[count($Track) - 1]['Distance'] / 1000, 1).' km '; $Output .= 'Délka jízdy: '.time_elapsed($Track[count($Track) - 1]['Duration']).' '; $Output .= ' | '; $Map->Key = 'AIzaSyDwKYuEdkXAl9Y2RyDLf5m03n-ItHaqdKs'; $Output .= $Map->Show(); $Output .= ' |