/**
* Calculates the distance between 2 geometries in meters.
*
* @param Geometry $point_a The first point.
* @param Geometry $point_b The second point.
* @return float Distance in meters.
*/
public static function distance($point_a, $point_b)
{
return self::apply($point_a, $point_b, function ($coor_a, $coor_b) {
$calculator = new Vincenty();
return $calculator->getDistance($coor_a, $coor_b);
});
}