Help with geolocation search

I am building an app that shows events within 5km radius. I have my searchbox,map and repeating group elements ready to run this function. My real intention is for the app to show event in the database then show the amount of distance between the event and the user more like trip advisor. I know how to constrain my search to radius of x km but i also need it to display to the user.

like event name: Music festival:distance:xm km

Please help