Skip to content

Commit

Permalink
Removed deprecated range option
Browse files Browse the repository at this point in the history
  • Loading branch information
savannah-ryan committed Apr 2, 2024
1 parent ba93815 commit 5c26726
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions examples/USStreetLookupsWithMatchStrategyExamples.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ public function run() {
$addressWithStrictStrategy->setState("utah");
$addressWithStrictStrategy->setMatchStrategy(Lookup::STRICT);

$addressWithRangeStrategy = new Lookup();
$addressWithRangeStrategy->setStreet("693 W 1150 S");
$addressWithRangeStrategy->setCity("provo");
$addressWithRangeStrategy->setState("utah");
$addressWithRangeStrategy->setMatchStrategy(Lookup::INVALID);

$addressWithInvalidStrategy = new Lookup();
$addressWithInvalidStrategy->setStreet("9999 W 1150 S");
$addressWithInvalidStrategy->setStreet("693 W 1150 S");
$addressWithInvalidStrategy->setCity("provo");
$addressWithInvalidStrategy->setState("utah");
$addressWithInvalidStrategy->setMatchStrategy(Lookup::ENHANCED);
$addressWithInvalidStrategy->setMatchStrategy(Lookup::INVALID);

$addressWithEnhancedStrategy = new Lookup();
$addressWithEnhancedStrategy->setStreet("9999 W 1150 S");
$addressWithEnhancedStrategy->setCity("provo");
$addressWithEnhancedStrategy->setState("utah");
$addressWithEnhancedStrategy->setMatchStrategy(Lookup::ENHANCED);

try {
$batch->add($addressWithStrictStrategy);
$batch->add($addressWithRangeStrategy);
$batch->add($addressWithInvalidStrategy);
$batch->add($addressWithEnhancedStrategy);

$client->sendBatch($batch);
$this->displayResults($batch);
Expand Down
1 change: 0 additions & 1 deletion src/US_Street/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
class Lookup implements \JsonSerializable {
//region [ Fields ]
const STRICT = "strict";
const RANGE = "range"; // Deprecated
const INVALID = "invalid";
const ENHANCED = "enhanced";

Expand Down

0 comments on commit 5c26726

Please sign in to comment.