class GeoPolygonQuery implements JsonSerializable, SearchQuery (View source)

A FTS query that finds all matches within the given polygon area.

Methods

mixed
jsonSerialize()

Specify data which should be serialized to JSON

__construct(array $coordinates)

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(array $coordinates)

No description

Parameters

array $coordinates

list of objects of type Coordinate

See also

Coordinate

GeoPolygonQuery boost(float $boost)

No description

Parameters

float $boost

Return Value

GeoPolygonQuery

GeoPolygonQuery field(string $field)

No description

Parameters

string $field

Return Value

GeoPolygonQuery