SearchSortGeoDistance
in package
implements
JsonSerializable, SearchSort
Sort by a location and unit in the hits.
Interfaces, Classes and Traits
- JsonSerializable
- SearchSort
- Base interface for all FTS sort options in querying.
Table of Contents
- __construct() : mixed
- descending() : SearchSortGeoDistance
- Direction of the sort
- jsonSerialize() : mixed
- unit() : SearchSortGeoDistance
- Name of the units
Methods
__construct()
public
__construct(string $field, float $logitude, float $latitude) : mixed
Parameters
- $field : string
- $logitude : float
- $latitude : float
Return values
mixed —descending()
Direction of the sort
public
descending(bool $descending) : SearchSortGeoDistance
Parameters
- $descending : bool
Return values
SearchSortGeoDistance —jsonSerialize()
public
jsonSerialize() : mixed
Return values
mixed —unit()
Name of the units
public
unit(string $unit) : SearchSortGeoDistance
Parameters
- $unit : string