libpysal.cg.harcdist(p0, p1, lonx=True, radius=6371.0)[source]¶Alternative arc distance function, uses haversine formula
| Parameters: | p0 : first point as a tuple in decimal degrees p1 : second point as a tuple in decimal degrees lonx : boolean to assess the order of the coordinates,
radius : radius of the earth at the equator as a sphere
|
|---|---|
| Returns: | d : distance in units specified, km, miles or radians (for None) |