문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top