fixed typo
calculate bearing if doesn't come from provider