Wednesday, 2 October 2013

How to get a new gps coordinate at a known distance that lies between a known start and end gps coordinate?

How to get a new gps coordinate at a known distance that lies between a
known start and end gps coordinate?

I am working on google maps api + python code, And i'm kinda stuck with a
doubt. I basically have 2 gps co-ordinates, start and end point, and i am
able to calculate the shortest distance between them using the ideas i got
from stackoverflow. for example lets say the distance between (x1,y1) &
(x2,-y2) is 100 meters. Now the next task is to get a list of coordinates
which is lying on the same path between start & end point 10 metres
apart(which basically would be 9 more coordinates coz the 10th will be the
end point which i already know). I can apply ratio calculation and get a
(x,y) out but keeping the earth's spherical structure in mind is there any
other algorithm, theorem, package or solution you'd recommend? I'd
appreciate any thoughts that you'd like to share. thanks.
also will the solution mentioned in this link work? Adding distance to a
GPS coordinate

No comments:

Post a Comment