Login   Register  
PHP Classes
elePHPant
Icontem

Haversine: Calculate the distance between Earth two points

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-09-01 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 465 This week: 1All time: 5,501 This week: 1,534Up
Version License PHP version Categories  
haversine 1.0MIT/X Consortium License5.2Algorithms, PHP 5, Geography
Description Author  

This class can be used to calculate the distance between Earth two points.

It takes the latitude and longitude coordinates of two points of the Earth and calculates the distance between them using the Haversine formula.

The distances may be returned in Kilometers, meters, miles, yards, feet or inches.

Picture of Leonardo Branco Shinagawa
Name: Leonardo Branco ... <contact>
Classes: 3 packages by
Country: Brazil Brazil
Age: 28
All time rank: 1995138 in Brazil Brazil
Week rank: 631 Up42 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Plain text file Haversine.php Class class file
Plain text file example.php Example Some examples

 Version Control Unique User Downloads Download Rankings  
 0%Total:465All time:5,501
 This week:1This week:1,534Up