findShortestPath(0); // Display the results //echo '
';
		//echo "the map looks like:\n\n";
		//echo $my_dijkstra -> printMap($ourMap);
		//echo "\n\nthe shortest paths from point 0:\n";
		$text = $my_DijkstraModule -> getResults();
		//echo $text;
		 //var_dump ($path_array);
		//echo '
'; return $text; } // function dijkstra_matrix } // class Itinerary // Code taken from : http://www.fonant.com/demos/douglas_peucker/algorithm class GeoPoint { public $latitude; public $longitude; public function __construct($lat,$lng) { $this->latitude = (float)$lat; $this->longitude = (float)$lng; } } // class Geopoint ?>