Skip to content

Commit

Permalink
Add longitude and latitude to Ideal Postcodes addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Oct 25, 2019
1 parent a6da491 commit 605e389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Objects/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ class Address
public $county = '';
public $country = 'United Kingdom';
public $postcode = '';
public $longitude = null;
public $latitude = null;
}
2 changes: 2 additions & 0 deletions src/Objects/IdealPostcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 605e389

Please sign in to comment.