diff --git a/Samples/REST Services/Fill Address Form with Autosuggest/Fill Address Form with Autosuggest.html b/Samples/REST Services/Fill Address Form with Autosuggest/Fill Address Form with Autosuggest.html index d432d812..e8c8bbb1 100644 --- a/Samples/REST Services/Fill Address Form with Autosuggest/Fill Address Form with Autosuggest.html +++ b/Samples/REST Services/Fill Address Form with Autosuggest/Fill Address Form with Autosuggest.html @@ -55,7 +55,9 @@ 'Content-Type': 'application/json; charset=utf-8' } }).then(r => r.json()).then(data => { - response(data.results); + // Only filter the "real address", exclude streets, municipalities, or other item types + var results = data.results.filter(item => item.type === "Point Address"); + response(results); }); }, select: function (event, ui) {