GeoDistanceSearchQuery implements JsonSerializable, SearchQuery
A FTS query that finds all matches from a given location (point) within the given distance.
Both the point and the distance are required.
Table of Contents
jsonSerialize() | mixed | |
---|---|---|
__construct() | mixed | |
boost() | GeoDistanceSearchQuery | |
field() | GeoDistanceSearchQuery |
Methods
jsonSerialize()
public
jsonSerialize(
)
: mixed
Return values
mixed__construct()
public
__construct(
$longitude :
float
, $latitude :
float
[, $distance :
string
= null ]
)
: mixed
Parameters
- $longitude : float
- $latitude : float
- $distance : string = null
Return values
mixedboost()
public
boost(
$boost :
float
)
: GeoDistanceSearchQuery
Parameters
- $boost : float
Return values
GeoDistanceSearchQueryfield()
public
field(
$field :
string
)
: GeoDistanceSearchQuery
Parameters
- $field : string