Revision: 9462
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 8, 2008 07:05 by ginoplusio
Initial Code
//$lat1 = 46.2341938036161; //$lon1 = -63.124778021257015; //$lat2 = 46.4141938036161; //$lon2 = -63.118571124705284; function distance($lat1,$lon1,$lat2,$lon2) { return (3958*3.1415926*sqrt(($lat2-$lat1)*($lat2-$lat1) + cos($lat2/57.29578)*cos($lat1/57.29578)*($lon2-$lon1)*($lon2-$lon1))/180); }
Initial URL
http://www.barattalo.it
Initial Description
Initial Title
Distance between two points
Initial Tags
Initial Language
PHP