PHP Classes

jlaso GPS: Calculate the distance between geographic points

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 401 This week: 1All time: 6,556 This week: 560Up
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: 92519 in Spain Spain
Week rank: 109 Up5 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  
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  /  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  /  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  /  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:401
This week:1
All time:6,556
This week:560Up