var searchWidget = new Search({
view: view,
includeDefaultSources:false
sources: [{
locator: new Locator({ url: "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"}),
countryCode:"GB",
categories:["Address", "Postal"],
maxResults: 10
minSuggestCharacters: 4,
placeholder:"Find address",
filter:{
...
}
}]
});
I'm trying to limit the results to a certain geographical area. I've been told I can use the filter property, but I can't find how or any examples.