How to tell direction of two geo points
Asked Answered
M

1

6

i've 3 geo points

(start Position)11.986242477259117, 79.84657287597656`

(middle position)11.984521304799278, 79.84583258628845

(end postion)11.985014568760436, 79.844491481781

I've get knowledge from How to draw a path on a map using kml file?

and i've drawed the line between geo points lik this.

enter image description here

i've calculate the distance using How to calculate distance between two locations using their longitude and latitude value

My question is, when user stands near on "A" (start position), i want to tell the direction, you hav move to "North","East","West","South" like this,.

if user wrongly move other direction, Need to tell like "You hav mov wrong direction" and say correct direction.

How to get the direction between two geo points.?

I've get the degee from Get direction (compass) with two longitude/latitude points

it returns some degree, But i'm unbale to tell the correct direction.

How to get the direction between two geo points.?

Mozell answered 4/8, 2012 at 7:27 Comment(1)
Take a look @ #3210399Shadoof

© 2022 - 2024 — McMap. All rights reserved.