views:

44

answers:

1

When calling Location.distanceBetween() and getting the initial and final bearing, what scale is the bearing in? I'm getting negative values, which doesn't make sense to me. Bearing goes from 0 to 360 degrees (relative or absolute, it doesn't matter). The only thing I could think of is N through E through S is 0 through 180 degrees, and N through W through S is 0 through -180 degrees.

Can someone shed some light on this?

A: 

As you already concluded:

In the function description, degrees East of true North are mentioned. True North is geographical, which somewhat differs from North determined via Earth magnetism (South magnetic pole).

So, if you are moving towards East, your bearing is 90 degrees, if you are moving towards South it is +180 or - 180, if you are moving towards West it is -90 degrees.

Desiderio
Odd. I wonder why they didnt just stick with the standard 360 degree bearing thingy that, you know, the rest of the world uses. All those years as a boy scout...wasted!
Turbo
I understand your disappointment. But that's how the things are.
Desiderio