吕 吕雪松 Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-17 #3 哈,想要单位为米的距离?只要注意地球扁率就行。当然也不是直接求经纬度数值的距离 再同地球半径相比那么简单。
杰 杰克 Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-24 #5 distance = ( Earth Radius ) * arccos ( cos (90 - lat2) * cos (90 - lat1) + sin (90 - lat2) * sin (90 - lat1) * cos (lon2 - lon1) ) A = arcsin ( sin (90 - lat2) * sin (lon2 - lon1) / sin (b) )
distance = ( Earth Radius ) * arccos ( cos (90 - lat2) * cos (90 - lat1) + sin (90 - lat2) * sin (90 - lat1) * cos (lon2 - lon1) ) A = arcsin ( sin (90 - lat2) * sin (lon2 - lon1) / sin (b) )