Docstoc

EDC

Document Sample
EDC Powered By Docstoc
					MODEL 1 - Simple
Approximate distance in Kilometers:
sqrt(x * x + y * y) * 111.111 km

                  Lat                Lon
P1                          10.71096     78.26462 Enter Latitude & Longitude Position of First Point
P2                          10.66514     78.84191 Enter Latitude & Longitude Position of Second Point
diff                         0.04582      0.57729
                        0.002099472 0.333263744
                        0.335363217
                        0.579105531
Distance                 64.3449947 Km


MODEL 2 - Improved Approximate
Improved approximate distance in Kilometers:
sqrt(x * x + y * y)
where x = 111.111 * (lat2 - lat1)
and y = 111.111 * (lon2 - lon1) * cos(lat1/(180/(22/7)))

                  Lat                Lon
P1                          10.71096     78.26462 Enter Latitude & Longitude Position of First Point
P2                          10.66514     78.84191 Enter Latitude & Longitude Position of Second Point
diff                         0.04582      0.57729
x                        5.09110602
y                       63.02482068
                        25.91936051 3972.128022
                        3998.047382
Distance                63.23011452 km


MODEL 3 - More Accurate
Great Circle Distance Formula using radians: Kilometers
6,378.8 km * arccos[sin(lat1) * sin(lat2) + cos(lat1) * cos(lat2) * cos(lon2 - lon1)]

                  Lat                Lon
P1                          10.71096     78.26462 Enter Latitude & Longitude Position of First Point
P2                          10.66514     78.84191 Enter Latitude & Longitude Position of Second Point
Pl Rad                  0.187016762 1.366525111
P2 Rad                  0.186216730 1.376604778
Sin P1                  0.185928506
Sin P2                  0.185142365
Cos P1                  0.982563276
Cos P2                  0.982711710
Cos (lon2-Lon1)         0.999949201
D                       0.999950629
ArcCos(D)               0.009936916
Distance                63.38559662 km

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:4
posted:8/1/2012
language:English
pages:1