You are here

public function LocationInputInterface::getParsedInput in Search API Location 8

Returns the parsed user input.

Parameters

array $input: The text entered by the user, contains either "value" or "lat"+"lng" as keys.

Return value

mixed Returns a string with "latitude,longitude" if we can find a location. NULL otherwise.

3 methods override LocationInputInterface::getParsedInput()
Geocode::getParsedInput in modules/search_api_location_geocoder/src/Plugin/search_api_location/location_input/Geocode.php
Returns the parsed user input.
Map::getParsedInput in src/Plugin/search_api_location/location_input/Map.php
Returns the parsed user input.
Raw::getParsedInput in src/Plugin/search_api_location/location_input/Raw.php
Returns the parsed user input.

File

src/LocationInput/LocationInputInterface.php, line 38

Class

LocationInputInterface
Defines the required methods for a Location Input plugin.

Namespace

Drupal\search_api_location\LocationInput

Code

public function getParsedInput(array $input);