You are here

public function GeofieldProximitySourceInterface::isValidLocation in Geofield 8

Check for a valid couple of latitude and longitude.

@todo: add more tests, particularly around max/min values.

Parameters

float $lat: The latitude value.

float $lon: The longitude value.

Return value

bool The flag indicates whether location is valid.

1 method overrides GeofieldProximitySourceInterface::isValidLocation()
GeofieldProximitySourceBase::isValidLocation in src/Plugin/GeofieldProximitySourceBase.php
Check for a valid couple of latitude and longitude.

File

src/Plugin/GeofieldProximitySourceInterface.php, line 27

Class

GeofieldProximitySourceInterface
Defines an interface for Geofield Proximity Source plugins.

Namespace

Drupal\geofield\Plugin

Code

public function isValidLocation($lat, $lon);