xoa.geo.haversine

xoa.geo.haversine(lon0, lat0, lon1, lat1, radius=6371000.0)[source]

Haversine distance between two points

Parameters:
  • lon0 (float, array_like) – Longitude of the first point(s)

  • lat0 (float, array_like) – Latitude of the first point(s)

  • lon1 (float, array_like) – Longitude of the second point(s)

  • lat1 (float, array_like) – Latitude of the second point(s)

  • radius (float) – Radius of the sphere which defaults to the earth radius

Returns:

float, array_like – Distance(s)