jlaso GPS: Calculate the distance between geographic points

Recommend this page to a friend!
  Info   Documentation   View files (9)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 384 All time: 6,581 This week: 318
Version License PHP version Categories
gps 0.3MIT/X Consortium ...5.3PHP 5, Geography
Description Author

This class can calculate the distance between geographic points.

It takes as parameters the latitude and longitude coordinates of two locations on the planet.

The class calculates the distance in kilometers that would need to be traversed between the two locations on the planet surface. The distance can also be converted into miles.

Picture of Joseluis Laso
  Performance   Level  
Name: Joseluis Laso <contact>
Classes: 16 packages by
Country: Spain Spain
Age: 52
All time rank: 96220 in Spain Spain
Week rank: 136 5 in Spain Spain
Innovation award
Innovation award
Nominee: 6x

Winner: 2x


License Latest Unstable Version Total Downloads Latest Stable Version


> gps related tools

I intent in this repo to have togheter all my gps tools that I need for my projects

- distance calculation between two gps points

Required PHP7




  • [Joseluis Laso] - <http://www.joseluislaso.es>


To use the tools of this repo only has to be required in your composer.json:

      "jlaso/gps": "dev-master"


Simply use the classes in it.


You can launch the test with phpunit.



[Joseluis Laso]:http://www.joseluislaso.es/

File Role Description
src (2 files)
tests (1 file, 1 directory)
composer.json Data Auxiliary data
LICENSE Lic. License text
phpunit.xml Data Auxiliary data
README.md Doc. Documentation

  Files  /  src  
File Role Description
   Point.php Class Class source
   Tools.php Class Class source

  Files  /  tests  
File Role Description
distance (2 files)
   bootstrap.php Aux. Unit test script

  Files  /  tests  /  distance  
File Role Description
   ConversionTest.php Test Unit test script
   DistanceTest.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,581
This week:318

For more information send a message to info at phpclasses dot org.