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
Michael George Consulting

Share on Facebook Share on Twitter

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

  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.



Log in to post comments.


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

Under construction. Email me your wish list for improvements.