MCPcopy Create free account
hub / github.com/F-Stack/f-stack / geohashGetDistanceIfInRadius

Function geohashGetDistanceIfInRadius

app/redis-6.2.6/src/geohash_helper.c:232–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232int geohashGetDistanceIfInRadius(double x1, double y1,
233 double x2, double y2, double radius,
234 double *distance) {
235 *distance = geohashGetDistance(x1, y1, x2, y2);
236 if (*distance > radius) return 0;
237 return 1;
238}
239
240int geohashGetDistanceIfInRadiusWGS84(double x1, double y1, double x2,
241 double y2, double radius,

Callers 1

Calls 1

geohashGetDistanceFunction · 0.85

Tested by

no test coverage detected