Setting maximum radius when using distance search.
Currently, the example on that page: https://developers.coveo.com/display/SearchREST/Query+Function
The question is this: When we make the Query Function query can we provide a maximum value for the distance between the lat/long sent to the query and the lat/long of the result? This way only results that meet the "Show me results within 500 meters" query would be returned.
The query function in your example will produce a distance field, on which you can perform all the operations typically available for a numerical field.
In your case, you could simply add @distance <= 500 to only keep results within 500 meters.
When I attempt to call our REST Api with this query string:
I get the following back in the results:
The format is the same that I found in the Query Function example found here: https://developers.coveo.com/display/public/SearchREST/Query+Function
Any ideas what syntax I should be using?