getCurrentPosition(): Promise<Geoposition> {
return new Promise((resolve, reject) => {
var options = {
enableHighAccuracy: false,
maximumAge: 10
};
console.log('options : ', options);
this.geolocation.getCurrentPosition(options).then((location) => {
// resp.coords.latitude
// resp.coords.longitude
resolve(location)
}).catch((err) => {
reject(err);
});
});
}// getCurrentPosition