I have the following PHP script that filters a received value ($r) with location data associated with using the haversine formula to only show values that are within a cert