libpysal.cg.geointerpolate

libpysal.cg.geointerpolate(p0, p1, t, lonx=True)[source]

Finds a point on a sphere along the great circle distance between two points on a sphere also known as a way point in great circle navigation

Parameters
p0first point as a tuple in decimal degrees
p1second point as a tuple in decimal degrees
tproportion along great circle distance between p0 and p1

e.g., t=0.5 would find the mid-point

lonxboolean to assess the order of the coordinates,

for lon,lat (default) = True, for lat,lon = False

Returns
x,ytuple in decimal degrees of lon-lat (default) or lat-lon,

depending on setting of lonx; in other words, the same order is used as for the input