PHP Class Treffynnon\Navigator\Distance\Calculator\Vincenty

Inheritance: extends CalculatorAbstract
Afficher le fichier Open project: treffynnon/navigator Class Usage Examples

Méthodes publiques

Méthode Description
calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float Calculate the distance between two points using Vincenty's formula.

Method Details

calculate() public méthode

Supply instances of the coordinate class. http://www.movable-type.co.uk/scripts/LatLongVincenty.html
public calculate ( Treffynnon\Navigator\LatLong $point1, Treffynnon\Navigator\LatLong $point2 ) : float
$point1 Treffynnon\Navigator\LatLong
$point2 Treffynnon\Navigator\LatLong
Résultat float