I am migrating my application to the ArcGIS API for JS Version 4.13 from Version 3.15.
I would like to return a point so that I may use it in a query task.
My old code was: query.geometry = addressPoint;
I am not sure how to obtain this from using the Search widget:
var searchWidget = new Search({
view: view,
container: "searchWidget",
popupEnabled: false
});
searchWidget.on('search-complete', function(result){
console.log(result)
});
Thank you.