Documentation

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.

Interfaces, Classes and Traits

JsonSerializable
SearchQuery
Common interface for all classes, which could be used as a body of SearchQuery

Table of Contents

__construct()  : mixed
boost()  : GeoDistanceSearchQuery
field()  : GeoDistanceSearchQuery
jsonSerialize()  : mixed

Methods

__construct()

public __construct(float $longitude, float $latitude[, string $distance = null ]) : mixed
Parameters
$longitude : float
$latitude : float
$distance : string = null
Return values
mixed

jsonSerialize()

public jsonSerialize() : mixed
Return values
mixed

Search results