Class GeometryBehavior
Behavior for geographic searches.
- Cake\ORM\Behavior
- BEdita\Core\Model\Behavior\GeometryBehavior
Namespace: BEdita\Core\Model\Behavior
Since: 4.0.0
Located at Core/src/Model/Behavior/GeometryBehavior.php
Since: 4.0.0
Located at Core/src/Model/Behavior/GeometryBehavior.php
Methods summary
protected
Cake\Database\Expression\FunctionExpression
|
#
getDistanceExpression( string|float[] $point1, string|float[] $point2 )
Get database expression to find distance between two points on a spheroid. |
public static
float[]
|
|
public
boolean
|
|
public
Cake\ORM\Query
|
Properties summary
protected
array
|
$_defaultConfig
|
#
[
'distanceFunction' => 'ST_Distance_Sphere',
'field' => 'coords',
'implementedFinders' => [
'geo' => 'findGeo',
],
]
|
protected
boolean
|
$hasGeoSupport
Store geometry support for current connection. |