ph_latlongstartbearing PowerHome formula function
Description
Given a starting latitude/longitude and an ending latitude/longitude, calculates the initial (start) bearing in degrees
Syntax
ph_latlongstartbearing ( 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 initial (start) bearing in decimal degrees going from the starting point to the ending point
Usage
Use this function to calculate the initial (start) bearing in order to travel from a starting lat/long and arrive at an ending lat/log
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_latlongstartbearing(28.78, -81.25,29.092410, -81.081711) - Returns a start bearing of 25.1999544221211