atmanegara commented on issue #255:
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/255#issuecomment-1326108368

   > > orks very well
   > 
   > can you please share the code and changes you did ....
   
     const options = {
         enableHighAccuracy: false,
         timeout: 30000,
         maximumAge: 0
       };
       
       function success(pos) {
         const crd = pos.coords;
       
         console.log('Your current position is:');
         console.log(`Latitude : ${crd.latitude}`);
         console.log(`Longitude: ${crd.longitude}`);
         console.log(`More or less ${crd.accuracy} meters.`);
       }
       
       function error(err) {
         console.warn(err);
         console.warn(`ERROR(${err.code}): ${err.message}`);
       }
       
      // navigator.geolocation.getCurrentPosition(success, error, options);
      cordova.plugins.LocationProvider.getOwnPosition(options,success,error);


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to