CRM_Contact_BAO_ProximityQuery
class CRM_Contact_BAO_ProximityQuery
Properties
static protected string | $_earthFlattening | ||
static protected | $_earthRadiusSemiMinor | ||
static protected | $_earthRadiusSemiMajor | ||
static protected | $_earthEccentricitySQ |
Methods
No description
Estimate the Earth's radius at a given latitude.
Convert longitude and latitude to earth-centered earth-fixed coordinates.
Convert a given angle to earth-surface distance.
Estimate the min and max longitudes within $distance of a given location.
Estimate the min and max latitudes within $distance of a given location.
No description
No description
Details
at line 61
static
initialize()
at line 87
static float
earthRadius(float $latitude)
Estimate the Earth's radius at a given latitude.
Default to an approximate average radius for the United States.
at line 105
static array
earthXYZ(float $longitude, float $latitude, float|int $height = 0)
Convert longitude and latitude to earth-centered earth-fixed coordinates.
X axis is 0 long, 0 lat; Y axis is 90 deg E; Z axis is north pole.
at line 130
static float
earthArcLength(float $angle, float $latitude)
Convert a given angle to earth-surface distance.
at line 142
static array
earthLongitudeRange(float $longitude, float $latitude, float $distance)
Estimate the min and max longitudes within $distance of a given location.
at line 174
static array
earthLatitudeRange(float $longitude, float $latitude, float $distance)
Estimate the min and max latitudes within $distance of a given location.
at line 218
static string
where(float $latitude, float $longitude, float $distance, string $tablePrefix = 'civicrm_address')
at line 266
static null
process(CRM_Contact_BAO_Query $query, array $values)
Process form.