From 02882e2902cb2ac410f4a776c7ef5b1737b5e730 Mon Sep 17 00:00:00 2001 From: Tom Lynch Date: Thu, 16 Dec 2021 14:44:01 +0000 Subject: [PATCH] Add parish to line 2 of the PostcodesIO parseResponse --- src/Objects/PostcodesIo.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Objects/PostcodesIo.php b/src/Objects/PostcodesIo.php index bbd6b23..62dda0d 100644 --- a/src/Objects/PostcodesIo.php +++ b/src/Objects/PostcodesIo.php @@ -59,6 +59,7 @@ private function parseResponse(Response $response) $addresses = []; $address = new Address(); + $address->line2 = $postcodesIoAddress->parish; $address->townCity = $postcodesIoAddress->admin_district; $address->county = $postcodesIoAddress->admin_county; $address->postcode = $postcodesIoAddress->postcode;