2017 © Pedro Peláez
 

library cnp-haversine

Get distance between two points of interest.

image

cnp/cnp-haversine

Get distance between two points of interest.

  • Wednesday, December 9, 2015
  • by cnp
  • Repository
  • 3 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Haversine

Get the distance between two points using the Haversine formulae., (*1)

Usage

$location = new CnpPoi(28.535153, -81.383219);
$destination = new CnpPoi(42.594018, -88.433886)
$location->getDistanceInMilesTo($destination);
$location->getDistanceInMetersTo($destination);

References

See http://rosettacode.org/wiki/Haversine_formula#PHP, (*2)

The Versions

09/12 2015

dev-master

9999999-dev https://github.com/Clark-Nikdel-Powell/Module-CNP-Haversine

Get distance between two points of interest.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

09/12 2015

v0.2

0.2.0.0 https://github.com/Clark-Nikdel-Powell/Module-CNP-Haversine

Get distance between two points of interest.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

09/12 2015

v0.1

0.1.0.0 https://github.com/Clark-Nikdel-Powell/Module-CNP-Haversine

Get distance between two points of interest.

  Sources   Download

MIT

The Requires

  • php >=5.3.3