Help with Maps Feature

Hi!
I was wondering how I would code my app so it would show all the nearest establishments of a certain criteria near the user. I’ll use restaurants as an example: the user would open the page and the map would immediately show all the restaurants within 10km to them without them having to specifically search for restaurants.

How would I code this? Help!!!