Return 3 closest locations to a users location (geolocation) and list those locations for them

Return 3 closest locations to a users location (geolocation) and list those locations for them

Hi there,

In my app, I'm finding users geolocation. I also have a geolocaion of cities. I can put the geolocation data of cities in array or SQLite database. How do I get and display the 3 closest cities near the users location. 

Thanks

Joe