Skip to content

Commit

Permalink
Merge pull request #4 from LNCH/master
Browse files Browse the repository at this point in the history
Add parish to line 2 of the PostcodesIO parseResponse
  • Loading branch information
DivineOmega committed Dec 16, 2021
2 parents 4951aa1 + 02882e2 commit df0d717
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 df0d717

Please sign in to comment.