From f997f7e03bda372f0175b52ceccc8a37e1467e90 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 14 Nov 2023 14:32:10 -0700 Subject: [PATCH] Updated us-autocomplete-pro sdk to use the correct format for city filter --- src/main/java/examples/UsAutocompleteProExample.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/examples/UsAutocompleteProExample.java b/src/main/java/examples/UsAutocompleteProExample.java index acdda6d..64773a4 100644 --- a/src/main/java/examples/UsAutocompleteProExample.java +++ b/src/main/java/examples/UsAutocompleteProExample.java @@ -38,12 +38,9 @@ public static void main(String[] args) { // Documentation for input fields can be found at: // https://smartystreets.com/docs/cloud/us-autocomplete-api#pro-http-request-url - lookup.addStateFilter("MA"); - lookup.addCityFilter("Denver"); - lookup.addCityFilter("Orem"); - lookup.addPreferState("UT"); + lookup.addCityFilter("Denver,Aurora,CO"); + lookup.addCityFilter("Orem,UT"); lookup.addPreferState("CO"); - lookup.setSelected("1042 W Center St Apt A (24) Orem UT 84057"); lookup.setPreferRatio(33); lookup.setSource("all");