ph_latlongmidlong PowerHome formula function
Description
Calculates the midpoint longitude between a
starting lat/long and an
ending lat/long
Syntax
ph_latlongmidlong ( 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 longitude in decimal
degrees that is midway between a starting lat/long and ending lat/long
Usage
Use this function along with the
ph_latlongmidlat( ) 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_latlongmidlong(28.78,
-81.25,29.092410, -81.081711) - Returns a midpoint longitude in decimal
degrees of
-81.16598232655467