Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What scale is initial bearing in returned from Location.distanceBetween()

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?

like image 683
Turbo Avatar asked Dec 28 '22 06:12

Turbo


1 Answers

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.

like image 54
Zelimir Avatar answered Apr 25 '23 15:04

Zelimir