1'use strict'; 2 3class ADVANCED_LOCATION { 4 constructor() {} 5 6 getAccessApInfo() { 7 var ap_info; 8 ap_info = __native.LOCATION.accessedWifi(); 9 return ap_info; 10 } 11 12 getScannedApInfo() { 13 var ap_info; 14 ap_info = __native.LOCATION.scannedWifi(); 15 return ap_info; 16 } 17 18 getAccessedLbsInfo() { 19 var lbs_info; 20 lbs_info = __native.LOCATION.accessedLbs(); 21 return lbs_info; 22 } 23 24 getNearLbsInfo() { 25 var near_lbs_info; 26 near_lbs_info = __native.LOCATION.nearbts(); 27 return near_lbs_info; 28 } 29 30} 31 32function open() { 33 return new ADVANCED_LOCATION(); 34} 35 36module.exports = { 37 open, 38}