Property | Type | Description | |
---|---|---|---|
$ellipsoid | |||
$lat | float | ||
$lng | float |
Method | Description | |
---|---|---|
__construct ( float $lat, float $lng, |
||
format ( Location\Formatter\Coordinate\FormatterInterface $formatter ) : mixed | ||
getDistance ( |
Calculates the distance between the given coordinate and this coordinate. | |
getEllipsoid ( ) : |
||
getLat ( ) : float | ||
getLng ( ) : float | ||
getPoints ( ) : array | Returns an array containing the point |
Method | Description | |
---|---|---|
isNumericInBounds ( float $value, float $lower, float $upper ) : boolean | Checks if the given value is (1) numeric, and (2) between lower and upper bounds (including the bounds values). | |
isValidLatitude ( mixed $latitude ) : boolean | Validates latitude | |
isValidLongitude ( mixed $longitude ) : boolean | Validates longitude |
public __construct ( float $lat, float $lng, |
||
$lat | float | -90.0 .. +90.0 |
$lng | float | -180.0 .. +180.0 |
$ellipsoid | if omitted, WGS-84 is used |
public getDistance ( |
||
$coordinate | ||
$calculator | Location\Distance\DistanceInterface | instance of distance calculation class |
return | float |
protected isValidLatitude ( mixed $latitude ) : boolean | ||
$latitude | mixed | |
return | boolean |
protected isValidLongitude ( mixed $longitude ) : boolean | ||
$longitude | mixed | |
return | boolean |