mani bharataraju
mani bharataraju

Reputation: 162

getting direction from latitude and longitude

I have calculated the distance between two latitude and longitudes using the Haversine formula,but how can I know the direction to which I should move.

for example : the distance of a hotel is 10 m from my location but i don't know which direction it is. Hope it makes sense.

Upvotes: 0

Views: 217

Answers (1)

Blackbelt
Blackbelt

Reputation: 157487

If I haven't misunderstood, you should use the bearing. It refers always to north

Upvotes: 1

Related Questions