GeoCoordinates
in package
Type containing tuple of longitude and latitude
Tags
Table of Contents
- $_latitude : float
- $_longitude : float
- $_valid : bool
- __construct() : mixed
- getLatitude() : float
- getLongitude() : float
- isValid() : bool
- checkRangeOfLongLat() : bool
- exceptionOnInvalidity() : mixed
Properties
$_latitude
private
float
$_latitude
= 0.0
$_longitude
private
float
$_longitude
= 0.0
$_valid
private
bool
$_valid
= false
Methods
__construct()
public
__construct([float $latitude = null ][, float $longitude = null ]) : mixed
Parameters
- $latitude : float = null
- $longitude : float = null
Return values
mixed —getLatitude()
public
getLatitude() : float
Return values
float —getLongitude()
public
getLongitude() : float
Return values
float —isValid()
public
isValid() : bool
Return values
bool —checkRangeOfLongLat()
private
checkRangeOfLongLat() : bool
Return values
bool —exceptionOnInvalidity()
private
exceptionOnInvalidity() : mixed