Skip to content

Commit

Permalink
Add parish to line 2 of the PostcodesIO parseResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
LNCH committed Dec 16, 2021
1 parent 4951aa1 commit 02882e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Objects/PostcodesIo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 02882e2

Please sign in to comment.