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.

Eg.
Table1
a-->10.20321,45.12364
b-->10.20321,12.12345
c-->10.20321,45.12378

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?
Posted
Updated 30-Aug-16 10:44am
Comments

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