You are here

public function GeocoderCountryFormattingInterface::format in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/GeocoderCountryFormattingInterface.php \Drupal\geolocation\GeocoderCountryFormattingInterface::format()

Reverse geocode an address.

Intended return subject to available data:

[
  'organization',
  'address_line1',
  'address_line2',
  'postal_code',
  'sorting_code',
  'dependent_locality',
  'dependent_locality_code',
  'locality',
  'locality_code',
  'administrative_area',
  'administrative_area_code',
  'country',
  'country_code',
  'formatted_address',
];

Parameters

array $atomics: Address components.

Return value

array||null Address or NULL.

1 method overrides GeocoderCountryFormattingInterface::format()
GeocoderCountryFormattingBase::format in src/GeocoderCountryFormattingBase.php
Reverse geocode an address.

File

src/GeocoderCountryFormattingInterface.php, line 43

Class

GeocoderCountryFormattingInterface
Defines an interface for geolocation geocoder country plugins.

Namespace

Drupal\geolocation

Code

public function format(array $atomics);