You are here

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\filter

Code

public function getLatitudeValue() {
  $proximity_center = $this
    ->getProximityCenterBySource();
  if (!is_null($proximity_center['latitude'])) {
    return $proximity_center['latitude'];
  }
  return NULL;
}