Свойство | Тип | Описание | |
---|---|---|---|
$_geohash | string | Geohash. | |
$_key | string | Key. | |
$_latitude | float | Latitude. | |
$_locationType | string | Decides if this query uses latitude/longitude or geohash for the location. Values are "latlon" or "geohash". | |
$_longitude | float | Longitude. |
Метод | Описание | |
---|---|---|
__construct ( string $key, array | string $location ) | Create GeoDistance object. | |
setGeohash ( string $geohash ) | ||
setKey ( string $key ) | ||
setLatitude ( float $latitude ) | ||
setLocation ( array | string $location ) | ||
setLongitude ( float $longitude ) | ||
toArray ( ) : array |
Метод | Описание | |
---|---|---|
_getLocationData ( ) : array | string |
protected _getLocationData ( ) : array | string | ||
Результат | array | string |
public setLocation ( array | string $location ) | ||
$location | array | string |
protected string $_locationType | ||
Результат | string |