Skip to content

Commit

Permalink
Added compatibility parameter to US Street Address API
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Devenport authored and Eric Devenport committed Jun 14, 2024
1 parent 514c019 commit 9904f63
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/smartystreets/api/us_street/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ private void populateQueryString(Lookup address, Request request) {
request.putParameter("candidates", "5");
else
request.putParameter("candidates", Integer.toString(address.getMaxCandidates()));

//This is a temporary flag meant to fix an intermittent data issue
//Unless explicitly instructed by the Smarty Tech Support team, DO NOT use this parameter
request.putParameter("compatibility", address.getCompatibility());

}

Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/smartystreets/api/us_street/Lookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class Lookup implements Serializable {
private String format;
private int candidates;

//This is a temporary flag meant to fix an intermittent data issue
//Unless explicitly instructed by the Smarty Tech Support team, DO NOT use this parameter
private String compatibility;

//endregion

//region [ Constructors ]
Expand Down Expand Up @@ -131,6 +135,13 @@ public String getMatch() {
return null;
}

//This is a temporary flag meant to fix an intermittent data issue
//Unless explicitly instructed by the Smarty Tech Support team, DO NOT use this parameter
@JsonProperty("compatibility")
public String getCompatibility() {
return this.compatibility;
}

@JsonProperty("format")
public String getFormat(){
if (this.format == null)
Expand Down Expand Up @@ -203,6 +214,11 @@ public void setUrbanization(String urbanization) {
this.urbanization = urbanization;
}

//This is a temporary flag meant to fix an intermittent data issue
//Unless explicitly instructed by the Smarty Tech Support team, DO NOT use this parameter
public void setCompatibility(String compatibility) {
this.compatibility = compatibility;
}
/**
* Sets the match output strategy to be employed for this lookup.<br>
*
Expand Down

0 comments on commit 9904f63

Please sign in to comment.