01 Direction
Direction and position are two different things
Direction is which way you face: north, east, 40 degrees. Position is where you are: a point on the Earth.
- A compass answers the first question and knows nothing about the second.
- A satellite receiver answers the second and knows nothing about the first.
Tarrow needs both, and one more: where the place is. Two of those three come from the phone's own sensors. The third travels inside the link.
The technical version
Heading is measured clockwise from north, 0 to 360 degrees. Bearing is the direction from your position to a target, on the same scale. The arrow shows the difference: bearing minus heading. Facing 40° with the place at 75° puts the arrow 35° to your right.
Magnetic north and true north differ by the declination, which depends on where you are. Phones correct for it when they have a position, so the heading a browser reports is true north where the position is known.