Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a requirement of showing locations within 10 KM radius to the user's current location. I got the location of the user and marked it on the map with the following code.

MarkerOptions marker = new MarkerOptions().position(new
LatLng(location.getLatitude(),location.getLongitude()))
.title(mCursor.getString(mCursor.getColumnIndex("Current Location")));

I have a table tbl_locations with fields (lat,long,name).
My requirement is to show all the locations which are within 10 KM radius to user's location.
Posted
Comments
JoCodes 13-Aug-14 3:24am    
Can you elaborate "to show all the locations which are within 10 KM radius to user's location".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900