lat lng calculation question

Discussion in 'PHP' started by stephan2307, May 28, 2011.

  1. #1
    Hi,

    I am having the following problem.

    I have to lat lng coordinates. I have a function which calculates the distance in kilometer between these points.

    What I want to do now is create a function where I can enter a percentage and if gives me the lat lng coordinates for the point at x% between the 2 provided coordinates.

    so if I say 50% I want to get the coordinates for the point between the to coordinates if I say 10% I want the lat lng coordinates 10% of the total distance from the first provided coordinate.

    Anyone got any clue how to do it?
     
    stephan2307, May 28, 2011 IP