Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7862 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi

I have heard that there is a formula to determine the distance between two

gps ( latitude and longitude ) values. Does anyone know about this or have a sample file where they use this? Thanks

Dave

Posted

What you are looking for is called the great circle distance formula:

Distance=arccos(sin(LatitudeLocation1)*sin(LatitudeLocation2)+cos(LatitudeLocation1)*cos(LatitudeLocation2)*cos(LongitudeLocation2-LongitudeLocation1))*60

This formula is from my old HP-21 calculator manual. I think the result is in miles. Filemaker's trig functions require the Latitude and Longitude values to be in radians, not degrees. So you may need to use the Radian() function to convert from degrees, and Filemaker doesn't have an arccos() function. You can derive it with the sin cos and atan function, but I have forgotten the formula. Maybe someone else can help out here.

Posted

Wow Bob, I'm impressed. You still have the *manual* from an HP-21!

Posted

I never throw anything out. I still have the manual. I see you still have 5 stars. Wanna trade?

In fact I still have the calculator. Old HP's never die!

This topic is 7862 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.