Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate 100 meter distance when the latitude and longitude is a known point

I want to know if it is possible to calculate a 100 meter distance around a given point with a known latitude and longitude. I have some coordinates in a MySQL database and want to know if a specific coordinate lies in 100 meter range from a given point.

I am using the Android platform. I know only one coordinate (Longitude and Latitude) where I am standing (current location) and I want to set the distance range (say 100 meters).

I have more coordinates saved in the database and want to calculate if the other points saved in the database are in 100 meter range from my current location or not. I don't know if I can use GIS database in my application.

like image 552
SilentCoder Avatar asked Dec 12 '10 05:12

SilentCoder


People also ask

How do you convert latitude to distance?

One degree of latitude equals approximately 364,000 feet (69 miles), one minute equals 6,068 feet (1.15 miles), and one-second equals 101 feet. One-degree of longitude equals 288,200 feet (54.6 miles), one minute equals 4,800 feet (0.91 mile), and one second equals 80 feet.

How do I calculate distance using latitude and longitude in Excel?

Here are the formulas for degree coordinates: Cell B5: =distvincenty(B2,C2,B3,C3) Cell D5: =MOD(DEGREES(ATAN2(COS(B2*PI()/180) *SIN(B3*PI()/180)-SIN(B2*PI()/180) *COS(B3*PI()/180) *COS(C3*PI()/180-C2*PI()/180), SIN(C3*PI()/180-C2*PI()/180) *COS(B2*PI()/180)))+360,360)

What is the distance between two latitude longitude points?

Each degree of latitude is approximately 69 miles (111 kilometers) apart. At the equator, the distance is 68.703 miles (110.567 kilometers). At the Tropic of Cancer and Tropic of Capricorn (23.5 degrees north and south), the distance is 68.94 miles (110.948 kilometers).


1 Answers

A complete code for calculating the distance between two points given the latitude and longitude http://www.movable-type.co.uk/scripts/latlong.html

like image 162
basarat Avatar answered Nov 01 '22 21:11

basarat