Example #1
0
         }
     }
 } else {
     if ($type == 'dir' || $type == 'dir_alt') {
         if (count($starts) == 1 && count($ends) == 1) {
             echo "Start Address:<br/>\n";
             $loc = $starts[0];
             $start_loc = $loc->name;
             //printAddress($loc, $saddr, $start_marker_img);
             printAddress2($loc, $start_marker_img);
             echo "<br/>\n";
             echo "End Address:<br/>\n";
             $loc = $ends[0];
             $end_loc = $loc->name;
             //printAddress($loc, $daddr, $end_marker_img);
             printAddress2($loc, $end_marker_img);
             echo "<br/>\n";
             if (!is_null($path)) {
                 if (is_string($path)) {
                     if ($path == "walk") {
                         echo "You don't need to take the subway. Why don't you walk instead?<br/>";
                     } else {
                         if ($path == "same") {
                             echo "You're just testing the system, aren't you? Go do something more interesting, like telling your friends about this great site.<br/>";
                         }
                     }
                 } else {
                     if (is_object($path)) {
                         if ($debug) {
                             echo "setting cpath<br/>";
                         }
Example #2
0
                     }
                 } else {
                     printPath($cpath, $path->time);
                 }
                 echo "<br/>\n";
                 #displayStationChoices($current_url, $start_location, $end_location, $path->path);
             }
         }
     } else {
         echo "No Path Found.<br/>\n";
     }
 } else {
     if ($type == "a2s") {
         echo "Start Address:<br/>\n";
         $loc = $starts[0];
         printAddress2($loc, $start_marker_img);
         echo "<br/>\n";
         echo "End Station:<br/>\n";
         printMarker($end_marker, $end_marker_img);
         echo "<br/><br/>\n";
         if (!is_null($path)) {
             if (is_string($path)) {
                 if ($path == "walk") {
                     echo "You don't need to take the subway. Why don't you walk instead?<br/>";
                 } else {
                     if ($path == "same") {
                         echo "You're just testing the system, aren't you? Go do something more interesting, like telling your friends about this great site.<br/>";
                     }
                 }
             } else {
                 if (is_object($path)) {