You are here

public function ProviderInterface::geocode in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/ProviderInterface.php \Drupal\geocoder\ProviderInterface::geocode()

Geocode a source string.

Parameters

string $source: The data to be geocoded.

Return value

\Geocoder\Model\AddressCollection|\Geometry|null The address object or NULL.

1 method overrides ProviderInterface::geocode()
ProviderBase::geocode in src/ProviderBase.php
Geocode a source string.

File

src/ProviderInterface.php, line 22

Class

ProviderInterface
Provides an interface for geocoder provider plugins.

Namespace

Drupal\geocoder

Code

public function geocode($source);