title: Generate coordinates in between two known points
body: <p>I work on a GIS project, and am having trouble on a mathematical problem.
  I want to do the same process as that algorithm: <a href="https://stackoverflow.com/questions/22063201/how-to-generate-coordinates-in-between-two-known-points">How to generate coordinates in between two known points</a>, but by modifying it so as to calculate the coordinates of a geographical point based on a percentage (% represents a point of A to B).</p>
  
  <p>Could you help me adapt this algorithm in javascript?</p>
  
  <p>Thanks!</p>