deniz
deniz

Reputation: 2567

Android, Working on GPS but I don't know how real world coordinates work

I want to find angle between two coordinates with latitude and longitude on the World, but i really don't know how it works because World is a globe and i am not sure if simple arctan(dy/dx) works. Should i think it as a 2D plane or what ? Will i get accurate results using simple arctan between two world coordinates ?

Upvotes: 1

Views: 104

Answers (2)

bowsneiko
bowsneiko

Reputation: 21

i am not exactly sure what you wanna calculate, because with latitude and logitude you just get a point on the globe.

or do you want the angle of the intersection between the circle of latitude, circle of longitude?

You can read in the WGS84 (World Geodetic System 1984) how to get from geodetic coordinates to any other, if you give me a little bit more input i can help you with your data.

regards

Upvotes: 1

Uriel Frankel
Uriel Frankel

Reputation: 14622

You can insert the coordinates to 2 Location objects, and use the bearingTo method. you'll receive the angle as a float.

Upvotes: 2

Related Questions