Свойство | Type | Description | |
---|---|---|---|
$ellipsoid | |||
$lat | float | ||
$lng | float |
Méthode | 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 |
Méthode | 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 |
Résultat | float |
protected isValidLatitude ( mixed $latitude ) : boolean | ||
$latitude | mixed | |
Résultat | boolean |
protected isValidLongitude ( mixed $longitude ) : boolean | ||
$longitude | mixed | |
Résultat | boolean |