Example #1
0
                     }
                     $cpath = consolidatePath($path, $type);
                 }
                 if (is_string($cpath)) {
                     if ($cpath == "walk") {
                         echo "You don't need to take the subway. Why don't you walk instead?<br/>";
                     } else {
                         if ($cpath == "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 {
                     printPath($cpath);
                 }
                 echo "<br/>\n";
                 displayStationChoices($current_url, $start_location, $end_location, $path->path);
             }
         }
     } else {
         echo "No Path Found.<br/>\n";
     }
 } else {
     echo "<form id=\"form_pick\" action=\"{$current_url}\" method=\"get\">\n";
     if (count($starts) > 1) {
         echo "Multiple Locations Found for Start Address:<br/><br/>\n";
         for ($i = 0; $i < count($starts); $i++) {
             $loc = $starts[$i];
             $num = $i + 1;
             //correctRadioValue($starts[$i], $saddr, "saddr", $num);
             echo "<input type=\"radio\" name=\"saddr\" value=\"" . $loc->getAddressString() . "\" />\n";
             echo "[<a href=\"javascript:focusOn(new GLatLng(" . $loc->getLat() . "," . $loc->getLng() . "), map.getZoom());\">{$num}</a>] ";
Example #2
0
                     }
                     $cpath = consolidatePath2($path, $type);
                 }
                 if (is_string($cpath)) {
                     if ($cpath == "walk") {
                         echo "You don't need to take the subway. Why don't you walk instead?<br/>";
                     } else {
                         if ($cpath == "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 {
                     printPath($cpath, $path->time);
                 }
                 echo "<br/>\n";
                 displayStationChoices($link, $start_location, $end_location, $path->path);
             }
         }
     } else {
         echo "No Path Found.<br/>\n";
     }
 } else {
     echo "<form id=\"form_pick\" action=\"{$current_url}\" method=\"get\">\n";
     if (count($starts) > 1) {
         echo "Multiple Locations Found for Start Address:<br/><br/>\n";
         for ($i = 0; $i < count($starts); $i++) {
             $loc = $starts[$i];
             $num = $i + 1;
             //correctRadioValue($starts[$i], $sa, "sa", $num);
             echo "<input type=\"radio\" name=\"sa\" value=\"" . $loc->getAddressString() . "\" />\n";
             echo "[<a href=\"javascript:focusOn(new GLatLng(" . $loc->getLat() . "," . $loc->getLng() . "), map.getZoom());\">{$num}</a>] ";