public function ProximityFilter::getLatitudeValue in Geolocation Field 8
Retrieve latitude value from configured source.
Return value
float|null Latitude value.
1 call to ProximityFilter::getLatitudeValue()
- ProximityFilter::query in src/
Plugin/ views/ filter/ ProximityFilter.php - Add this filter to the query.
File
- src/
Plugin/ views/ filter/ ProximityFilter.php, line 644
Class
- ProximityFilter
- Filter handler for search keywords.
Namespace
Drupal\geolocation\Plugin\views\filterCode
public function getLatitudeValue() {
$proximity_center = $this
->getProximityCenterBySource();
if (!is_null($proximity_center['latitude'])) {
return $proximity_center['latitude'];
}
return NULL;
}