PHP Classes

Haversine: Calculate the distance between Earth two points

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 503 All time: 5,803 This week: 455Up
Version License PHP version Categories
haversine 1.0MIT/X Consortium ...5.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: 38
All time rank: 2110139 in Brazil Brazil
Week rank: 192 Up14 in Brazil Brazil Up

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:503
This week:0
All time:5,803
This week:455Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2840