The naive version, and exactly how it fails Every geospatial feature starts life like this: ` js // do not ship this const donors = await Donor. find({ bloodType: 'B-', isAvailable: true });

const nearby = donors . map(d => ({ d, km: haversine(request.

Sponsored

Source: [Dev.to](https://dev.to/obaid03/matching-blood-donors-by-gps-the-geospatial-query-design-behind-geoblood-26dg)