ph_latlongmidlat PowerHome formula function
Description
Calculates the midpoint latitude between a starting lat/long and an ending lat/long
Syntax
ph_latlongmidlat ( 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 latitude in decimal degrees that is midway between a starting lat/long and ending lat/long
Usage
Use this function along with the ph_latlongmidlong( ) function to find the midpoint lat/long between two supplied lat/long points
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_latlongmidlat(28.78, -81.25,29.092410, -81.081711) - Returns a midpoint latitude in decimal degrees of 28.93623116271454