PHP Classes

PHP Calculate Distance: Find the distance between points using Haversine

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-05-19 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 398 All time: 6,438 This week: 298Up
Version License PHP version Categories
calculate-distance 1Freely Distributable5PHP 5, Geography
Description Author

This class can find the distance between two points using the Haversine formula.

It takes the latitude and longitude coordinates of two points and calculates the great-circle distance between two points on the surface of a sphere using the Haversine equation formula.

The distance between the two points is returned in terms of miles.

  Performance   Level  
Name: Anthony Amolochitis <contact>
Classes: 10 packages by
Country: United States United States
Age: 39
All time rank: 1168153 in United States United States
Week rank: 672 Up67 in United States United States Up


  Files folder image Files  
File Role Description
Plain text file CalculateDistance.php Class Calculate Haversine Distance
Plain text file Example.php Example Usage Example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,438
This week:298Up