Compass heading is not possible in Google Earth but go to
https://www.marinetraffic.com/en/ais . Make an account in upper right corner, Enter the nearest city in the search box,
Right click on your starting point, choose “Distance from here” in the pop up window, draw to your destination and you can read both Compass heading and distance.