PHP Classes

jlaso GPS: Calculate the distance between geographic points

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (9 months ago) RSS 2.0 feedStarStar 30%Total: 401 All time: 6,563 This week: 129Up
Version License PHP version Categories
gps 0.12MIT/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: 56
All time rank: 92219 in Spain Spain
Week rank: 268 Up10 in Spain Spain Up
Innovation award
Innovation award
Nominee: 6x

Winner: 2x

Documentation

License Latest Unstable Version Total Downloads Latest Stable Version

jlaso/gps

> 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

Version

1.1

Authors

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

Installation

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

{
   "require":{
      "jlaso/gps": "dev-master"
   }
}

Use

Simply use the classes in it.

Tests

You can launch the test with phpunit.

License

MIT

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


  Files folder image Files (9)  
File Role Description
Files folder imagesrc (2 files)
Files folder imagetests (1 file, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (9)  /  src  
File Role Description
  Accessible without login Plain text file Point.php Class Class source
  Accessible without login Plain text file Tools.php Class Class source

  Files folder image Files (9)  /  tests  
File Role Description
Files folder imagedistance (2 files)
  Accessible without login Plain text file bootstrap.php Aux. Unit test script

  Files folder image Files (9)  /  tests  /  distance  
File Role Description
  Accessible without login Plain text file ConversionTest.php Test Unit test script
  Accessible without login Plain text file DistanceTest.php Test Unit test script

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  
 100%
Total:401
This week:0
All time:6,563
This week:129Up
 User Ratings  
 
 All time
Utility:41%StarStarStar
Consistency:33%StarStar
Documentation:33%StarStar
Examples:-
Tests:25%StarStar
Videos:-
Overall:30%StarStar
Rank:4335