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 belongs
- fieldIdentifier- string representing the identifier of the MapLocation field to sort by
- latitude- float representing the latitude of the location to calculate distance to
- longitude- float representing the longitude of the location to calculate distance to - (optional)- sortDirection- Query or LocationQuery constant, either- Query::SORT_ASCor- Query::SORT_DESC
Limitations¶
The MapLocationDistance Sort Clause isn't available in Repository filtering.
Example¶
| 1 2 |  |