Code to generate this page:

<?php
include_once("../include/GoogleMap.php");
include_once("../include/JSMin.php");

$MAP_OBJECT = new GoogleMapAPI(); $MAP_OBJECT->_minify_js = isset($_REQUEST["min"])?FALSE:TRUE;
$MAP_OBJECT->setDSN("mysql://user:[email protected]/db_name");

$id_polyline_1 = $MAP_OBJECT->addPolyLineByAddress("Littleton, CO", "Denver, CO", $id=false,$color='#FF0000',$weight=2);
$ELEVATION_ID = "elevation_chart";
$MAP_OBJECT->addPolylineElevation($id_polyline_1,$ELEVATION_ID);
?>
<html>
<head>
<?=$MAP_OBJECT->getHeaderJS();?>
<?=$MAP_OBJECT->getMapJS();?>
</head>
<body>
<?=$MAP_OBJECT->printOnLoad();?>
<?=$MAP_OBJECT->printMap();?>
<div id="<?=$ELEVATION_ID;?>"></div>
</body>
</html>