Свойство | Тип | Описание | |
---|---|---|---|
$databases | string | Array of available databases | |
$host | string | Host name to look up | |
$hostInfo | array | Host info | |
$latitude | string | Latitude value | |
$longitude | string | Longitude value |
Метод | Описание | |
---|---|---|
__construct ( array $options = [] ) : |
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 ( |
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 |
Метод | Описание | |
---|---|---|
getAvailableDatabases ( ) : void | Get available databases | |
getGeoIpHostInfo ( ) : void | Get GeoIp host information |
public __construct ( array $options = [] ) : |
||
$options | array | |
Результат |
protected getAvailableDatabases ( ) : void | ||
Результат | void |
public getDatabases ( ) : array | ||
Результат | array |
protected getGeoIpHostInfo ( ) : void | ||
Результат | void |
public isDbAvailable ( string $name ) : boolean | ||
$name | string | |
Результат | boolean |
protected string $databases | ||
Результат | string |