AnsweredAssumed Answered

Obtain point object from Search widget results

Question asked by louchios on Dec 13, 2019
Latest reply on Dec 16, 2019 by louchios

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){



Thank you.