Click here to Skip to main content
15,749,072 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We are developing location based application. here we are having set of lat,long in database. Now we need to collect all lat long in particular area.


From above details i need to collect persons who are all in particular area(around 15 Kms in a place).

What I have tried:

We are using google maps to get latitude and longitude of a person and wil be stored in DB.

Can anyone help to sort out?
Updated 30-Aug-16 10:44am

1 solution

Computing the distance between 2 points on earth is a classical problem, its name is Great Circle Distance.
Great-circle distance - Wikipedia, the free encyclopedia[^]

Richard's links are worth a look too.
Share this answer

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