메소드 |
설명 |
|
__construct ( array $options = [] ) : Geo |
Constructor |
|
__get ( string $name ) : mixed |
Get method to return the value of hostInfo[$name]. |
|
calculateDistance ( array $origin, array $destination, integer $round = 2, boolean $km = false ) : mixed |
Method to calculate the distance between 2 sets of coordinate |
|
distanceTo ( Geo $dest, integer $round = 2, boolean $km = false ) : mixed |
Get distance from current Geo object coordinates to another |
|
getDatabases ( ) : array |
Get all available databases |
|
getHostInfo ( ) : array |
Get host info |
|
getLatitude ( ) : string |
Get latitude |
|
getLongitude ( ) : string |
Get longitude |
|
isDbAvailable ( string $name ) : boolean |
Get an available database |
|