24 lines
772 B
JavaScript
24 lines
772 B
JavaScript
import { WebPlugin } from '@capacitor/core';
|
|
export class DumonGeolocationWeb extends WebPlugin {
|
|
async startPositioning() {
|
|
console.log('DumonGeolocationWeb: startPositioning() called (no-op)');
|
|
}
|
|
async stopPositioning() {
|
|
console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');
|
|
}
|
|
async getLatestPosition() {
|
|
console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');
|
|
return {
|
|
source: 'GNSS',
|
|
timestamp: Date.now(),
|
|
latitude: 0,
|
|
longitude: 0,
|
|
accuracy: 999,
|
|
speed: 0,
|
|
acceleration: 0,
|
|
directionRad: 0,
|
|
isMocked: false,
|
|
};
|
|
}
|
|
}
|
|
//# sourceMappingURL=web.js.map
|