# pysal.lib.cg.geointerpolate¶

pysal.lib.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: p0 : first point as a tuple in decimal degrees p1 : second point as a tuple in decimal degrees t : proportion along great circle distance between p0 and p1 e.g., t=0.5 would find the mid-point lonx : boolean to assess the order of the coordinates, for lon,lat (default) = True, for lat,lon = False x,y : tuple 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