diff --git a/src/Objects/Address.php b/src/Objects/Address.php index bf306f1..fe0475f 100644 --- a/src/Objects/Address.php +++ b/src/Objects/Address.php @@ -12,4 +12,6 @@ class Address public $county = ''; public $country = 'United Kingdom'; public $postcode = ''; + public $longitude = null; + public $latitude = null; } diff --git a/src/Objects/IdealPostcodes.php b/src/Objects/IdealPostcodes.php index a0c069d..820c3d1 100644 --- a/src/Objects/IdealPostcodes.php +++ b/src/Objects/IdealPostcodes.php @@ -70,6 +70,8 @@ private function parseResponse(Response $response) $address->county = $idealPostcodesAddress->county; $address->country = $idealPostcodesAddress->country; $address->postcode = $idealPostcodesAddress->postcode; + $address->longitude = $idealPostcodesAddress->longitude; + $address->latitude = $idealPostcodesAddress->latitude; $addresses[] = $address; }