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 Criterion¶
The MapLocationDistance
Search Criterion
searches content based on the distance between the location contained in a MapLocation Field and the provided coordinates.
Arguments¶
target
- string representing the Field definition identifieroperator
- Operator constant (IN, EQ, GT, GTE, LT, LTE, BETWEEN)distance
- float(s) representing the distances between the map location in the Field and the location provided inlatitude
andlongitude
argumentslatitude
- float representing the latitude of the location to calculate distance tolongitude
- float representing the longitude of the location to calculate distance to
The distance
argument requires:
- a list of floats for
Operator::IN
orOperator::BETWEEN
- a single float for other Operators
Limitations¶
The MapLocationDistance
Criterion is not available in Repository filtering.
Example¶
PHP¶
1 |
|