You are here

public function GeocoderInterface::geocode in Geocoder 8.3

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

Geocodes a string.

Parameters

string $address_string: The string to geocode.

\Drupal\geocoder\GeocoderProviderInterface[] $providers: A list of Geocoder providers to use to perform the geocoding.

Return value

\Geocoder\Model\AddressCollection|\Geometry|null An address collection or NULL on geocoding failure.

1 method overrides GeocoderInterface::geocode()
Geocoder::geocode in src/Geocoder.php
Geocodes a string.

File

src/GeocoderInterface.php, line 23

Class

GeocoderInterface
Provides a geocoder factory method interface.

Namespace

Drupal\geocoder

Code

public function geocode(string $address_string, array $providers);