The ol.geom.greatCircleTrack() computes the great circle line beetween 2 points (shortest road between 2 poins).
Source: Calculate distance, bearing and more between Latitude/Longitude points