nokia-location-api

Undefined return value

what's wrong to my code..where my return value found undefind... var so; var imgid_callback1; const DIV_ID = 'locationsample'; function setup() { try { so = device.getServiceObject("Service.Location", "ILocation"); } catch (e) { alert('<setup> ' + e); } } function getLocation(imgId) { var updateopt...