2017 © Pedro Peláez
 

library trilateration

Library to determine absolute or relative locations of points by measurement of distances.

image

prbdias/trilateration

Library to determine absolute or relative locations of points by measurement of distances.

  • Saturday, October 31, 2015
  • by prbdias
  • Repository
  • 4 Watchers
  • 7 Stars
  • 188 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 2 Versions
  • 242 % Grown

The README.md

Trilateration

Library to determine absolute or relative locations of points by measurement of distances., (*1)

Example

require __DIR__.'/../vendor/autoload.php';

use Prbdias\Trilateration\Trilateration;

$trilateration = new Trilateration();

//Make all the measurements in miles, by default it's in Kms.
$trilateration->setMiles(true);

//Define the 3 points to make the intersection
$trilateration->setPoint1(51.740480, -1.325897, 4);
$trilateration->setPoint2(51.812820, -1.208926, 5);
$trilateration->setPoint3(51.743257, -1.229532, 2);

//Get the intersection point
$point = $trilateration->getIntersectionPoint();

echo $point['lat'].', '.$point['lng'];

Result

51.715231560679, -1.2442316303255

The Versions

31/10 2015

dev-master

9999999-dev

Library to determine absolute or relative locations of points by measurement of distances.

  Sources   Download

MIT

by Paulo Dias

geometry trilateration

31/10 2015

v0.1.0

0.1.0.0

Library to determine absolute or relative locations of points by measurement of distances.

  Sources   Download

MIT

by Paulo Dias

geometry trilateration