DistanceGeoCoord ( Lat1deg ; Lat1mm ; Lat1ss ; Lon1deg ; Lon1mm ; Lon1ss ; Lat2deg ; Lat2mm ; Lat2ss ; Lon2deg ; Lon2mm ; Lon2ss ; U ; Version )
Rate this function: Average rating: 5.0 (1 vote) Discuss this Custom Function
Edward_Souza, n/a
n/a
Measure the distance between two geographic coordinates
Sample Input:
DistanceGeoCoord ( 50 ; 6 ; 44 ; 8 ; 44 ; 5 ; 52 ; 31 ; 20 ; 13 ; 17 ; 51 ; Km ; Radial )
|
|
Sample Output:
/* Distance between Frankfurt and Berlin
(If "U" = Km) 418.34
(If "U" = Mi) 259.95 |
|
Description:
This is a rather complete and flexible custom function on measuring linear distances between two geographic coordinates, for it allows the user/developer to insert coordinate values in DMS (Degrees, Minutes, and Seconds) and DD (Decimal Degrees). Yet, it goes a bit further on flexibility , for it permits the calculation of angle functions either in Degrees or Radians.
The function itself is quite straightforward and easy to understand. Please refer to the text in the beginning and inside-function notes for deeper information.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
MaxLength ( field, foundCnt ) |
| |
(Thu, Jul 29, 4:37pm) |
| 2. |
DayCounter ( Date_Start ; Date_End; Days_of_Week ) |
| |
(Wed, Jul 28, 1:20pm) |
| 3. |
Is_FM_Go_iPad |
| |
(Fri, Jul 23, 7:55am) |
| 4. |
Is_FM_Go |
| |
(Fri, Jul 23, 7:54am) |
| 5. |
IsFilled ( field ) |
| |
(Wed, Jul 21, 7:19am) |
| 6. |
DateQuarterAsRange ( theDate ) |
| |
(Thu, Jul 15, 5:37pm) |
| 7. |
DateQuarterEnd ( theDate ) |
| |
(Thu, Jul 15, 5:35pm) |
| 8. |
DateQuarterBegin ( theDate ) |
| |
(Thu, Jul 15, 5:30pm) |
 |
|
hello, edward,
this is nice function. thanks for sharing it.
i would like to know how to add different measures in this function, and how to do it.
thank you, jean
Gil Jean, Paris Fr
February 26, 2010 8:34am