ph_latlongendbearing PowerHome formula function
Description
Given a starting latitude/longitude and an ending latitude/longitude, calculates the final (end) bearing in degrees
Syntax
ph_latlongendbearing ( d_lat1, d_long1, d_lat2, d_long2 )
Argument Description
d_lat1 Double. Starting latitude in decimal degrees
d_long1 Double. Starting longitude in decimal degrees
d_lat2 Double. Ending latitude in decimal degrees
d_long2 Double. Ending longitude in decimal degrees
Return value
Double. Returns the final (end) bearing in decimal degrees going from the starting point to the ending point
Usage
Use this function to calculate the final (end) bearing after traveling from a starting lat/long to an ending lat/log
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_latlongendbearing(28.78, -81.25,29.092410, -81.081711) - Returns an end bearing of 25.28137896027616