Show how you first get your position or just use a geographical point of interest (POI).
get a search result - sorted on tf-idf
Find distance to POI for each result and sort the list on min to max distance
use one of the two other functions to figure out where to cut the search result. Either all within a certain distance or distance that shows [n] results.
Both modules own and Geohash's.