This sample shows the new ArcGIS Online query parameters "distance" and "unit" in action.
The search geometry is buffered by "distance" units.
We've long been able to search by complex criteria (custom polygons, closest features by road network, etc.) but now you can just provide a point and distance!!
Coming to ArcGIS Server at 10.3.