You are here

public function GeocoderBase::geocode in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/GeocoderBase.php \Drupal\geolocation\GeocoderBase::geocode()
  2. 8 src/GeocoderBase.php \Drupal\geolocation\GeocoderBase::geocode()

Geocode an address.

Parameters

string $address: Address to geocode.

Return value

array||null Location or NULL.

Overrides GeocoderInterface::geocode

6 methods override GeocoderBase::geocode()
Dummy::geocode in tests/modules/geolocation_dummy_geocoder/src/Plugin/geolocation/Geocoder/Dummy.php
Geocode an address.
GoogleGeocodingAPI::geocode in modules/geolocation_google_maps/src/Plugin/geolocation/Geocoder/GoogleGeocodingAPI.php
Geocode an address.
GooglePlacesAPI::geocode in modules/geolocation_google_maps/modules/geolocation_google_places_api/src/Plugin/geolocation/Geocoder/GooglePlacesAPI.php
Geocode an address.
Nominatim::geocode in modules/geolocation_leaflet/src/Plugin/geolocation/Geocoder/Nominatim.php
Geocode an address.
Photon::geocode in modules/geolocation_leaflet/src/Plugin/geolocation/Geocoder/Photon.php
Geocode an address.

... See full list

File

src/GeocoderBase.php, line 163

Class

GeocoderBase
Class GeocoderBase.

Namespace

Drupal\geolocation

Code

public function geocode($address) {
  return NULL;
}