LatLonRange
in package
Data structure to handle Latitude,Longitude bounding box
Table of Contents
Properties
- $max : LatLon
- $min : LatLon
- $validLatitude : mixed
- $validLongitude : mixed
Methods
- __construct() : mixed
- __destruct() : mixed
- __toString() : string
- Returns bounding box coordinates
- max() : LatLon
- Get max bouding box coordinates
- min() : LatLon
- Get min bouding box coordinates
Properties
$max
private
LatLon
$max
$min
private
LatLon
$min
$validLatitude
private
mixed
$validLatitude
= array('min' => -180, 'max' => 180)
$validLongitude
private
mixed
$validLongitude
= array('min' => -180, 'max' => 180)
Methods
__construct()
public
__construct(LatLon $min, LatLon $max) : mixed
Parameters
__destruct()
public
__destruct() : mixed
__toString()
Returns bounding box coordinates
public
__toString() : string
Return values
string —Bounding box in [%.5f,%.5f],[%.5f,%.5f] [min lat,lon],[max lat,lon] format
max()
Get max bouding box coordinates
public
max() : LatLon
Return values
LatLon —Max bouding box coordinates
min()
Get min bouding box coordinates
public
min() : LatLon
Return values
LatLon —Min bouding box coordinates