Android Question GoogleMapsExtras Circle radius find all location in there from SqlLite

yfleury

Active Member
Licensed User
Longtime User
Hi all
It's easy to make a circle (radius of 25 km) on google map.
But I need to find how all location inside this circle from database (over 10000 rows)
 

BillMeyer

Well-Known Member
Licensed User
Longtime User

This might help.
 
Upvote 0

yfleury

Active Member
Licensed User
Longtime User

This might help.
For a location, I need to find in DB all rows in radius of 25km from location. (background is useless)

I read your question like you want to get the locations from your DB that is within a circle defined on a map.
This makes it a SQL question and my first search gave me this answer.
https://stackoverflow.com/questions/2234204/find-nearest-latitude-longitude-with-an-sql-query
Sqlite don't have SQRT function. Nor Acos
 
Last edited:
Upvote 0
Top