方向我已經3個地理如何分辨兩個地理點
(起始位置)11.986242477259117,79.84657287597656`
(中間位置)11.984521304799278,79.84583258628845
(完現在的位置)11.985014568760436, 79.844491481781
我從How to draw a path on a map using kml file?
獲得知識,我已經drawed緣之間的界線點喜歡這一點。
我計算使用的距離How to calculate distance between two locations using their longitude and latitude value
我的問題是,當用戶在「A」(起始位置),我想告訴的方向,你甲肝移動到「站附近北「,」東「,」西「,」南「這樣的。
如果用戶錯誤地移動了其他方向,需要像「你有錯誤的方向」那樣告訴並說出正確的方向。
如何獲取兩個地理點之間的方向?
我已經得到Get direction (compass) with two longitude/latitude points
的DEGEE返回一定程度,但我unbale告訴正確的方向。
如何獲取兩個地理點之間的方向?
看看@ http://stackoverflow.com/questions/3209899/determine-compass-direction -from酮LAT-LON-到最其他 – cklab 2012-08-04 07:36:49