fix direction from coordinates
Merge pull request #6919 from BevapDin/fix-direction

fix direction from coordinates