This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
MapLocationDistance Sort Clause¶
The MapLocationDistance
Sort Clause
sorts search results by the distance of the indicated MapLocation Field to the provided location.
Arguments¶
typeIdentifier
- string representing the identifier of the Content Type to which the MapLocation Field belongsfieldIdentifier
- string representing the identifier of the MapLocation Field to sort bylatitude
- float representing the latitude of the location to calculate distance tolongitude
- float representing the longitude of the location to calculate distance tosortDirection
(optional) - Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
.
Limitations¶
The MapLocationDistance
Sort Clause is not available in Repository filtering.
Example¶
1 2 |
|