From 2aa5cb731eec48c1823dd0a996b6df2fbc6aa1e3 Mon Sep 17 00:00:00 2001 From: Bradley Date: Thu, 26 Sep 2024 09:51:21 +0100 Subject: [PATCH] Add get geocode data method to interface --- src/Interface/Entity/GeocodeInterface.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Interface/Entity/GeocodeInterface.php b/src/Interface/Entity/GeocodeInterface.php index d661213..644df31 100644 --- a/src/Interface/Entity/GeocodeInterface.php +++ b/src/Interface/Entity/GeocodeInterface.php @@ -17,6 +17,13 @@ interface GeocodeInterface public function setLongitude(float $lon): self; + /** + * Used by {@see Pcm\GeocodeBundle\Service\Geocoder} to retrieve raw data for geocoding. + * + * @return string Data to use when geocodind an entity + */ + public function getGeocodeData(): string; + /** * @return bool True if both latitude and longitude are set and are not (0, 0) */