Brian Dunning's FileMaker Custom Functions

fnLatLon.bearing ( lat1 ; lon1 ; lat2 ; lon2 )

Calculates initial bearing between two points on Earth's surface.

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

Michael George   Michael George - Show more from this author
Michael George Consulting

Share on Facebook Share on Twitter

  Sample input:
fnLatLon.bearing ( 45.0638888 ; -64.1808333 ; 44.6205555 ; -65.7583333 )
  Sample output:
248.936

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

This calculates the initial bearing for following a great-circle arc from a starting Latitude & Longitude to a destination Latitude & Longitude.

Please note that this function requires the Atan2 function that I have also listed on this site.

 

Comments

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: