Uses haversine instead of distance formula.