Giter VIP home page Giter VIP logo

Comments (5)

DuncanBeutler avatar DuncanBeutler commented on July 17, 2024

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.

roncbird avatar roncbird commented on July 17, 2024

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?

smarty_streets_po_box_results

from smartystreets-java-sdk.

smartybryan avatar smartybryan commented on July 17, 2024

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.

roncbird avatar roncbird commented on July 17, 2024

Ok, thank you for the clarification. I appreciate it. That answers my question.

from smartystreets-java-sdk.

RyanLCox1 avatar RyanLCox1 commented on July 17, 2024

I'm closing this issue as resolved. Question was answered above.

from smartystreets-java-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.