Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

formula to determine distance between GPS LOCs?

Featured Replies

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

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.

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

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!

ASIN(x)=Int(Degrees(ATAN((1/SQR(1-x^2))))

ACOS(x)=Int(Degrees(ATAN(SQR((1-x^2)/x^2))))

Dj

Dj, is there a reason why you put everything inside the Int() function?

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.