--- a/tripPlanner.php
+++ b/tripPlanner.php
@@ -4,7 +4,7 @@
$from = (isset($_REQUEST['from']) ? filter_var($_REQUEST['from'],FILTER_SANITIZE_STRING) : "Brigalow");
$to = (isset($_REQUEST['to']) ? filter_var($_REQUEST['to'],FILTER_SANITIZE_STRING) : "Barry");
$date = (isset($_REQUEST['date']) ? filter_var($_REQUEST['date'],FILTER_SANITIZE_STRING) : date("m/d/Y"));
- $time = (isset($_REQUEST['time']) ? filter_var($_REQUEST['time'],FILTER_SANITIZE_STRING) : date("H:m"));
+ $time = (isset($_REQUEST['time']) ? filter_var($_REQUEST['time'],FILTER_SANITIZE_STRING) : date("H:i"));
# todo: convert date from form to h:ia?
function tripPlanForm($errorMessage = "")
@@ -54,7 +54,7 @@
foreach ($itinerary->legs->leg as $legNumber => $leg) {
$legMarkers[] = array($leg->from->lat, $leg->from->lon);
}
- echo '' . staticmap($legMarkers) . "
\n";
+ echo '' . staticmap($legMarkers, 0,"iconb", false) . "
\n";
echo '
';
foreach ($itinerary->legs->leg as $legNumber => $leg) {
echo '- ';
@@ -63,7 +63,7 @@
}
echo "
";
} else {
- echo '' . staticmap(array(array($itinerary->legs->leg->from->lat, $itinerary->legs->leg->from->lon))) . "
\n";
+ echo '' . staticmap(array(array($itinerary->legs->leg->from->lat, $itinerary->legs->leg->from->lon)), 0,"iconb", false) . "
\n";
processLeg(0, $itinerary->legs->leg);
}
@@ -80,7 +80,7 @@
foreach ($leg->steps->walkSteps as $stepNumber => $step) {
$walkStepMarkers[] = array($step->lat, $step->lon);
}
- echo "" . staticmap($walkStepMarkers, "icong") . "
\n";
+ echo "" . staticmap($walkStepMarkers, 0,"icong", false) . "
\n";
foreach ($leg->steps->walkSteps as $stepNumber => $step) {
echo "Walking step " . ($stepNumber + 1) . " $step->absoluteDirection / $step->relativeDirection on $step->streetName for " . floor($step->distance) . " meters
\n";
}
@@ -100,9 +100,9 @@
} else {
if (isMetricsOn()) {
// Create a new Instance of the tracker
-$owa = new owa_php($config);
+$owa = new owa_php();
// Set the ID of the site being tracked
-$owa->setSiteId('bus.lambdacomplex.org');
+$owa->setSiteId($owaSiteID);
// Create a new event object
$event = $owa->makeEvent();
// Set the Event Type, in this case a "video_play"