class GeoDistanceSearchQuery implements JsonSerializable, SearchQuery (View source)

A FTS query that finds all matches from a given location (point) within the given distance.

Both the point and the distance are required.

Methods

mixed
jsonSerialize()

Specify data which should be serialized to JSON

__construct(float $longitude, float $latitude, string $distance = null)

No description

boost(float $boost)

No description

field(string $field)

No description

Details

mixed jsonSerialize()

Specify data which should be serialized to JSON

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

__construct(float $longitude, float $latitude, string $distance = null)

No description

Parameters

float $longitude
float $latitude
string $distance

GeoDistanceSearchQuery boost(float $boost)

No description

Parameters

float $boost

Return Value

GeoDistanceSearchQuery

GeoDistanceSearchQuery field(string $field)

No description

Parameters

string $field

Return Value

GeoDistanceSearchQuery