Skip to content

Commit

Permalink
Updated us-autocomplete-pro sdk example to show the correct prefersta…
Browse files Browse the repository at this point in the history
…te filtering
  • Loading branch information
andrewjohnsonsmarty committed Nov 14, 2023
1 parent c9f02b1 commit f1e6d32
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/examples/USAutocompleteProExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ public static void Run()
// Documentation for input fields can be found at:
// https://smartystreets.com/docs/cloud/us-autocomplete-api#http-request-input-fields

lookup.AddStateFilter("CO");
lookup.AddStateFilter("UT");
lookup.AddCityFilter("Denver");
lookup.AddCityFilter("Orem");
lookup.AddCityFilter("Denver,Aurora,CO");
lookup.AddCityFilter("Orem,UT");
lookup.AddPreferState("CO");
lookup.AddPreferState("UT");
//lookup.Selected = "1042 W Center St Apt A (24) Orem UT 84057";
Expand All @@ -63,7 +61,7 @@ public static void Run()
Console.WriteLine();
Console.WriteLine("*** Result with some filters ***");
foreach (var suggestion in suggestions)
Console.WriteLine(suggestion.Street, suggestion.City, ", ", suggestion.State);
Console.WriteLine(suggestion.Street + " " + suggestion.City + ", " + suggestion.State);
}
}
}

0 comments on commit f1e6d32

Please sign in to comment.