title: Calculate Geolocation on line between two GeoLocations
body: <p>I have two known Google Geolocation points A and B. I need to return GeoLocation point C which is on AB line and on distance x from point A:</p>
  
  <pre><code>Geolocation returnGeolocationC(Geolocation A, Geolocation B, double x) {
       ...
       return C;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0wAUo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0wAUo.png" alt="enter image description here"></a></p>
  
  <p>I know that I can use Haversine formula and I can calculate AB distance and therefore I also have AC and CB distance. Any idea or hint how to implement this?</p>
  
  <p>Edit: Line is straight, no need to consider roads.</p>