Brian Dunning's FileMaker Custom Functions

LocationDistance ( latitude1 ; longitude1 ; latitude2 ; longitude2 )

Distance between two locations given by coordinates

  Average rating: 4.4 (32 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
LocationDistance (
37.7749296 ; -122.419416; // San Francisco
40.7143528 ; -74.0059731 // New York
)
  Sample output:
4139112.9605735081163149
// ~2572 miles

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Calculates the distance between two points on the surface of the Earth. The calculation used is typically accurate to within several centimeters.

 

Comments

Ros   Ros, Calgary
Jan 3, 2015
Very useful, ...thank you...!
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: