Comments (5)
postal
is actually the default in this case, so 3.10.7 should work great for you! The flaw that you may come across is that the google client decodes semi colons before sending the request. The Smarty API adheres to HTTP standards which necessitate encoding semi colons - so if you try to filter multiple states, for example, it'll only filter the first state entered in the query. This is the unfortunate bug that we were fixing by moving to the built in HTTPClient in Java 11 but barring that use case, version 3.10.7 should work for you without a hitch!
from smartystreets-java-sdk.
Duncan,
Thank you so much for the quick response. I agree. If 3.10.7 defaults to postal
, then it would work great for us. However, the response results I'm getting back with version 3.10.7 are returning P.O. Box autocomplete suggestions. I apologize for the screenshot, but I couldn't find a way to enable network logs for SmartyStreets. In the screenshot, you can see on the left hand side that I have added com.smartystreets.api:smartystreets-java-sdk:3.10.7
as a dependency. I added a break point where the results are being returned, and you can see in the bottom right hand corner of Android Studio, the values for the Suggestion
objects in the lookup.results
list contain PO Boxes. I also included what is being displayed in our app for further context. Is there maybe something I'm missing I need to do with version 3.10.7 to ensure only postal
address are returned?
from smartystreets-java-sdk.
PO Boxes are valid postal addresses. There is not a way to eliminate them from the results in US Autocomplete Pro.
Your earlier concern was that non-postal addresses would not be returned with the older version of the Java SDK (which has no option to set the "source" parameter). Since "postal" is the default, you will never get non-postal addresses back.
from smartystreets-java-sdk.
Ok, thank you for the clarification. I appreciate it. That answers my question.
from smartystreets-java-sdk.
I'm closing this issue as resolved. Question was answered above.
from smartystreets-java-sdk.
Related Issues (20)
- the latest version does not appear to be in the pom.xml file HOT 2
- Gradle doesn't build on latest version HOT 2
- Docs say to use 3.4.0, latest is 3.3.8 HOT 1
- commons-logging defines classes that conflict with classes now provided by Android HOT 1
- question on structured response and bindings HOT 1
- buildFilterString separates using "," but API requires ";" HOT 3
- how can we verify a candidate from the client? HOT 1
- java.lang.NoClassDefFoundError: java/net/http/HttpClient HOT 2
- SDK throwing null pointer exception while getting payload from Response HOT 2
- NoClassDefFoundError on latest HOT 3
- Bulk zipcode lookup: Cannot invoke "com.smartystreets.api.Response.getPayload()" because "response" is null HOT 1
- dependency on google http client still necessary? HOT 3
- [Bug] Batch request doesn't work as expected HOT 2
- Unauthorized: The credentials were provided incorrectly or did not match any existing, active credentials. code: 401 HOT 4
- Release Notes HOT 1
- Smarty street is failing to validate valid US addresses HOT 1
- Authorization header throwing exceptions (withCustomHeaders) HOT 2
- Missing Candidate.inputId property HOT 2
- JUnit should have scope=test HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartystreets-java-sdk.